How to make custom bottles work?

Started by Kazuki on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make custom bottles work?

I have a hard time checking for when the player's select block is water (source)
so i just need to know how to make bottles pick up water

Joined Jun 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
when you right click in the…
Mon, 10/21/2024 - 14:07

when you right click in the air make a procedure to check for a fluid block, in this case water, in ray-tracing distance, and then replace the item with the filled bottle

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I know how bottles work but…
Thu, 10/24/2024 - 14:56

I know how bottles work but i can't make the fluid thing work, it works for every block. When i alter it a bit it give you filled bottle but still swings hands which is strange because they are both in the same "if do" block

Joined Jun 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You mean when you right…
Fri, 10/25/2024 - 02:45

You mean when you right click a block? Instead of that make it so that you have a global procedure that checks every time a player right clicks. If glass bottle is in hand, check if their is a fluid block of your specific type in ray tracing distance (play around with the distance to make it the same as block reach distance, I believe 4.5), and then remove one glass bottle and give you a filled bottle.