Started by
Falconier16
on
Topic category: Help with Minecraft modding (Java Edition)
Hello,
I have an item that when I right click the air with it, I would like to be able to fly for 200 ticks, as well as gain speed boost. I have been able to code this so far. The problem is even after the 200 ticks are over, I can still fly in creative. I have tried "if" statements and "while" loops, however I cannot seem to figure this out.
Any help is appreciated!
Edited by Falconier16 on Thu, 04/30/2020 - 19:14
nbt tags and if statements.
I tried using NBT logic tags to no avail; the attached image shows the final try before I gave up (this one crashed the game). I was trying to have the flying be enabled while the speed potion was active.
https://ibb.co/55H5Myh
Here is the working link to my picture of the code