MCreator wants unused dependencies

Started by CosyHamster on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 02:21, 14. Mar 2023
Joined Feb 2023

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
MCreator wants unused dependencies
Fri, 02/24/2023 - 05:19 (edited)

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?

On World Tick Update: In dimension Surface: For each player in the current world as (Entity Iterator): Call a procedure at (X position of Entity Iterator), (Y position of Entity Iterator), (Z position of Entity Iterator). You have selected external trigger that does not provide the following dependencies: x, y, and z.

Edited by CosyHamster on Fri, 02/24/2023 - 05:19
You are calling a procedure…
Sat, 02/25/2023 - 16:38

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: