Posted August 5, 20169 yr Hi, I have searched and I have found nothing on how to render my custom block in my inventory and in my hand. Can somebody point me in the right direction on how I can do this. I looked thru the source on things that I thought could help me (enchanting table, chest, etc.) But I cant find how it is actually functions. Thanks. Not all things in the world are red, there are round objects too!
August 5, 20169 yr Do you have any JSON models? VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
August 5, 20169 yr Author Yes, I have JSON models. Not all things in the world are red, there are round objects too!
August 5, 20169 yr Are you calling ModelLoader.setCustomModelResourceLocation(item, metadata, model); *Edit call it in preInit VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
August 5, 20169 yr Author You know what, i'm such a derp. I have 2 blocks, which one of them worked fine (its a simple cube block) but my custom model did not work. When I looked upp the code för my rendering I noticed this: registerRender(ancientPageBlock); registerRender(ancientPageBlock); So when I changed it to what it was supposed to be: registerRender(ancientPageBlock); registerRender(sacrificeAltar); Look and behold, it worked. But great thanks for your time, I've spent a couple hours trying to understand why it was'nt rendering. Tinkered with tje json files and rearrenging code etc. So yeah, I'm a derp. Not all things in the world are red, there are round objects too!
August 5, 20169 yr All right have fun. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
August 5, 20169 yr Author Do you know how I make it slightly rotated in inventory view? As of now it is viewed from the side. I want it more like the blocks, view from an angle above. Not all things in the world are red, there are round objects too!
August 5, 20169 yr Well rotations are handled in the BlockState JSON VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
August 5, 20169 yr Author any examples or information anywhere about this? I currently have: { "forge_marker": 1, "defaults": { "model": "ancienttech:blockSacrificeAltar" }, "variants": { "normal": [{}], "inventory": [{}] } } Which works, but the inventory is 2d. I've tried adding what I could scour the internet for but it only throws errors at me. And the blockstates in the minecraft reference is non-existent. ALsp looked at other mods but cant find any that uses this. Not all things in the world are red, there are round objects too!
August 5, 20169 yr The stairs blockstate does a lot of rotation any block that doesn't render the same no matter how you place it has some rotation in its blockstate JSON. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
August 5, 20169 yr Author THanks for your patience. But I tried: { "forge_marker": 1, "defaults": { "model": "ancienttech:blockSacrificeAltar" }, "variants": { "normal": [{}], "inventory": {"y": 90, "x": 90 } } } And nothing changed, still 2d. Do I need code for rendering it in inventory? Not all things in the world are red, there are round objects too!
August 5, 20169 yr Is there a error log printed in the console when you load Minecraft? VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
August 5, 20169 yr Author No errors. Not all things in the world are red, there are round objects too!
August 5, 20169 yr This is probably not the issue, but for all I know it may be but why the [] "normal": [{}], VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
August 5, 20169 yr Author I got it from here: http://modwiki.temporal-reality.com/mw/index.php/Render_Block_Basic-1.9 When I was trying to render it in inventory. But if I remove the [] eg. "variants": { "normal": {}, "inventory": {"y": 90, "x": 90 } } I get errors: [16:42:41] [Client thread/ERROR] [FML]: Exception loading model for variant ancienttech:blockSacrificeAltar#normal for blockstate "ancienttech:blockSacrificeAltar" net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model ancienttech:blockSacrificeAltar#normal with loader VariantLoader.INSTANCE, skipping at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:241) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:145) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:229) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:146) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:122) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:540) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:386) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_101] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_101] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:78) ~[ModelBlockDefinition.class:?] at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1183) ~[ModelLoader$VariantLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?] ... 21 more [16:42:41] [Client thread/ERROR] [FML]: Exception loading blockstate for the variant ancienttech:blockSacrificeAltar#normal: java.lang.Exception: Could not load model definition for variant ancienttech:blockSacrificeAltar at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:274) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:121) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:229) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:146) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:122) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:540) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:386) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_101] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_101] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] Caused by: java.lang.RuntimeException: Encountered an exception when loading model definition of 'ancienttech:blockSacrificeAltar' from: 'ancienttech:blockstates/blockSacrificeAltar.json' in resourcepack: 'FMLFileResourcePack:Ancient Tech' at net.minecraft.client.renderer.block.model.ModelBakery.loadModelBlockDefinition(ModelBakery.java:223) ~[ModelBakery.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadMultipartMBD(ModelBakery.java:200) ~[ModelBakery.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.getModelBlockDefinition(ModelBakery.java:185) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:270) ~[ModelLoader.class:?] ... 20 more Caused by: java.util.NoSuchElementException at com.google.gson.internal.LinkedTreeMap$LinkedTreeMapIterator.nextNode(LinkedTreeMap.java:538) ~[LinkedTreeMap$LinkedTreeMapIterator.class:?] at com.google.gson.internal.LinkedTreeMap$EntrySet$1.next(LinkedTreeMap.java:565) ~[LinkedTreeMap$EntrySet$1.class:?] at com.google.gson.internal.LinkedTreeMap$EntrySet$1.next(LinkedTreeMap.java:563) ~[LinkedTreeMap$EntrySet$1.class:?] at net.minecraftforge.client.model.ForgeBlockStateV1$Deserializer.deserialize(ForgeBlockStateV1.java:101) ~[ForgeBlockStateV1$Deserializer.class:?] at net.minecraftforge.client.model.ForgeBlockStateV1$Deserializer.deserialize(ForgeBlockStateV1.java:66) ~[ForgeBlockStateV1$Deserializer.class:?] at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58) ~[TreeTypeAdapter.class:?] at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:741) ~[Gson.class:?] at net.minecraftforge.client.model.BlockStateLoader.load(BlockStateLoader.java:81) ~[blockStateLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(ModelBlockDefinition.java:37) ~[ModelBlockDefinition.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadModelBlockDefinition(ModelBakery.java:219) ~[ModelBakery.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadMultipartMBD(ModelBakery.java:200) ~[ModelBakery.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.getModelBlockDefinition(ModelBakery.java:185) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:270) ~[ModelLoader.class:?] ... 20 more [16:42:42] [Client thread/INFO] [FML]: Injecting itemstacks [16:42:42] [Client thread/INFO] [FML]: Itemstack injection complete [16:42:42] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [16:42:42] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Ancient Tech [16:42:46] [Client thread/INFO]: SoundSystem shutting down... [16:42:46] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [16:42:46] [sound Library Loader/INFO]: Starting up SoundSystem... [16:42:47] [Thread-10/INFO]: Initializing LWJGL OpenAL [16:42:47] [Thread-10/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [16:42:47] [Thread-10/INFO]: OpenAL initialized. [16:42:47] [sound Library Loader/INFO]: Sound engine started [16:42:51] [Client thread/INFO] [FML]: Max texture size: 16384 [16:42:51] [Client thread/INFO]: Created: 2048x2048 textures-atlas [16:42:54] [Client thread/ERROR] [FML]: Exception loading model for variant ancienttech:blockSacrificeAltar#normal for blockstate "ancienttech:blockSacrificeAltar" net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model ancienttech:blockSacrificeAltar#normal with loader VariantLoader.INSTANCE, skipping at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:241) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:145) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:229) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:146) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:132) [simpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:113) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:799) [Minecraft.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:338) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:561) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:386) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_101] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_101] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:78) ~[ModelBlockDefinition.class:?] at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1183) ~[ModelLoader$VariantLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?] ... 24 more [16:42:54] [Client thread/ERROR] [FML]: Exception loading blockstate for the variant ancienttech:blockSacrificeAltar#normal: java.lang.Exception: Could not load model definition for variant ancienttech:blockSacrificeAltar at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:274) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:121) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:229) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:146) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:132) [simpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:113) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:799) [Minecraft.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:338) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:561) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:386) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_101] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_101] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] Caused by: java.lang.RuntimeException: Encountered an exception when loading model definition of 'ancienttech:blockSacrificeAltar' from: 'ancienttech:blockstates/blockSacrificeAltar.json' in resourcepack: 'FMLFileResourcePack:Ancient Tech' at net.minecraft.client.renderer.block.model.ModelBakery.loadModelBlockDefinition(ModelBakery.java:223) ~[ModelBakery.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadMultipartMBD(ModelBakery.java:200) ~[ModelBakery.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.getModelBlockDefinition(ModelBakery.java:185) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:270) ~[ModelLoader.class:?] ... 23 more Caused by: java.util.NoSuchElementException at com.google.gson.internal.LinkedTreeMap$LinkedTreeMapIterator.nextNode(LinkedTreeMap.java:538) ~[LinkedTreeMap$LinkedTreeMapIterator.class:?] at com.google.gson.internal.LinkedTreeMap$EntrySet$1.next(LinkedTreeMap.java:565) ~[LinkedTreeMap$EntrySet$1.class:?] at com.google.gson.internal.LinkedTreeMap$EntrySet$1.next(LinkedTreeMap.java:563) ~[LinkedTreeMap$EntrySet$1.class:?] at net.minecraftforge.client.model.ForgeBlockStateV1$Deserializer.deserialize(ForgeBlockStateV1.java:101) ~[ForgeBlockStateV1$Deserializer.class:?] at net.minecraftforge.client.model.ForgeBlockStateV1$Deserializer.deserialize(ForgeBlockStateV1.java:66) ~[ForgeBlockStateV1$Deserializer.class:?] at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58) ~[TreeTypeAdapter.class:?] at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:741) ~[Gson.class:?] at net.minecraftforge.client.model.BlockStateLoader.load(BlockStateLoader.java:81) ~[blockStateLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(ModelBlockDefinition.java:37) ~[ModelBlockDefinition.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadModelBlockDefinition(ModelBakery.java:219) ~[ModelBakery.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadMultipartMBD(ModelBakery.java:200) ~[ModelBakery.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.getModelBlockDefinition(ModelBakery.java:185) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:270) ~[ModelLoader.class:?] ... 23 more Not all things in the world are red, there are round objects too!
August 5, 20169 yr Well after looking at that tutorial, you forgot to put the [] on inventory. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
August 5, 20169 yr Author Yeah I tried with the brackets on inventory also, no change. still renders 2d. Not all things in the world are red, there are round objects too!
August 5, 20169 yr Could you post model JSON for block and item? VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
August 5, 20169 yr Author Model Block: { "textures": { "0": "ancienttech:block/BlockSacrificeAltar" }, "elements": [ { "name": "Foot_Back_Left", "from": [ 3.0, 0.0, 3.0 ], "to": [ 5.0, 2.0, 5.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 4.0, 4.0, 8.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 4.0, 4.0, 8.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 4.0, 4.0, 8.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 4.0, 4.0, 8.0 ] }, "up": { "texture": "#0", "uv": [ 1.0, 5.0, 3.0, 6.0 ] }, "down": { "texture": "#0", "uv": [ 1.0, 5.0, 3.0, 6.0 ] } } }, { "name": "Foot_Front_Left", "from": [ 3.0, 0.0, 11.0 ], "to": [ 5.0, 2.0, 13.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 4.0, 4.0, 8.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 4.0, 4.0, 8.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 4.0, 4.0, 8.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 4.0, 4.0, 8.0 ] }, "up": { "texture": "#0", "uv": [ 3.0, 5.0, 1.0, 6.0 ] }, "down": { "texture": "#0", "uv": [ 1.0, 5.0, 3.0, 6.0 ] } } }, { "name": "Foot_Front_Right", "from": [ 11.0, 0.0, 11.0 ], "to": [ 13.0, 2.0, 13.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 4.0, 4.0, 8.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 4.0, 4.0, 8.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 4.0, 4.0, 8.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 4.0, 4.0, 8.0 ] }, "up": { "texture": "#0", "uv": [ 1.0, 5.0, 3.0, 6.0 ] }, "down": { "texture": "#0", "uv": [ 1.0, 5.0, 3.0, 6.0 ] } } }, { "name": "Foot_Back_Right", "from": [ 11.0, 0.0, 3.0 ], "to": [ 13.0, 2.0, 5.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 4.0, 4.0, 8.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 4.0, 4.0, 8.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 4.0, 4.0, 8.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 4.0, 4.0, 8.0 ] }, "up": { "texture": "#0", "uv": [ 1.0, 5.0, 3.0, 6.0 ] }, "down": { "texture": "#0", "uv": [ 1.0, 5.0, 3.0, 6.0 ] } } }, { "name": "Bottom_Plane", "from": [ 4.0, 2.0, 4.0 ], "to": [ 12.0, 3.0, 12.0 ], "faces": { "north": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] }, "east": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] }, "south": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] }, "west": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] }, "up": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] }, "down": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] } } }, { "name": "Support_Back_Left", "from": [ 4.0, 3.0, 4.0 ], "to": [ 5.0, 7.0, 5.0 ], "faces": { "north": { "texture": "#0", "uv": [ 8.0, 4.0, 9.0, 8.0 ] }, "east": { "texture": "#0", "uv": [ 8.0, 4.0, 9.0, 8.0 ] }, "south": { "texture": "#0", "uv": [ 8.0, 4.0, 9.0, 8.0 ] }, "west": { "texture": "#0", "uv": [ 8.0, 4.0, 9.0, 8.0 ] }, "up": { "texture": "#0", "uv": [ 9.0, 5.0, 10.0, 6.0 ] }, "down": { "texture": "#0", "uv": [ 9.0, 5.0, 10.0, 6.0 ] } } }, { "name": "Support_Back_Right", "from": [ 11.0, 3.0, 4.0 ], "to": [ 12.0, 7.0, 5.0 ], "faces": { "north": { "texture": "#0", "uv": [ 8.0, 4.0, 9.0, 8.0 ] }, "east": { "texture": "#0", "uv": [ 8.0, 4.0, 9.0, 8.0 ] }, "south": { "texture": "#0", "uv": [ 8.0, 4.0, 9.0, 8.0 ] }, "west": { "texture": "#0", "uv": [ 8.0, 4.0, 9.0, 8.0 ] }, "up": { "texture": "#0", "uv": [ 9.0, 5.0, 10.0, 6.0 ] }, "down": { "texture": "#0", "uv": [ 9.0, 5.0, 10.0, 6.0 ] } } }, { "name": "Support_Front_Right", "from": [ 11.0, 3.0, 11.0 ], "to": [ 12.0, 7.0, 12.0 ], "faces": { "north": { "texture": "#0", "uv": [ 8.0, 4.0, 9.0, 8.0 ] }, "east": { "texture": "#0", "uv": [ 8.0, 4.0, 9.0, 8.0 ] }, "south": { "texture": "#0", "uv": [ 8.0, 4.0, 9.0, 8.0 ] }, "west": { "texture": "#0", "uv": [ 8.0, 4.0, 9.0, 8.0 ] }, "up": { "texture": "#0", "uv": [ 9.0, 5.0, 10.0, 6.0 ] }, "down": { "texture": "#0", "uv": [ 9.0, 5.0, 10.0, 6.0 ] } } }, { "name": "Support_Front_Left", "from": [ 4.0, 3.0, 11.0 ], "to": [ 5.0, 7.0, 12.0 ], "faces": { "north": { "texture": "#0", "uv": [ 8.0, 4.0, 9.0, 8.0 ] }, "east": { "texture": "#0", "uv": [ 8.0, 4.0, 9.0, 8.0 ] }, "south": { "texture": "#0", "uv": [ 8.0, 4.0, 9.0, 8.0 ] }, "west": { "texture": "#0", "uv": [ 8.0, 4.0, 9.0, 8.0 ] }, "up": { "texture": "#0", "uv": [ 9.0, 5.0, 10.0, 6.0 ] }, "down": { "texture": "#0", "uv": [ 9.0, 5.0, 10.0, 6.0 ] } } }, { "name": "Top_Plane", "from": [ 4.0, 7.0, 4.0 ], "to": [ 12.0, 8.0, 12.0 ], "faces": { "north": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] }, "east": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] }, "south": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] }, "west": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] }, "up": { "texture": "#0", "uv": [ 0.0, 0.0, 5.3, 5.3 ] }, "down": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] } } }, { "name": "Back_Tilted", "from": [ 4.0, 8.0, 4.0 ], "to": [ 12.0, 12.0, 5.0 ], "rotation": { "origin": [ 8.0, 8.0, 6.0 ], "axis": "x", "angle": -22.5 }, "faces": { "north": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] }, "east": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] }, "south": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] }, "west": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] }, "up": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] }, "down": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] } } }, { "name": "Left_Tilted", "from": [ 4.0, 8.0, 4.0 ], "to": [ 5.0, 12.0, 12.0 ], "rotation": { "origin": [ 6.0, 8.0, 8.0 ], "axis": "z", "angle": 22.5 }, "faces": { "north": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] }, "east": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] }, "south": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] }, "west": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] }, "up": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] }, "down": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] } } }, { "name": "Right_Tilted", "from": [ 11.0, 8.0, 4.0 ], "to": [ 12.0, 12.0, 12.0 ], "rotation": { "origin": [ 10.0, 8.0, 8.0 ], "axis": "z", "angle": -22.5 }, "faces": { "north": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] }, "east": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] }, "south": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] }, "west": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] }, "up": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] }, "down": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] } } }, { "name": "Front_Tilted", "from": [ 4.0, 8.0, 11.0 ], "to": [ 12.0, 12.0, 12.0 ], "rotation": { "origin": [ 8.0, 8.0, 10.0 ], "axis": "x", "angle": 22.5 }, "faces": { "north": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] }, "east": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] }, "south": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] }, "west": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] }, "up": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] }, "down": { "texture": "#0", "uv": [ 5.3, 0.0, 10.6, 5.3 ] } } }, { "name": "Corner_Back_Left", "from": [ 2.0, 9.0, 2.0 ], "to": [ 5.0, 12.0, 5.0 ], "faces": { "north": { "texture": "#0", "uv": [ 8.0, 0.0, 12.0, 4.0 ] }, "east": { "texture": "#0", "uv": [ 8.0, 0.0, 12.0, 4.0 ] }, "south": { "texture": "#0", "uv": [ 8.0, 0.0, 12.0, 4.0 ] }, "west": { "texture": "#0", "uv": [ 8.0, 0.0, 12.0, 4.0 ] }, "up": { "texture": "#0", "uv": [ 8.0, 0.0, 12.0, 4.0 ] }, "down": { "texture": "#0", "uv": [ 8.0, 3.0, 12.0, 4.0 ] } } }, { "name": "Corner_Back_Right", "from": [ 11.0, 9.0, 2.0 ], "to": [ 14.0, 12.0, 5.0 ], "faces": { "north": { "texture": "#0", "uv": [ 8.0, 0.0, 12.0, 4.0 ] }, "east": { "texture": "#0", "uv": [ 8.0, 0.0, 12.0, 4.0 ] }, "south": { "texture": "#0", "uv": [ 8.0, 0.0, 12.0, 4.0 ] }, "west": { "texture": "#0", "uv": [ 8.0, 0.0, 12.0, 4.0 ] }, "up": { "texture": "#0", "uv": [ 8.0, 0.0, 12.0, 2.0 ] }, "down": { "texture": "#0", "uv": [ 8.0, 3.0, 12.0, 4.0 ] } } }, { "name": "Corner_Front_Right", "from": [ 11.0, 9.0, 11.0 ], "to": [ 14.0, 12.0, 14.0 ], "faces": { "north": { "texture": "#0", "uv": [ 8.0, 0.0, 12.0, 4.0 ] }, "east": { "texture": "#0", "uv": [ 8.0, 0.0, 12.0, 4.0 ] }, "south": { "texture": "#0", "uv": [ 8.0, 0.0, 12.0, 4.0 ] }, "west": { "texture": "#0", "uv": [ 8.0, 0.0, 12.0, 4.0 ] }, "up": { "texture": "#0", "uv": [ 8.0, 0.0, 12.0, 2.0 ] }, "down": { "texture": "#0", "uv": [ 8.0, 3.0, 12.0, 4.0 ] } } }, { "name": "Corner_Front_Left", "from": [ 2.0, 9.0, 11.0 ], "to": [ 5.0, 12.0, 14.0 ], "faces": { "north": { "texture": "#0", "uv": [ 8.0, 0.0, 12.0, 4.0 ] }, "east": { "texture": "#0", "uv": [ 8.0, 0.0, 12.0, 4.0 ] }, "south": { "texture": "#0", "uv": [ 8.0, 0.0, 12.0, 4.0 ] }, "west": { "texture": "#0", "uv": [ 8.0, 0.0, 12.0, 4.0 ] }, "up": { "texture": "#0", "uv": [ 8.0, 0.0, 12.0, 2.0 ] }, "down": { "texture": "#0", "uv": [ 8.0, 3.0, 12.0, 4.0 ] } } } ] } Model Item: { "parent": "ancienttech:block/blockSacrificeAltar", "display": { "thirdperson": { "rotation": [ 10, -45, 170 ], "translation": [ 0, 1, -1.75 ], "scale": [ 0.375, 0.375, 0.375 ] } } } Not all things in the world are red, there are round objects too!
August 5, 20169 yr Could you post a screenshot of what you mean by 2d? VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
August 5, 20169 yr Author https://s32.postimg.org/6qcjeap3p/2d_image.png[/img] Not all things in the world are red, there are round objects too!
August 5, 20169 yr Try making your block model have a parent. That should work. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
August 5, 20169 yr Author Thanks! That worked. Now I will try to figure out the right parent to use. Not all things in the world are red, there are round objects too!
August 5, 20169 yr You could probably just use block, cube, or cube_all. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
August 5, 20169 yr Author Tried cube_all, but got warnings so Im going with block. Thanks again for the help. I really appreciate it. Not all things in the world are red, there are round objects too!
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.