Posted February 10, 20178 yr I made a model with MrCrayFish's modeling program and got it working in-game, the only thing wrong is the textures aren't all loading. Screenshot: Spoiler Model JSON: Spoiler { "__comment": "Model generated using MrCrayfish's Model Creator (http://mrcrayfish.com/modelcreator/)", "textures": { "0": "blocks/base", "1": "blocks/supports", "2": "blocks/mechanics", "3": "blocks/table", "4": "blocks/powerport", "5": "blocks/glass_gray", "6": "blocks/arm", "7": "blocks/printerhead" }, "elements": [{ "name": "Top", "from": [0.0, 15.0, 0.0], "to": [16.0, 16.0, 16.0], "faces": { "north": { "texture": "#0", "uv": [0.0, 14.0, 16.0, 15.0] }, "east": { "texture": "#0", "uv": [0.0, 14.0, 16.0, 16.0] }, "south": { "texture": "#0", "uv": [0.0, 14.0, 16.0, 15.0] }, "west": { "texture": "#0", "uv": [0.0, 14.0, 16.0, 15.0] }, "up": { "texture": "#0", "uv": [0.0, 0.0, 16.0, 16.0] }, "down": { "texture": "#0", "uv": [0.0, 0.0, 16.0, 16.0] } } }, { "name": "North West Support", "from": [1.0, 1.0, 1.0], "to": [2.0, 15.0, 2.0], "faces": { "north": { "texture": "#1", "uv": [0.0, 0.0, 1.0, 14.0] }, "east": { "texture": "#1", "uv": [0.0, 0.0, 1.0, 14.0] }, "south": { "texture": "#1", "uv": [0.0, 0.0, 1.0, 14.0] }, "west": { "texture": "#1", "uv": [0.0, 0.0, 1.0, 14.0] }, "up": { "texture": "#1", "uv": [0.0, 0.0, 1.0, 1.0] }, "down": { "texture": "#1", "uv": [0.0, 0.0, 1.0, 1.0] } } }, { "name": "North East Support", "from": [14.0, 1.0, 1.0], "to": [15.0, 15.0, 2.0], "faces": { "north": { "texture": "#1", "uv": [0.0, 0.0, 1.0, 14.0] }, "east": { "texture": "#1", "uv": [0.0, 0.0, 1.0, 14.0] }, "south": { "texture": "#1", "uv": [0.0, 0.0, 1.0, 14.0] }, "west": { "texture": "#1", "uv": [0.0, 0.0, 1.0, 14.0] }, "up": { "texture": "#1", "uv": [0.0, 0.0, 1.0, 1.0] }, "down": { "texture": "#1", "uv": [0.0, 0.0, 1.0, 1.0] } } }, { "name": "South East Support", "from": [14.0, 1.0, 14.0], "to": [15.0, 15.0, 15.0], "faces": { "north": { "texture": "#1", "uv": [0.0, 0.0, 1.0, 14.0] }, "east": { "texture": "#1", "uv": [0.0, 0.0, 1.0, 14.0] }, "south": { "texture": "#1", "uv": [0.0, 0.0, 1.0, 14.0] }, "west": { "texture": "#1", "uv": [0.0, 0.0, 1.0, 14.0] }, "up": { "texture": "#1", "uv": [0.0, 0.0, 1.0, 1.0] }, "down": { "texture": "#1", "uv": [0.0, 0.0, 1.0, 1.0] } } }, { "name": "South West Support", "from": [1.0, 1.0, 14.0], "to": [2.0, 15.0, 15.0], "faces": { "north": { "texture": "#1", "uv": [0.0, 0.0, 1.0, 14.0] }, "east": { "texture": "#1", "uv": [0.0, 0.0, 1.0, 14.0] }, "south": { "texture": "#1", "uv": [0.0, 0.0, 1.0, 14.0] }, "west": { "texture": "#1", "uv": [0.0, 0.0, 1.0, 14.0] }, "up": { "texture": "#1", "uv": [0.0, 0.0, 1.0, 1.0] }, "down": { "texture": "#1", "uv": [0.0, 0.0, 1.0, 1.0] } } }, { "name": "Mechanics", "from": [3.0, 13.0, 3.0], "to": [13.0, 15.0, 13.0], "faces": { "north": { "texture": "#2", "uv": [0.0, 0.0, 10.0, 2.0] }, "east": { "texture": "#2", "uv": [0.0, 0.0, 10.0, 2.0] }, "south": { "texture": "#2", "uv": [0.0, 0.0, 10.0, 2.0] }, "west": { "texture": "#2", "uv": [0.0, 0.0, 10.0, 2.0] }, "up": { "texture": "#2", "uv": [0.0, 0.0, 10.0, 10.0] }, "down": { "texture": "#2", "uv": [0.0, 0.0, 10.0, 10.0] } } }, { "name": "Table", "from": [2.5, 3.0, 2.5], "to": [13.5, 4.0, 13.5], "faces": { "north": { "texture": "#3", "uv": [0.0, 2.0, 11.0, 3.0] }, "east": { "texture": "#3", "uv": [0.0, 0.0, 11.0, 1.0] }, "south": { "texture": "#3", "uv": [0.0, 2.0, 11.0, 3.0] }, "west": { "texture": "#3", "uv": [1.0, 0.0, 12.0, 1.0] }, "up": { "texture": "#3", "uv": [0.0, 0.0, 11.0, 11.0] }, "down": { "texture": "#3", "uv": [0.0, 0.0, 11.0, 11.0] } } }, { "name": "North West Table Support", "from": [3.0, 1.0, 3.0], "to": [3.5, 3.0, 3.5], "faces": { "north": { "texture": "#1", "uv": [0.0, 0.0, 0.5, 2.0] }, "east": { "texture": "#1", "uv": [0.0, 0.0, 0.5, 2.0] }, "south": { "texture": "#1", "uv": [0.0, 0.0, 0.5, 2.0] }, "west": { "texture": "#1", "uv": [0.0, 0.0, 0.5, 2.0] }, "up": { "texture": "#1", "uv": [0.0, 0.0, 0.5, 0.5] }, "down": { "texture": "#1", "uv": [0.0, 0.0, 0.5, 0.5] } } }, { "name": "North East Table Support", "from": [12.5, 1.0, 3.0], "to": [13.0, 3.0, 3.5], "faces": { "north": { "texture": "#1", "uv": [0.0, 0.0, 0.5, 2.0] }, "east": { "texture": "#1", "uv": [0.0, 0.0, 0.5, 2.0] }, "south": { "texture": "#1", "uv": [0.0, 0.0, 0.5, 2.0] }, "west": { "texture": "#1", "uv": [0.0, 0.0, 0.5, 2.0] }, "up": { "texture": "#1", "uv": [0.0, 0.0, 0.5, 0.5] }, "down": { "texture": "#1", "uv": [0.0, 0.0, 0.5, 0.5] } } }, { "name": "South East Table Support", "from": [12.5, 1.0, 12.5], "to": [13.0, 3.0, 13.0], "faces": { "north": { "texture": "#1", "uv": [0.0, 0.0, 0.5, 2.0] }, "east": { "texture": "#1", "uv": [0.0, 0.0, 0.5, 2.0] }, "south": { "texture": "#1", "uv": [0.0, 0.0, 0.5, 2.0] }, "west": { "texture": "#1", "uv": [0.0, 0.0, 0.5, 2.0] }, "up": { "texture": "#1", "uv": [0.0, 0.0, 0.5, 0.5] }, "down": { "texture": "#1", "uv": [0.0, 0.0, 0.5, 0.5] } } }, { "name": "South West Table Support", "from": [3.0, 1.0, 12.5], "to": [3.5, 3.0, 13.0], "faces": { "north": { "texture": "#1", "uv": [0.0, 0.0, 0.5, 2.0] }, "east": { "texture": "#1", "uv": [0.0, 0.0, 0.5, 2.0] }, "south": { "texture": "#1", "uv": [0.0, 0.0, 0.5, 2.0] }, "west": { "texture": "#1", "uv": [0.0, 0.0, 0.5, 2.0] }, "up": { "texture": "#1", "uv": [0.0, 0.0, 0.5, 0.5] }, "down": { "texture": "#1", "uv": [0.0, 0.0, 0.5, 0.5] } } }, { "name": "Power Port", "from": [4.0, 1.0, 0.0], "to": [12.0, 15.0, 1.0], "faces": { "north": { "texture": "#4", "uv": [0.0, 1.0, 8.0, 15.0] }, "east": { "texture": "#4", "uv": [8.0, 1.0, 9.0, 15.0] }, "south": { "texture": "#4", "uv": [8.0, 1.0, 16.0, 15.0] }, "west": { "texture": "#4", "uv": [8.0, 1.0, 9.0, 15.0] }, "up": { "texture": "#4", "uv": [0.0, 1.0, 8.0, 2.0] }, "down": { "texture": "#4", "uv": [0.0, 1.0, 8.0, 2.0] } } }, { "name": "Glass North 1", "from": [0.0, 1.0, 0.0], "to": [4.0, 15.0, 1.0], "faces": { "north": { "texture": "#5", "uv": [12.0, 1.0, 16.0, 15.0] }, "east": { "texture": "#5", "uv": [0.0, 0.0, 1.0, 14.0] }, "south": { "texture": "#5", "uv": [0.0, 1.0, 4.0, 15.0] }, "west": { "texture": "#5", "uv": [0.0, 0.0, 1.0, 14.0] }, "up": { "texture": "#5", "uv": [0.0, 0.0, 4.0, 1.0] }, "down": { "texture": "#5", "uv": [0.0, 0.0, 4.0, 1.0] } } }, { "name": "Glass North 2", "from": [12.0, 1.0, 0.0], "to": [16.0, 15.0, 1.0], "faces": { "north": { "texture": "#5", "uv": [1.0, 1.0, 5.0, 15.0] }, "east": { "texture": "#5", "uv": [0.0, 0.0, 1.0, 14.0] }, "south": { "texture": "#5", "uv": [11.0, 1.0, 15.0, 15.0] }, "west": { "texture": "#5", "uv": [0.0, 0.0, 1.0, 14.0] }, "up": { "texture": "#5", "uv": [0.0, 0.0, 4.0, 1.0] }, "down": { "texture": "#5", "uv": [0.0, 0.0, 4.0, 1.0] } } }, { "name": "Glass East", "from": [15.0, 1.0, 1.0], "to": [16.0, 15.0, 16.0], "faces": { "north": { "texture": "#5", "uv": [0.0, 0.0, 1.0, 14.0] }, "east": { "texture": "#5", "uv": [0.0, 0.0, 15.0, 14.0] }, "south": { "texture": "#5", "uv": [0.0, 0.0, 1.0, 14.0] }, "west": { "texture": "#5", "uv": [0.0, 0.0, 15.0, 14.0] }, "up": { "texture": "#5", "uv": [0.0, 0.0, 1.0, 15.0] }, "down": { "texture": "#5", "uv": [0.0, 0.0, 1.0, 15.0] } } }, { "name": "Arm", "from": [7.0, 7.0, 7.0], "to": [9.0, 13.0, 9.0], "faces": { "north": { "texture": "#6", "uv": [0.0, 0.0, 8.0, 2.0] }, "east": { "texture": "#6", "uv": [0.0, 0.0, 2.0, 6.0] }, "south": { "texture": "#6", "uv": [0.0, 0.0, 2.0, 6.0] }, "west": { "texture": "#6", "uv": [0.0, 0.0, 2.0, 6.0] }, "up": { "texture": "#6", "uv": [0.0, 0.0, 2.0, 2.0] }, "down": { "texture": "#6", "uv": [0.0, 0.0, 2.0, 2.0] } } }, { "name": "Printer Head", "from": [7.5, 5.0, 7.5], "to": [8.5, 7.0, 8.5], "faces": { "north": { "texture": "#7", "uv": [0.0, 0.0, 8.0, 2.0] }, "east": { "texture": "#7", "uv": [0.0, 0.0, 1.0, 2.0] }, "south": { "texture": "#7", "uv": [0.0, 0.0, 1.0, 2.0] }, "west": { "texture": "#7", "uv": [0.0, 0.0, 1.0, 2.0] }, "up": { "texture": "#7", "uv": [0.0, 0.0, 1.0, 1.0] }, "down": { "texture": "#7", "uv": [0.0, 0.0, 1.0, 1.0] } } }, { "name": "Base", "from": [0.0, 0.0, 0.0], "to": [16.0, 1.0, 16.0], "faces": { "north": { "texture": "#0", "uv": [0.0, 14.0, 16.0, 15.0] }, "east": { "texture": "#0", "uv": [0.0, 14.0, 16.0, 15.0] }, "south": { "texture": "#0", "uv": [0.0, 14.0, 16.0, 15.0] }, "west": { "texture": "#0", "uv": [0.0, 14.0, 16.0, 15.0] }, "up": { "texture": "#0", "uv": [0.0, 0.0, 16.0, 16.0] }, "down": { "texture": "#0", "uv": [0.0, 0.0, 16.0, 16.0] } } }, { "name": "Glass South", "from": [1.0, 1.0, 15.0], "to": [15.0, 15.0, 16.0], "faces": { "north": { "texture": "#5", "uv": [0.0, 0.0, 14.0, 14.0] }, "east": { "texture": "#5", "uv": [0.0, 0.0, 1.0, 14.0] }, "south": { "texture": "#5", "uv": [0.0, 0.0, 14.0, 14.0] }, "west": { "texture": "#5", "uv": [0.0, 0.0, 1.0, 14.0] }, "up": { "texture": "#5", "uv": [0.0, 0.0, 14.0, 1.0] }, "down": { "texture": "#5", "uv": [0.0, 0.0, 14.0, 1.0] } } }, { "name": "Glass West", "from": [0.0, 1.0, 1.0], "to": [1.0, 15.0, 16.0], "faces": { "north": { "texture": "#5", "uv": [0.0, 0.0, 1.0, 14.0] }, "east": { "texture": "#5", "uv": [0.0, 0.0, 15.0, 14.0] }, "south": { "texture": "#5", "uv": [0.0, 0.0, 1.0, 14.0] }, "west": { "texture": "#5", "uv": [0.0, 0.0, 15.0, 14.0] }, "up": { "texture": "#5", "uv": [0.0, 0.0, 1.0, 15.0] }, "down": { "texture": "#5", "uv": [0.0, 0.0, 1.0, 15.0] } } }] } Blockstate JSON: Spoiler { "variants": { "normal": { "model": "foxtech:fox_tech_materializer" } } } Can someone look at this and spy any mistakes? For some reason the glass is only showing up. I feel it's a mistake in the naming or something. If any other code/json is needed just ask. http://i.imgur.com/C2FlJXb.png[/img] Hey! o/
February 10, 20178 yr Your textures reference in the model should be prefixed with "modid:". Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
February 10, 20178 yr 2 minutes ago, larsgerrits said: Your textures reference in the model should be prefixed with "modid:". In your case it would be "foxtech:blocks/texture_name" Classes: 94 Lines of code: 12173 Other files: 206 Github repo: https://github.com/KokkieBeer/DeGeweldigeMod
February 10, 20178 yr Author Spoiler Yes it was cause I didn't have my Modid what a derp. Thank you so much, but now there's one problem....the glass on the actual block isn't showing. Would anyone have any idea to why it's not? http://i.imgur.com/C2FlJXb.png[/img] Hey! o/
February 10, 20178 yr What do you mean? I see glass on there? Classes: 94 Lines of code: 12173 Other files: 206 Github repo: https://github.com/KokkieBeer/DeGeweldigeMod
February 10, 20178 yr Author Just now, Kokkie said: What do you mean? I see glass on there? Look at the block next to the item. It's supposed to be the exact same as the item on the ground. But it's not becoming transparent. http://i.imgur.com/C2FlJXb.png[/img] Hey! o/
February 10, 20178 yr Override Block#getBlockLayer to return BlockRenderLayer.TRANSLUCENT. Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
February 10, 20178 yr Author 5 minutes ago, larsgerrits said: Override Block#getBlockLayer to return BlockRenderLayer.TRANSLUCENT. Where exactly would I be overriding this at? http://i.imgur.com/C2FlJXb.png[/img] Hey! o/
February 10, 20178 yr 1 minute ago, mattyixiriva said: Block#getBlockLayer In your Block class. Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
February 10, 20178 yr Author 4 minutes ago, larsgerrits said: In your Block class. This what I have now. Spoiler public class BlockFoxTechMaterializer extends Block { public BlockFoxTechMaterializer() { super(Material.GROUND); setCreativeTab(CreativeTabs.MISC); setUnlocalizedName(Reference.FoxTech_Blocks.FOX_TECH_MATERIALIZER.getUnlocalizedName()); setRegistryName(Reference.FoxTech_Blocks.FOX_TECH_MATERIALIZER.getRegistryName()); Block.getBlockLayer(BlockRenderLayer.TRANSLUCENT); } } "getBlockLayer" is getting an error Edited February 10, 20178 yr by mattyixiriva http://i.imgur.com/C2FlJXb.png[/img] Hey! o/
February 10, 20178 yr No, you have to override the method, not call it. Edited February 10, 20178 yr by larsgerrits Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
February 10, 20178 yr Author When I override public BlockFoxTechMaterializer() {} It gives me this error. Or am I overriding the wrong method? "The annotation @Override is disallowed for this location" http://i.imgur.com/C2FlJXb.png[/img] Hey! o/
February 10, 20178 yr You are trying to override the constructor... You have to override the getRenderLayer method. Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
February 10, 20178 yr Author Spoiler package com.matthewrivas.foxtech.blocks; import com.matthewrivas.foxtech.Reference; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.util.BlockRenderLayer; public class BlockFoxTechMaterializer extends Block { public BlockFoxTechMaterializer() { super(Material.GROUND); setCreativeTab(CreativeTabs.MISC); setUnlocalizedName(Reference.FoxTech_Blocks.FOX_TECH_MATERIALIZER.getUnlocalizedName()); setRegistryName(Reference.FoxTech_Blocks.FOX_TECH_MATERIALIZER.getRegistryName()); } } This is my original class for my block. http://i.imgur.com/C2FlJXb.png[/img] Hey! o/
February 10, 20178 yr Do you know basic java? Yes? Then what are you doing?! Classes: 94 Lines of code: 12173 Other files: 206 Github repo: https://github.com/KokkieBeer/DeGeweldigeMod
February 10, 20178 yr 1 minute ago, mattyixiriva said: Reveal hidden contents package com.matthewrivas.foxtech.blocks; import com.matthewrivas.foxtech.Reference; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.util.BlockRenderLayer; public class BlockFoxTechMaterializer extends Block { public BlockFoxTechMaterializer() { super(Material.GROUND); setCreativeTab(CreativeTabs.MISC); setUnlocalizedName(Reference.FoxTech_Blocks.FOX_TECH_MATERIALIZER.getUnlocalizedName()); setRegistryName(Reference.FoxTech_Blocks.FOX_TECH_MATERIALIZER.getRegistryName()); } } This is my original class for my block. Ok, now override the getRenderLayer method. Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
February 10, 20178 yr Author Ok I got it working. I used @Override public BlockRenderLayer getBlockLayer() { return BlockRenderLayer.TRANSLUCENT; } But I don't think this was right... Spoiler I think that's making a lot of other textures transparent. http://i.imgur.com/C2FlJXb.png[/img] Hey! o/
February 10, 20178 yr First off, why haven't you activated Windows? Second, make sure you don't use any transparency in the texture... Classes: 94 Lines of code: 12173 Other files: 206 Github repo: https://github.com/KokkieBeer/DeGeweldigeMod
February 10, 20178 yr 2 minutes ago, Kokkie said: First off, why haven't you activated Windows? Ahah, was thinking at the same thing ! But well, who cares ? ^^
February 10, 20178 yr Author 3 minutes ago, Kokkie said: First off, why haven't you activated Windows? Second, make sure you don't use any transparency in the texture... 1. Windows works fine un-activated. Plan on buying it tho. 2. You know what now that I think of it the backgrounds of the images are transparent. I'll go try it. http://i.imgur.com/C2FlJXb.png[/img] Hey! o/
February 10, 20178 yr Author I found out what the problem is. It's something with the cullface. I disabled it on all the parts/textures and it pretty much show fine except I can see parts through parts. Like if i move around it the textures are fine until I get up in it's face. http://i.imgur.com/C2FlJXb.png[/img] Hey! o/
February 10, 20178 yr Mixing opaque geometry and transparent geometry will always be funky unless you know what you're doing. (Tip: you don't). Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
February 11, 20178 yr Author I found I like to learn the hard way, cause the easy way is boring. It's bad but it's more entertaining for me. http://i.imgur.com/C2FlJXb.png[/img] Hey! o/
February 11, 20178 yr No, you like to learn in the "please vomit the answer into my face" method. Which is really annoying for those of us who don't like regurgitating the same answer 47 times. Or put another way: You're doing it in a way such that upon encountering a problem you flail your arms and go "HALP" and never actually try to solve the problem yourself. You had to be told five times how to override a method. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
February 11, 20178 yr Author and I was trying to override the method.... but I was told the wrong method. So that really didn't help, until I found the method on my own.....wasn't Quote getRenderLaye r it was Quote BlockRenderLayer There's people who like to ask for help a lot and there's nothing wrong with that. I'm always happy to help if I can. You should know that you're on a forum where repeats and people requesting help a lot will show up. You would think if people got annoyed by that stuff, they'd keep quiet and keep to themselves? If you don't wanna help and then just get mad or something then just don't reply to begin with. I've said this before, helping and providing info is a lot better than replying back with useless arguments, or complaints. http://i.imgur.com/C2FlJXb.png[/img] Hey! o/
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.