How would I make a water bottle?

Started by mrgwbland on

Topic category: Help with modding (Java Edition)

Last seen on 22:18, 7. Feb 2022
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?

Last seen on 14:52, 19. Mar 2023
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.

Last seen on 22:18, 7. Feb 2022
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

Last seen on 14:52, 19. Mar 2023
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
same
Wed, 09/30/2020 - 13:34

same