Geforce Posted December 18, 2014 Posted December 18, 2014 Hello everyone, I'm trying to add the texture for a "laser" block. This is what it is supposed to look like: http://i.imgur.com/Z4p8z4L.png But this is what it ends up looking like in 1.8: http://i.imgur.com/YgkXPTJ.png It's guessing it's because the block has custom bounds, and I'm doing something wrong in my JSON file, but I don't really know what to change it to. Could someone help me out? My model/block file: https://github.com/Geforce132/SecurityCraft/blob/master/1.8/src/main/resources/assets/securitycraft/models/block/laser.json My blockstate file: https://github.com/Geforce132/SecurityCraft/blob/master/1.8/src/main/resources/assets/securitycraft/blockstates/laser.json My BlockLaser file: https://github.com/Geforce132/SecurityCraft/blob/master/1.8/src/main/java/org/freeforums/geforce/securitycraft/blocks/BlockLaser.java Thanks for reading! ~Geforce Quote Potato's have skin. I have skin. Therefore, i am a potato. Follow me on Twitter! http://www.twitter.com/I_Mod_Minecraft
Draco18s Posted December 18, 2014 Posted December 18, 2014 My first suggestion would be to tell the block to render in Pass == 1 (transparent pass) but that would just alter the transparency problem, not the bounds problem. The bounds problem I believe needs to be fixed by adding bounds parameters to the model json. Quote 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.
perromercenary00 Posted December 18, 2014 Posted December 18, 2014 jajaja im actualy having same trouble but im doing a trapdoor if you do the json based on the normal 1M block you get a normal 1M block in the json must config how tu cut the texture for wath you want and thaths were am i https://www.dropbox.com/s/ozfekyivocqz91b/puertas.png?dl=0 i dont get yet how this "uv" works or what is "cullface" .minecraft-18/versions/1.8/1.8/assets/minecraft/models/block/door_bottom_rh.json { "ambientocclusion": false, "textures": { "particle": "#top" }, "elements": [ { "from": [ 0, 0, 0 ], "to": [ 3, 16, 16 ], "faces": { "up": { "uv": [ 13, 0, 16, 16 ], "texture": "#bottom", "cullface": "up" }, "north": { "uv": [ 3, 0, 0, 16 ], "texture": "#top", "cullface": "north" }, "south": { "uv": [ 0, 0, 3, 16 ], "texture": "#top", "cullface": "south" }, "west": { "uv": [ 16, 0, 0, 16 ], "texture": "#top", "cullface": "west" }, "east": { "uv": [ 0, 0, 16, 16 ], "texture": "#top" } } } ] } for the way looks your ray you alse gonna need a custom parental json like a choped cross.json but horizontal .minecraft-18/versions/1.8/1.8/assets/minecraft/models/block/cross.json { "ambientocclusion": false, "textures": { "particle": "#cross" }, "elements": [ { "from": [ 0.8, 0, 8 ], "to": [ 15.2, 16, 8 ], "rotation": { "origin": [ 8, 8, 8 ], "axis": "y", "angle": 45, "rescale": true }, "shade": false, "faces": { "north": { "uv": [ 0, 0, 16, 16 ], "texture": "#cross" }, "south": { "uv": [ 0, 0, 16, 16 ], "texture": "#cross" } } }, { "from": [ 8, 0, 0.8 ], "to": [ 8, 16, 15.2 ], "rotation": { "origin": [ 8, 8, 8 ], "axis": "y", "angle": 45, "rescale": true }, "shade": false, "faces": { "west": { "uv": [ 0, 0, 16, 16 ], "texture": "#cross" }, "east": { "uv": [ 0, 0, 16, 16 ], "texture": "#cross" } } } ] } the cross is the parental minecraft uses to render the sapplins wen planted one texture whith two planes in x Quote
perromercenary00 Posted December 19, 2014 Posted December 19, 2014 yesterday i do this two parentals. https://www.dropbox.com/s/tn2v8juk168aspu/parentalX.png?dl=0 parental_X.json { "ambientocclusion": false, "textures": { "particle": "#cross" }, "elements": [ { "from": [ 6.0, 0, 8 ], "to": [ 10.0, 16, 8 ], "rotation": { "origin": [ 8, 8, 8 ], "axis": "y", "angle": 45, "rescale": true }, "shade": false, "faces": { "north": { "uv": [ 0, 0, 16, 16 ], "texture": "#all" }, "south": { "uv": [ 0, 0, 16, 16 ], "texture": "#all" } } }, { "from": [ 8, 0, 6.0 ], "to": [ 8, 16, 10.0 ], "rotation": { "origin": [ 8, 8, 8 ], "axis": "y", "angle": 45, "rescale": true }, "shade": false, "faces": { "west": { "uv": [ 0, 0, 16, 16 ], "texture": "#all" }, "east": { "uv": [ 0, 0, 16, 16 ], "texture": "#all" } } } ] } https://www.dropbox.com/s/mhforol80875lfr/ParentalRombo.png?dl=0 parentalRombo.json { "ambientocclusion": false, "textures": { "particle": "#cross" }, "elements": [ { "from": [ 6.0, 0, 6.0 ], "to": [ 10.0, 16, 10.0 ], "rotation": { "origin": [ 8, 8, 8 ], "axis": "y", "angle": 45, "rescale": true }, "shade": false, "faces": { "north": { "uv": [ 0, 0, 16, 16 ], "texture": "#all" }, "south": { "uv": [ 0, 0, 16, 16 ], "texture": "#all" }, "east": { "uv": [ 0, 0, 16, 16 ], "texture": "#all" }, "west": { "uv": [ 0, 0, 16, 16 ], "texture": "#all" }, "up": { "uv": [ 0, 0, 16, 16 ], "texture": "#all" }, "down": { "uv": [ 0, 0, 16, 16 ], "texture": "#all" } } } ] } Quote
Recommended Posts
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.