
Realistic Objects Datapack
This data pack adds realistic physics to objects and blocks in your world. Now, when you throw objects, they obey the laws of physics.
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).
