Started by
Rougessmp2
on
Topic category: Help with Minecraft modding (Java Edition)
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?
Topic category: Help with Minecraft modding (Java Edition)
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?
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
srry a very wordy response, only first sentence is very viable tho