Started by CosyHamster on Fri, 02/24/2023 - 05:15
Topic category: Troubleshooting, bugs, and solutions
In short: Is there any way I can remove dependences on a code block, against the computer's will?
I'm making a mod using the fabric plugin, so the global trigger "on entity tick update" isn't available for me to use. I'm using "on world tick update," and for every player in the game, I call a procedure whilst inputting their coordinates. For any mobs near the coordinates inputted, I'll run my code on them, and it'll be good enough for me. The problem is that calling the procedure with provided coordinates requires I have XYZ dependencies, but I don't have any since I'm using "on world tick update." Is there any way I can remove the dependences, or find an alternative solution?
Edited by CosyHamster on Fri, 02/24/2023 - 05:19
You are calling a procedure that needs location, but the procedure is triggered by a global trigger world tick that logically does not provide location dependency.
I suggest you check our tutorials collection playlist on our YouTube channel which contains many examples and tutorials that can help you get started with MCreator: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei