此数据包为 Minecraft 中的物品和方块添加了真实的物理效果。
信息:
所有物体都具有其独特的特性。
例如,黑曜石或石头等重型方块拥有较大的质量。它们难以被投掷到远处,但非常耐用且不易破碎。
对于轻型物品,情况则相反:
它们容易从表面弹开并飞得较远,但很快会损坏。
例如,玻璃在受到 2–3 次撞击后会破碎,而石制工具可以承受约 6–8 次撞击。
同时也考虑了现实生活中的因素:
- 金制护甲和工具由于材质原因非常轻,因此仅受 2 次撞击就会破碎。
- 木板可以漂浮在水面上,但无法支撑玩家的重量。
- 木桶就像浮标一样:它可以长时间漂浮,并且能够支撑玩家的重量。
创建具有自定义物理效果的物品:
如果你想创建一个具有自定义物理效果的物品,请使用以下命令:
/give @s minecraft:barrel[minecraft:custom_data={destructive:10,swim:5000,masse:12,hitbox:1}] 25
参数说明:
-
destructive — 对象在破碎前能承受的撞击次数。
-
swim — 对象在不沉没的情况下能保持漂浮的刻数(ticks)。
-
masse — 对象的质量。
该值越低,物品越轻,可以被投掷得越远。
此参数也会影响浮力:
- 小于 9 — 对象会下沉;
- 10 或更高 — 对象不会下沉,并能支撑实体在水面上。
-
hitbox — 1 或 0,启用或禁用对象的碰撞箱
(主要用于方块)。
This datapack adds realistic physics to items and blocks in Minecraft.
Information:
All objects have their own unique characteristics.
For example, heavy blocks such as obsidian or stone have a large mass. They are hard to throw far, but they are very durable and difficult to break.
With light items, everything is the opposite:
they easily bounce off surfaces and fly well, but break quickly.
For example, glass will break after 2–3 hits, while stone tools can withstand about 6–8 hits.
Real-life aspects are also taken into account:
- Golden armor and tools are very light due to the material, so they break in just 2 hits.
- Wooden planks can float on water, but they cannot support the player’s weight.
- A barrel works like a buoy: it can stay afloat for a long time and can support the player’s weight.
Creating your own item with physics:
If you want to create an item with custom physics, use the following command:
/give @s minecraft:barrel[minecraft:custom_data={destructive:10,swim:5000,masse:12,hitbox:1}] 25
Parameters:
-
destructive — how many hits the object can withstand before breaking.
-
swim — how many ticks the object can stay afloat without sinking.
-
masse — the mass of the object.
The lower the value, the lighter the item and the farther it can be thrown.
This parameter also affects buoyancy:
- less than 9 — the object sinks;
- 10 or higher — the object does not sink and can support entities on water.
-
hitbox — 1 or 0, enables or disables the object’s hitbox
(mostly needed for blocks).
评论 0
登录后参与评分
还没有评论,来抢沙发吧