Force The Event/target entity to Sit?

Started by MamaLuigi on

Topic category: Help with modding (Java Edition)

Last seen on 00:56, 6. May 2024
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Force The Event/target entity to Sit?

In my procedure, a tamed Wolf is the Event/target entity, and I want it to be sitting during the procedure.

 

How can I force it to sit, and is it even possible?

 

Any help would be greatly appreciated!

Last seen on 11:41, 17. May 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sitting is determined by a…
Thu, 01/18/2024 - 22:15

Sitting is determined by a boolean NBT tag. So you can manually change the 'sitting' NBT to true, or you can run this command at the wolf's position: (Again, probably. I haven't personally tested this.)

/data merge entity @e[type=nearest,sort=wolf,limit=1] {Sitting:1b}
Last seen on 00:56, 6. May 2024
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how can i change the …
Sat, 01/20/2024 - 15:28

how can i change the "sitting" NBT value of the Event/target entity?

Last seen on 00:56, 6. May 2024
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
nvm, i got it to work, but…
Sat, 01/20/2024 - 15:36

nvm, i got it to work, but the command was wrong.

 

you had it as /data merge entity @e[type=nearest,sort=wolf,limit=1] {Sitting:1b}, but it should've been /data merge entity @e[type=wolf,sort=nearest,limit=1] {Sitting:1b}