mojira.dev
MCPE-128050

command spawned iron golem behaves the same as the naturally spawned iron golem

command spawned iron golems behaves the same as the naturally spawned iron golem

how to produce

1: find a village

2: use the command to spawn an iron golem (/summon minecraft:iron_golem)

3: use a name tag to tell whether it is naturally spawned or command spawned

4: lower popularity to -15 or lower

5: the command spawned iron golem will try to kill me over and over after i die

IT BEHAVES THE SAME AS THE NATURALLY SPAWNED IRON GOLEM WTH

Comments 2

/summon makes all mobs it spawns use their default data values (all 0). The PlayerCreated tag of an iron golem is 0 if spawned naturally and 1 if spawned by a player
To /summon a golem that acts like the player-made one, the tag would have to be set to 1 when using the command.
This is WAI.

Cannot reproduce. I made a little village, summoned an iron golem, and punched a couple of villagers to death. The iron golems did not care.

Summoned iron golems do not join villages, however, they do attack the player if hit directly. (MCPE-88295)

Golem behavior related to villages is not determined by the player_created bit, but rather by the component group and event structure in the iron_golem.json entity file.

ethan tang

(Unassigned)

Unconfirmed

Windows

1.16.221 Hotfix

Retrieved