Started by
ewang.
on
Topic category: Help with Minecraft modding (Java Edition)
Hello, a little while ago I decided to create a mod on mcreator and my knowledge is very weak and I encountered a problem where in one of my procedures I am told that I need a dependency but I do not know how to solve this problem. Could you help me with this? Thanks in advance for your feedback!
Did you use the actual screenshot? cuz I don't see anything wrong with what you showed
Missing dependencies error is different based on what procedure trigger you want to use.
I'm guessing that you are trying to use something like 'when item right-clicked' procedure trigger which only offers X, Y, Z, World, and Entity dependencies.
In that case, you need to modify your procedure to only use the dependencies listed under the trigger.
It also looks like you are trying to use event/target entity instead of entity iterator inside the for each entity loop, which would cause it to not run how you want it to even once you get the dependencies worked out.
Luckily there is a way to solve both issues at once: Replace all uses of event/target entity inside the for each entity loop with 'entity iterator' Then replace the use of source entity with event/target entity. It should work with more procedure triggers after that, and actually apply weakness and damage to the entities inside the area instead of to you (which is what event/target entity would likely do inside the for each entity loop).