4
New Minecraft Update severely limits Mod-Sized Datapacks.
I don't normally make posts on the forums but I just loaded up the new version to update my datapack, which adds over 100 new blocks and items, and I noticed something critical.
Mojang removed the individual spawn egg item models.
There is no way to re-model or re-texture spawn eggs anymore.
The ability to re-model spawn eggs was crucial for mod-sized datapacks as (with the help of some magic) it was a way to add a huge number of custom items to your datapacks that could be used in custom crafting recipes. And it's just gone. Poof. It is no more. Along with the changes they made to block item models, it also does not appear to be possible to re-model Command Blocks to be used as custom items, either.
Maybe I am missing something. Maybe I'm wrong on this whole thing but right now my datapack is literally impossible to develop into the new version because none of my custom items will display properly. If anyone knows more about this, please fill me in because I am absolutely lost right now.
Mojang removed the individual spawn egg item models.
There is no way to re-model or re-texture spawn eggs anymore.
The ability to re-model spawn eggs was crucial for mod-sized datapacks as (with the help of some magic) it was a way to add a huge number of custom items to your datapacks that could be used in custom crafting recipes. And it's just gone. Poof. It is no more. Along with the changes they made to block item models, it also does not appear to be possible to re-model Command Blocks to be used as custom items, either.
Maybe I am missing something. Maybe I'm wrong on this whole thing but right now my datapack is literally impossible to develop into the new version because none of my custom items will display properly. If anyone knows more about this, please fill me in because I am absolutely lost right now.
Create an account or sign in to comment.
9
I've never remodeled any spawn eggs myself, so I'm not familiar with how it did work and/or if it doesn't anymore, but it sounds like the new "item_model" item component might be what you're looking for. Said item component allows you to set any model (be it vanilla, edited or a completely new one) for any item via a command :D
I hope the following two command examples manage to get across what this is capable of:
Pig Spawn Egg looking like a Piglin Head:
/give @s minecraft:pig_spawn_egg[minecraft:item_model=piglin_head]
Pig Spawn Egg with a Custom Item Model:
/give @s minecraft:pig_spawn_egg[minecraft:item_model=custom_spawn_egg_model]
I hope the following two command examples manage to get across what this is capable of:
Pig Spawn Egg looking like a Piglin Head:
/give @s minecraft:pig_spawn_egg[minecraft:item_model=piglin_head]
Pig Spawn Egg with a Custom Item Model:
/give @s minecraft:pig_spawn_egg[minecraft:item_model=custom_spawn_egg_model]
I actually managed to figure this out last night-- for some reason the changelog for this update was severely lacking in terms of telling us how to actually use this new stuff
Nice!
Are you using the custom "item_model" item component or the new "assets/minecraft/items/" system now?
Are you using the custom "item_model" item component or the new "assets/minecraft/items/" system now?
Both, depending on the item.
For items that I need to use in custom recipes, I use spawn eggs and the "items" directory, then use my Custom Items engine to stop the Player from using the spawn egg in survival mode.
For items that don't need to be used in recipes, I use the "item_model" component.
For items that I need to use in custom recipes, I use spawn eggs and the "items" directory, then use my Custom Items engine to stop the Player from using the spawn egg in survival mode.
For items that don't need to be used in recipes, I use the "item_model" component.
The item model component doesn't work for this. The point was that you could use these "custom item" spawn eggs in crafting recipes and they would appear as if it were vanilla/modded. Using Item Model Component means that crafting recipes will show Spawn Eggs, which is not acceptable for a coherent pack
https://streamable.com/i23ena
thats a video where i use the item_model component (just like E_T_31 said) on a custom recipe for a spawn egg and it just works? i honestly dont know what are you referring to that is not possible anymore
thats a video where i use the item_model component (just like E_T_31 said) on a custom recipe for a spawn egg and it just works? i honestly dont know what are you referring to that is not possible anymore
When you do not have the ingredients in your inventory and check the recipe with the recipe book, it won't show your custom Items. It'll just show spawn eggs. Not good.
Mojang are making these changes in order to be able to add completely custom, data-driven items. In the long run, it will be super easy to add fully custom items.
I can't verify your issue at the moment, but have you given the new "assets/minecraft/items/" folder a look?
That contains the new system for model "overrides" etc. I checked and can confirm that there's a distinct file for each spawn egg, all referencing the explicit model "item/template_spawn_egg", as seems to have been the case under the old system. I haven't had the time to fully get behind it myself, but from what I can tell, this should offer the same functionality as before + a lot more (e.g. composite models).
That contains the new system for model "overrides" etc. I checked and can confirm that there's a distinct file for each spawn egg, all referencing the explicit model "item/template_spawn_egg", as seems to have been the case under the old system. I haven't had the time to fully get behind it myself, but from what I can tell, this should offer the same functionality as before + a lot more (e.g. composite models).