Started by
dingusman
on
Topic category: Help with Minecraft modding (Java Edition)
I'm making a new type of lily pad which is an entity, and I want to make it, so that the spawn item can place it on top of water, like the vanilla Minecraft lily pad.
How do I do this?
You want an entity to walk on water? Check if block at x y-1 z is water, if so override y motion vector to be 0 on tick. It wont be able to jump on water though.
No, I want it to be able to be spawned on water, using an item that pretends to be its spawn egg
What? You want to be able to right click on water and spawn the entity? You just use item trigger: on right clicked on block, if block at x y z = water, spawn entity at x y z. If that doesn't work because the game doesn't recognise you clicking a water block. Then you use the trigger: on right clicked entity pos, get look x y z raytrace position = water, spawn entity at position x y z raytrace position.