Posted April 26, 20205 yr I want to get the model out of the json file and render it, I could do a single block for each part of the model, but that's not comfortable. private ModelResourceLocation modellocation = new ModelResourceLocation("allyouneed:splinklertop","inventory"); private IBakedModel model = Minecraft.getInstance().getModelManager().getModel(modellocation).getBakedModel(); I kind of figured out how to get it, but how to render it?
April 26, 20205 yr Hi Have a look at this example project https://github.com/TheGreyGhost/MinecraftByExample mbe04 does something similar Where do you want to render it? In a TileEntityRenderer, or an Entity, or somewhere else? Cheers TGG
April 26, 20205 yr Check net.minecraft.client.renderer.tileentity.PistonTileEntityRenderer It should help I will make fun of you if you are not able to look into the (vanilla-) code.
April 26, 20205 yr Author I am render TileEntity. Everything you wrote, it takes the model from the block, not directly from JSON.
April 26, 20205 yr 54 minutes ago, AlexInCube said: I kind of figured out how to get it obviously not check out: net.minecraftforge.client.model.ModelLoader#addSpecialModel net.minecraft.client.renderer.model.ModelManager#getModel I will make fun of you if you are not able to look into the (vanilla-) code.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.