Started by
Rotmax
on
Topic category: Help with Minecraft modding (Java Edition)
Is it possible to assign a variable to a mob so you could decide, for example, if the mob would attack you or not.
For example, if you have initially selected variable 1 at the beginning in minecraft, then only mobs with variable 1 will attack you and mobs with variable 2 will not.
So in my Star Wars Mod in a new world you can choose to be a Jedi and every evil person will atack you (same as a sith)???
Thank you for your answer!
You could use NBT tab procedures from Entity management tab in procedure editor to achieve variables bound to entities.
Can you explain me exactly what I have to do please. Yesterday I tried it all the time, but I always failed.
Use set entity NBT tag procedure to set variable and get entity NBT tag procedure to get the variable value. You store value in a tag with a name you decide. When reading read the tag with the same name and if the tag was set on the entity, you will get its value.
What event trigger i have to use to set the nbt tag variable?
Any trigger you wish, it depends on when you want to set the variable.
But so i am not able to change the mob ai
And where can i store a mob ai?