Minecraft has an `attribute` command—how about adding a parameter to this command to set AI behavior?
/attribute [target] minecraft:ai_base base set [AI type]
For example, if you apply the zombie trait “burns in daylight” to yourself:
/attribute @s minecraft:ai_base base set burnIn_daylight_goal
→ The player who executed the command will burn in daylight. You can also add behavior patterns. For example, if you want to give a mannequin the AI that makes zombies wander aimlessly:
/attribute @n[type=mannequin] minecraft:ai_base base set water_avoiding_random_stroll_goal
This will make the mannequin start wandering aimlessly.
Please sign in to leave a comment.
0 Comments