How to make entity that can be placed on top of water like lily pad

Started by dingusman on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make entity that can be placed on top of water like lily pad

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?

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You want an entity to walk…
Fri, 03/27/2026 - 13:38

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.

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No, I want it to be able to…
Sat, 03/28/2026 - 02:45

No, I want it to be able to be spawned on water, using an item that pretends to be its spawn egg

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What? You want to be able to…
Sat, 03/28/2026 - 09:09

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.