Detect Water Bottle

Started by GameKillerLP1 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Detect Water Bottle
Fri, 10/29/2021 - 22:27 (edited)

Hello,

Im creating a mod where you need to right click on dirt with a water bottle and it turning into mud.

i created that but theres only 1 potion named "Water Bottle/Any Potion" is it possible to change it only to water bottle

Procedure           = https://imgur.com/Q6G7bC0

 

 

Water Bottle/Any Potion         = https://imgur.com/Y2x5YHB

 

Edit: I uploaded the Images to Imgur, now it should work.

Edited by GameKillerLP1 on Fri, 10/29/2021 - 22:27
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
links don't work
Fri, 10/29/2021 - 22:21

links don't work

Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i uploaded them now to imgur…
Fri, 10/29/2021 - 22:22

i uploaded them now to imgur now it should work sorry.

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yeah this is because potions…
Fri, 10/29/2021 - 22:29

yeah this is because potions are only water bottles with nbts, even if you look at the code you will see Item.POTION and not WATER_BOTTLE or smt

Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thank you, but my question…
Fri, 10/29/2021 - 22:31

thank you, but my question was if its possible to change that :) (i already looked in the code and tried to change that but it doesnt work)

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yes indeed bc WATER_BOTTLE…
Fri, 10/29/2021 - 22:36

yes indeed bc WATER_BOTTLE isn't a thing, honestly never done smt like this but on top of my head I can think of getting item boolean Not = POTION

Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
sorry but is there any…
Fri, 10/29/2021 - 22:46

sorry but is there any example you can give me because i dint learn python i only learn c#

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
basically this has a way to…
Fri, 10/29/2021 - 23:06

basically this has a way to detect booleans, then put it on with a logic = and a  not block

Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
now its working :D thank you…
Sat, 10/30/2021 - 10:39

now its working :D thank you very much :)

Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Could you explain this a…
Sat, 12/25/2021 - 01:53

Could you explain this a little better?