mojira.dev
MC-297461

Equipment and sleeping pos data cannot be loaded in 1.21.4, but can be loaded in 1.21.5 to bees spawned from bee nest and bee hive

Affected NBT tags:

  • ArmorItems → equipment.<head|chest|legs|feet>

  • HandItems → equipment.<mainhand|offhand>

  • SleepingX → sleeping_pos.[0]

  • SleepingY → sleeping_pos.[1]

  • SleepingZ → sleeping_pos.[2]

How To Reproduce

  1. Create a flat world using “The Void” preset in 1.21.4.

  2. Run these command:

/give @s beehive[bees=[{entity_data:{id:bee,HandItems:[{id:diamond},{id:diamond}],ArmorItems:[{id:diamond},{id:diamond},{id:diamond},{id:diamond}]},min_ticks_in_hive:3,ticks_in_hive:0}],item_name="\"1\""]
/give @s beehive[bees=[{entity_data:{id:bee,SleepingX:0,SleepingY:0,SleepingZ:0},min_ticks_in_hive:3,ticks_in_hive:0}],item_name="\"2\""]
  1. Place bee hive 1, and check the entity equipment data from bee:

/data get entity @n[type=bee] HandItems
/data get entity @n[type=bee] ArmorItems

You should see two “empty” list: [{},{}] and [{},{},{},{}].

  1. Place bee hive 2 on the stone platform, you should see the bee spawn near the bee hive block.

Now, exit the world and open it in 1.21.5.

  1. Place bee hive 1, and check the entity equipment data from bee:

/data get entity @n[type=bee] equipment

You will see something like {mainhand:{id:”minecraft:diamond”}…} . In fact, this bee also can drop diamonds by using looting weapon.

  1. Place bee hive 2 on the stone platform, you should see the bee spawn at pos [0,0,0], not near the bee hive block.

Expected Result:

Bees spawned from bee nest or bee hive should not load equipment data and sleeping data.

Observed Result

It works In 1.21.4, and not in 1.21.5.

Comments 0

No comments.

wplxfore

gegy

Confirmed

Platform

Important

Commands

1.21.5, 25w18a

25w19a

Retrieved