Help with filling.

Started by Rougessmp2 on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with filling.

I made an item that drowns near by mobs when you hold right click. Is there anyway to remove the water when you stop holding right click? 

Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I cant really think of a non…
Sun, 08/20/2023 - 18:26

I cant really think of a non-intensive way to do this, but maybe scrap the water and use 'Set Oxygen Of (entity) to 0' ? if not maybe constantly setting the water to air and back again while the effect is effecting would work, but may leak water or not drown mobs :/ maybe do that but constantly switch between setting water then setting larger area, filling water with air EACH TICK (tick one set air, tick 2 set water, not tick one sharing both functions, probably use nbt or something for this task, ONTICK nbt = reverseofNBT, if nbt=tru then water, if nbt=false then air) probably wont work tho, force choke is epik

Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
srry a very wordy response,…
Sun, 08/20/2023 - 18:26

srry a very wordy response, only first sentence is very viable tho