Realistic Objects Datapack
作者:rebot | 分类:模组
Minecraft 版本: 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8 1.21.9 1.21.10 1.21.11
平台: datapack
标签: adventure game-mechanics technology
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 —
1or0, enables or disables the object’s hitbox
(mostly needed for blocks).
请登录后举报
暂无评论,抢个沙发吧~