mojira.dev
MC-186044

Certains NBT ne fonctionnent pas lors de la commande /summon

Hello, I'm a big fan of command-block, and I wanted to make a mini-game in minecraft, with only block commands.

What I wanted to do :

I simply wanted to make a pig run (not trivial indeed πŸ™‚), and I wanted to make the pig appear with the following properties:

  • Name: Pigy 1

  • Saddle: yes

  • Effect: Speed ​​25 (Without particles, and indefinitely)

  • Glowing: yes

  • Persistent: yes

  • Silent: yes

The command I used to do this :

I helped myself with a site, and I used the command below to allow me to do what I wanted to do:

Β 

/summon minecraft:pig ~ ~1 ~ {CustomName:"\"Pigy 1\"",CustomNameVisible:1,PersistenceRequired:1b,CanPickUpLoot:0b,Silent:1,Invulnerable:1,Saddle:1,ActiveEffects:[{Id:1,Amplifier:25,Duration:2147483647,ShowParticles:0b}]}

Β 

The command was made for version 1.14, but I looked at the properties of the pig after giving it the speed 25 effect, and the NBT values ​​were exactly the same. To tell you, I then tried to summon it up with the NBT myself, and of course, no satisfactory results.

Result of the command :

Indeed, when I execute this command in the block command which allows me to make it spawner, I only get 3 of the properties I asked for out of 5.
It actually lacks the effect of speed, and the glowing effect.

Even stranger :

I did exactly the same manipulation, but this time with the invisibility effect, and there, no problem. The mob appeared correctly, and invisible.

End :

I did not try to see if this bug was present in bedrock edition, but being a big fan of block commands, I must admit: I am sad that I cannot do this.

Please, Mojang, fix this bug for me !!!!

Good day (evening),

  • Flymeth

(PS: translate to french to english with google translator)

Linked issues

Comments 4

  1. Please use English to report bugs.

It's ok, i've translate my report bug πŸ™‚

Thank you for your report!
We're tracking this issue as MC-32575, so this ticket is being resolved and linked as a duplicate.

That ticket has already been resolved as working as intended, which means this is not considered a bug and won't be fixed.

You can work around this by alternative methods:
1. Appyling the speed effect with a /effect give @e[name=Pigy] command after spawning it
2. Modifying the attribute generic.movementSpeed directly in the summon command. (wiki article)

Quick Links:
πŸ““ Issue Guidelines – πŸ’¬ Community Support – πŸ“§ Customer Support – ✍️ Feedback and Suggestions – πŸ“– Game Wiki

Okay, thanks a lot πŸ™‚

Flymeth

(Unassigned)

Unconfirmed

(Unassigned)

1.15.2

Retrieved