Started by
mdotrar
on
Topic category: Help with Minecraft modding (Java Edition)
Tried everything i know, variables, effects... Nothing works
Sometimes it spawns too much, sometimes it doesn't spawn anything
- I have an idea. Make a procedure that is called when the mob is spawned. Have an if linked to a global variable that can be true or false. Make it so if true the entity spawns and then calls a duplicate of the procedure except calling the first one. Then make a new procedure for if item right clicked and set the if itemstack = [your items here] and then make it result in setting the variable to false.
- OPTIONAL: create a new procedure that the item right click procedure calls and have a wait block for how ever long you want a cooldown to be and then have it set the global variable to true. You would have to change the code after that to check if the variable is true again. That or just have it then call the first procedure we created.
Jump to top
Permalink
- Log in or register to post comments