4

New Minecraft Update severely limits Mod-Sized Datapacks.

MyNameIsBhex12/4/24 2:22 pm
4 emeralds 255 9
12/7/2024 11:39 am
Silabear
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.
Posted by
MyNameIsBhex
Level 46 : Master Technomancer Scribe
60

Create an account or sign in to comment.

9

E_T_31
12/04/2024 2:40 pm
Level 29 : Expert Engineer Engineer
history
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]
4
MyNameIsBhex
12/06/2024 11:41 am
He/They • Level 46 : Master Technomancer Scribe
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
1
E_T_31
12/06/2024 12:05 pm
Level 29 : Expert Engineer Engineer
history
Nice!
Are you using the custom "item_model" item component or the new "assets/minecraft/items/" system now?
1
MyNameIsBhex
12/06/2024 11:46 pm
He/They • Level 46 : Master Technomancer Scribe
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.
1
MyNameIsBhex
12/04/2024 5:42 pm
He/They • Level 46 : Master Technomancer Scribe
history
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
1
MaliMiau
12/05/2024 12:39 am
She/Her • Level 52 : Grandmaster Kitten Witch
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
2
MyNameIsBhex
12/05/2024 7:21 am
He/They • Level 46 : Master Technomancer Scribe
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.
2
Silabear
12/07/2024 11:39 am
He/Him • Level 69 : High Grandmaster Guard Bear
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.
3
E_T_31
12/05/2024 6:55 pm
Level 29 : Expert Engineer Engineer
history
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).
1

Welcome