mojira.dev
MCPE-102360

spawn_egg Data value semi-broken (Addon/BehaviorPack)

After heavily investigating. I've come to the conclusion that spawn_egg data value is semi-broken. I've been working on a fairly simple addon that adds 16 (technically 32, the other 16 is used to call function commands upon spawning) different mobs/entities.

With this, it adds a lot of new available data value for the spawn_egg. However, after testing and investigating, i've discovered that the data value (or the damage value) is sometimes misleading and often incorrect. What i wanted to do was to make a recipe for a custom spawn egg for a custom entity. But that however is impossible to do since data value keeps changing when using the addon on different worlds and/or on different devices such as android. And even if a software like MCCToolchest or Blocktopograph says that the spawn egg value is for example 264. Entering that in a command like /give gives the error that the spawn_egg does not exist or giving that value to recipe output just gives nothing.

 

This problem is present with the loot table as well. But thanks to the set_actor_id, that is an efficient solution. However, there is no such thing or equivalent to that for recipe or anything that only uses data value to determine the entity. And as there is no way to set an id manually in the Resource Pack Entity files. If there was a way to manually set an id in the entity files (of the resource pack) or set an identifier : minecraft:spawn_egg with an entity or something along those lines, that would be great.

 

 

Comments 1

Use query.get_actor_info_id for recipes. Yes it's a gross hack but that's bedrock

Marko Petrovic

(Unassigned)

Unconfirmed

Windows

Windows 10, Android 10

1.16.40 Hotfix

Retrieved