Found this command on a YouTube video:
/ summon armor_stand ~ ~ ~ {CustomName: "{\" text \ ": \" SEAT \ "}", NoGravity: 1b, Marker: 1b, Invisible: 1, Passengers: [{id: "horse", CustomName: " {\ "text \": \ "SEAT \"} ", Variant: 7, Tame: 1, Attributes: [{Name: generic.maxHealth, Base: 10}], Invulnerable: 1, Health: 10.0f, NoAI: 1, Silent: 1, ActiveEffects: [{Id: 14, Amplifier: 1, Duration: 199999980, ShowParticles: 0b}]}]}
It works, but the horse always looks south and I also need places where the horse can go e.g. North looks
How do I do that?
I would do it with this command. Simply select the direction of the block, place the command block over the seat, insert and activate the command.
south
/ execute align xyz run summon pig ~ 0.5 ~ -1.39 ~ 0.5 {NoGravity: 1b, Silent: 1b, Invulnerable: 1b, NoAI: 1b, Saddle: 1b, ActiveEffects: [{Id: 14b, Amplifier: 2b, Duration: 10000000 , ShowParticles: 0b}], Rotation: [0F, 0F]}
north
/ execute align xyz run summon pig ~ 0.5 ~ -1.39 ~ 0.5 {NoGravity: 1b, Silent: 1b, Invulnerable: 1b, NoAI: 1b, Saddle: 1b, ActiveEffects: [{Id: 14b, Amplifier: 2b, Duration: 10000000 , ShowParticles: 0b}], Rotation: [180F, 0F]}
west
/ execute align xyz run summon pig ~ 0.5 ~ -1.39 ~ 0.5 {NoGravity: 1b, Silent: 1b, Invulnerable: 1b, NoAI: 1b, Saddle: 1b, ActiveEffects: [{Id: 14b, Amplifier: 2b, Duration: 10000000 , ShowParticles: 0b}], Rotation: [90F, 0F]}
east
/ execute align xyz run summon pig ~ 0.5 ~ -1.39 ~ 0.5 {NoGravity: 1b, Silent: 1b, Invulnerable: 1b, NoAI: 1b, Saddle: 1b, ActiveEffects: [{Id: 14b, Amplifier: 2b, Duration: 10000000 , ShowParticles: 0b}], Rotation: [- 90F, 0F]}
Thank you! I'll try it out later and say if it worked
It works, but the saddle is still visible
Tried it with a horse and it's perfect!
If you want you can choose a texture pack, which hides it