How would I make a water bottle?

Started by mrgwbland on Tue, 09/29/2020 - 18:39

Topic category: Help with modding (Java Edition)

Last seen on 14:23, 18. Nov 2020
Joined Oct 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How would I make a water bottle?
Tue, 09/29/2020 - 18:39

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 23:33, 14. Nov 2020
Joined Sep 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 14:23, 18. Nov 2020
Joined Oct 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 23:33, 14. Nov 2020
Joined Sep 2020
User points:

User statistics:

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

same