Started by
TDO
on
Topic category: Help with Minecraft modding (Java Edition)
I want to make a tool that sits down all pets in an area, but idk how to make wolves or cats sit. I can only make modded pets sit bc I know how they work but Idk what makes vanilla mobs sit
If you can find a way to change vanilla componant/nbt data there is a sitting logic variable, just change that from (0 to 1 if 0) and vice versa and you got it, possibly using execute command and get result/execute command in name of.
https://imgur.com/a/UkWNevB
the command to use
get value: /data get entity 21585ffe-96f7-42f5-bb09-bb689e8c9235 Sitting
set value: /data modify entity 21585ffe-96f7-42f5-bb09-bb689e8c9235 Sitting set value 1