How would I make a water bottle?

Started by mrgwbland on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How would I make a water bottle?

I used to have this working, when left clicked if looking at water (custom fluid in my case) it would replace the bottle with a full bottle. This has stopped working, how do I make this in the newest version of mcreator?

Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if item in main hand = empty…
Wed, 09/30/2020 - 07:19

if item in main hand = empty bottle and looking at custom fluid, Set (-1) (empty bottle) for the entity main hand, set (+1) (custom bottle with custom fluid) for the entity main inventory.

 

The option to add the item to the inventory is in the Player procedures, and the remove option from main hand is in entity procedures.

The part about detecting if the player is looking at a block of fluid I have no idea how to do it, sorry.

Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
well yeah that is…
Wed, 09/30/2020 - 11:03

well yeah that is unfortunately the only bit I couldn't do