Caused by: java.io.FileNotFoundException: progressiveg:models/item/ak_47_0.mtl
Yeah, fix the wrong material and post the new log. Remember that the obj file must also be named the same as the mtl file.
That's not stepping using the debugger. You're telling us only the user experience. Set some break points and step through the code so you can see, line by line, what field of what object the itemstack is moving to when you "put it in inventory", and so you can see what field of what object the "wrong" itemstack is coming from when you "take it out" (and follow it all the way into your hand to see that it's not switched).
Additionaly some potential issues which are not directly related to your problem but are still worth fixing:
ItemModelMesher is outdated and buggy. Use ModelLoader. And register your models in your client proxy during pre-init or in a ModelRegistryEvent(prefered)
?
From this picture, it looks like the blockstates directory is directly inside the assets directory, rather than inside assets.modid alongside lang, models, and textures like it should be.
Use the minecraft:item_nbt ingredient type. Set the nbt property to the NBT data you want.
I don't have any examples of the minecraft:item_nbt ingredient type, but you can see an example of a recipe output with NBT (which uses the same properties) here.
You need to make an IGuiHandler to control opening both the server-side container and the client-side gui. Then call player#openGui to open them both as needed.
If you're not using the latest version of Forge, update. Recent versions overhauled the registry system, adding the
GameRegistry.register
method to register any
IForgeRegistryEntry
object (e.g.
Block
,
Item
,
BiomeGenBase
).
WorldChunkManager
was renamed to
BiomeProvider
in 1.9.
BiomeProvider#allowedBiomes
doesn't control which biomes generate, it only controls which biomes can be used as the world spawn point.
To allow a biome to generate, call
BiomeManager.addBiome
. To allow a biome to used as the world spawn point, call
BiomeManager.addSpawnBiome
.