Jump to content

Maideniles

Members
  • Posts

    31
  • Joined

  • Last visited

Everything posted by Maideniles

  1. Is there anything else I would have had to add to the code, besides the Block can render in layer method?
  2. I copied another log from an earlier try. This time I checked, the error is in there. Sorry about the confusion. As for the other errors you mentioned, those are from when I started the mod last year and left a few block projects unfinished. lol https://pastebin.com/72QtQhNg
  3. Oh, heavens. I pasted the wrong thing, sorry about that. Here is the correct log. https://pastebin.com/SPMAXqVS
  4. Here you go. Thanks for looking at this with me. https://pastebin.com/0KrcShX1
  5. Instead of attaching the entire log, here is the snippet which applies: [Client thread/ERROR] [FML/]: Couldn't load MultiLayerModel dependency: mff:backsplash_base#base net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model mff:backsplash_base#base with loader VariantLoader.INSTANCE, skipping at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModelOrLogError(ModelLoaderRegistry.java:203) [ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.MultiLayerModel.buildModels(MultiLayerModel.java:82) [MultiLayerModel.class:?] at net.minecraftforge.client.model.MultiLayerModel.bake(MultiLayerModel.java:93) [MultiLayerModel.class:?] at net.minecraftforge.client.model.ModelLoader$WeightedRandomModel.bake(ModelLoader.java:809) [ModelLoader$WeightedRandomModel.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:193) [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:350) [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_151] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_151] 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_151] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_151] 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:1195) ~[ModelLoader$VariantLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?] ... 25 more
  6. I'm making a block that has some transparent parts on the front. I tried using the BlockRenderLayer method for a transparent block, and it looked glitchy and awful. I did some digging and found that I can use a multi layer blockstates file to render the two separate pieces of my block. I have two block models, one with the regular solid layer, the other with the translucent layer that goes on the front. When I load my game, I get the dreaded purple and black block that says I've goofed up somewhere. I went as far as to test each separate model in game by replacing an existing block model with each of the models in question. They both work, so I am stumped. My Console does show errors that there was an exception loading the models into the file but it doesn't give any more specifics. Can someone help me figure out where I've gone wrong? Thanks. Here is what I am working with: blockstates file: { "forge_marker": 1, "defaults": { "model": "forge:multi-layer", "transform": "forge:default-block" }, "variants": { "normal": [{ "custom": { "base": "mff:backsplash_base#base", "Solid": "mff:backsplash_base#base", "Translucent": "mff:backsplash_bricks#trans" } }], "base": [{ "model": "backsplash_base" }], "trans": [{ "model": "backsplash_bricks" }] } } block model file for base: { "textures": { "0": "mff:blocks/white", "1": "mff:blocks/gemstone_glass", "2": "mff:blocks/pearl", "particle": "mff:blocks/gemstone_glass_tile" }, "elements": [ { "name": "grout1", "from": [ 15.0, 15.0, 0.0 ], "to": [ 16.0, 16.0, 16.0 ], "faces": { "north": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "east": { "texture": "#2", "uv": [ 0.0, 0.0, 16.0, 1.0 ] }, "south": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "west": { "texture": "#2", "uv": [ 0.0, 0.0, 16.0, 1.0 ] }, "up": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 16.0 ] }, "down": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 16.0 ] } } }, { "name": "grout 4", "from": [ 15.0, 11.0, 0.0 ], "to": [ 16.0, 12.0, 16.0 ], "faces": { "north": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "east": { "texture": "#2", "uv": [ 0.0, 0.0, 16.0, 1.0 ] }, "south": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "west": { "texture": "#2", "uv": [ 0.0, 0.0, 16.0, 1.0 ] }, "up": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 16.0 ] }, "down": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 16.0 ] } } }, { "name": "grout 7", "from": [ 15.0, 7.0, 0.0 ], "to": [ 16.0, 8.0, 16.0 ], "faces": { "north": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "east": { "texture": "#2", "uv": [ 0.0, 0.0, 16.0, 1.0 ] }, "south": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "west": { "texture": "#2", "uv": [ 0.0, 0.0, 16.0, 1.0 ] }, "up": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 16.0 ] }, "down": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 16.0 ] } } }, { "name": "grout 10", "from": [ 15.0, 3.0, 0.0 ], "to": [ 16.0, 4.0, 16.0 ], "faces": { "north": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "east": { "texture": "#2", "uv": [ 0.0, 0.0, 16.0, 1.0 ] }, "south": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "west": { "texture": "#2", "uv": [ 0.0, 0.0, 16.0, 1.0 ] }, "up": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 16.0 ] }, "down": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 16.0 ] } } }, { "name": "Cube", "from": [ 15.0, 12.0, 0.0 ], "to": [ 16.0, 15.0, 1.0 ], "faces": { "north": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "east": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "south": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "west": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "up": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "down": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] } } }, { "name": "Cube", "from": [ 15.0, 12.0, 8.0 ], "to": [ 16.0, 15.0, 9.0 ], "faces": { "north": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "east": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "south": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "west": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "up": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "down": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] } } }, { "name": "Cube", "from": [ 15.0, 8.0, 12.0 ], "to": [ 16.0, 11.0, 13.0 ], "faces": { "north": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "east": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "south": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "west": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "up": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "down": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] } } }, { "name": "Cube", "from": [ 15.0, 8.0, 4.0 ], "to": [ 16.0, 11.0, 5.0 ], "faces": { "north": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "east": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "south": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "west": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "up": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "down": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] } } }, { "name": "Cube", "from": [ 15.0, 4.0, 0.0 ], "to": [ 16.0, 7.0, 1.0 ], "faces": { "north": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "east": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "south": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "west": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "up": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "down": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] } } }, { "name": "Cube", "from": [ 15.0, 4.0, 8.0 ], "to": [ 16.0, 7.0, 9.0 ], "faces": { "north": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "east": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "south": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "west": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "up": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "down": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] } } }, { "name": "Cube", "from": [ 15.0, 0.0, 12.0 ], "to": [ 16.0, 3.0, 13.0 ], "faces": { "north": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "east": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "south": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "west": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "up": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "down": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] } } }, { "name": "Cube", "from": [ 15.0, 0.0, 4.0 ], "to": [ 16.0, 3.0, 5.0 ], "faces": { "north": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "east": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "south": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "west": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "up": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "down": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] } } }, { "name": "base", "from": [ 0.0, 0.0, 0.0 ], "to": [ 15.0, 16.0, 16.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 15.0, 16.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 16.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 0.0, 15.0, 16.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 16.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 0.0, 15.0, 16.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 0.0, 15.0, 16.0 ] } } } ] } block model file for front (transparent) part: { "textures": { "0": "mff:blocks/gemstone_glass", "particle": "mff:blocks/gemstone_glass_tile" }, "elements": [ { "name": "brick 1", "from": [ 15.0, 12.0, 9.0 ], "to": [ 16.0, 15.0, 16.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 0.0, 7.0, 3.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 0.0, 7.0, 3.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 7.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 7.0 ] } } }, { "name": "brick 2", "from": [ 15.0, 12.0, 1.0 ], "to": [ 16.0, 15.0, 8.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 0.0, 7.0, 3.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 0.0, 7.0, 3.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 7.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 7.0 ] } } }, { "name": "brick 3", "from": [ 15.0, 8.0, 13.0 ], "to": [ 16.0, 11.0, 16.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 0.0, 3.0, 3.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 0.0, 3.0, 3.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 3.0 ] } } }, { "name": "brick 4", "from": [ 15.0, 8.0, 5.0 ], "to": [ 16.0, 11.0, 12.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 0.0, 7.0, 3.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 0.0, 7.0, 3.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 7.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 7.0 ] } } }, { "name": "brick 5", "from": [ 15.0, 8.0, 0.0 ], "to": [ 16.0, 11.0, 4.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 0.0, 4.0, 3.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 0.0, 4.0, 3.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 4.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 4.0 ] } } }, { "name": "brick 6", "from": [ 15.0, 4.0, 9.0 ], "to": [ 16.0, 7.0, 16.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 0.0, 7.0, 3.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 0.0, 7.0, 3.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 7.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 7.0 ] } } }, { "name": "brick 7", "from": [ 15.0, 4.0, 1.0 ], "to": [ 16.0, 7.0, 8.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 0.0, 7.0, 3.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 0.0, 7.0, 3.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 7.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 7.0 ] } } }, { "name": "brick 8", "from": [ 15.0, 0.0, 13.0 ], "to": [ 16.0, 3.0, 16.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 0.0, 3.0, 3.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 0.0, 3.0, 3.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 3.0 ] } } }, { "name": "brick 9", "from": [ 15.0, 0.0, 5.0 ], "to": [ 16.0, 3.0, 12.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 0.0, 7.0, 3.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 0.0, 7.0, 3.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 7.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 7.0 ] } } }, { "name": "brick 10", "from": [ 15.0, 0.0, 0.0 ], "to": [ 16.0, 3.0, 4.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 0.0, 4.0, 3.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 3.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 0.0, 4.0, 3.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 4.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 4.0 ] } } } ] } and lastly, the block class file: package maideniles.fancyfurnishings.blocks; import maideniles.fancyfurnishings.Reference; import net.minecraft.block.Block; import net.minecraft.block.BlockBreakable; import net.minecraft.block.material.Material; import net.minecraft.block.state.IBlockState; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Blocks; import net.minecraft.util.BlockRenderLayer; import net.minecraft.util.EnumFacing; import net.minecraft.util.ResourceLocation; import net.minecraft.util.math.BlockPos; import net.minecraft.world.IBlockAccess; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class BlockBacksplash extends BlockFurnishing { public BlockBacksplash(String unlocalizedName, String registryName){ super(Material.GLASS); this.setUnlocalizedName(unlocalizedName); this.setRegistryName(new ResourceLocation(Reference.MODID, unlocalizedName)); } @Override public boolean canRenderInLayer(IBlockState state, BlockRenderLayer layer) { return layer == BlockRenderLayer.TRANSLUCENT || layer == BlockRenderLayer.SOLID; } }
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.