mojira.dev
MC-165488

Can't spawn minecarts with rotation via chat or function but with a command block

If I try to summon a minecart with rotation, it rotates back instantly if I execute the command in chat, in a function or using a sign with clickEvent. But if I summon it with a commandblock, it works perfectly...

Example command to reproduce:

summon minecraft:chest_minecart ~5 ~ ~ {NoGravity:1b,Invulnerable:1b,CustomDisplayTile:1b,DisplayOffset:16,Rotation:[180F,50F],OnGround:0b,DisplayState:{Name:"minecraft:cobblestone"}}

Sign with clickEvent

setblock ~ ~1 ~ oak_sign{Text1:"{\"text\":\"Click\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"summon minecraft:chest_minecart ~5 ~ ~ {NoGravity:1b,Invulnerable:1b,CustomDisplayTile:1b,DisplayOffset:16,Rotation:[180F,50F],OnGround:0b,DisplayState:{Name:\\\"minecraft:cobblestone\\\"}}\"}}"}

Linked issues

Comments 10

Can confirm, pretty weird.

Confirmed 1.15 pre-4

Can confirm in 21w03a.

Can confirm in 21w06a.

Can confirm in 1.16.5 and 21w08b.

Can confirm in 21w13a.

Does not appear to affect 1.19-rc2

Still affects 1.19 for me

Can confirm still in 1.19, but not even the clickEvent sign works for me, the minecart instantly rotates back regardless of how it's summoned.

rafaelurben

(Unassigned)

Confirmed

Platform

Low

Commands, Minecart

1.14.4, 19w46a, 1.15 Pre-release 4, 20w45a, 21w03a, ..., 21w13a, 1.18.2, 1.19, 22w24a, 1.19.1 Release Candidate 2

Retrieved