#Custom entity's spawn egg
1 messages · Page 1 of 1 (latest)
Try this
{
"type": "item",
"name": "minecraft:spawn_egg",
"weight": 1,
"functions": [
{
"function": "set_actor_id"
}
]
}
This is a loot_table, create a loot table and use the minecraft:loot component in your entity
{
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "item",
"name": "minecraft:spawn_egg",
"weight": 1,
"functions": [
{
"function": "set_actor_id"
}
]
}
]
}
]
}
Alright
give me your custom entity's identifier
cpf:refrigerator_top_freezer_visual
Put "cpf:refrigerator_top_freezer_visual_spawn_egg" instead of "minecraft:spawn_egg" if code above doesn't work
I never tried the code above before but I'm just saying this in case
Yeah replace it with what I told you
And remove the "functions" thing
{
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "item",
"name": "cpf:refrigerator_top_freezer_visual_spawn_egg",
"weight": 1
}
]
}
]
}
Alright
Doesn't work as well. It doesn't seems to be able to detect the spawn egg at all, but it is available in-game.
Do i have to create separate item behaviour for the spawn egg, since the spawn egg only available in the entity resource pack.