tubi_carrillo Posted March 31, 2020 Share Posted March 31, 2020 (edited) Everything related to the mod works perfectly, the problem comes when my added block (which is an extended version of a repeater, and reuses it's textures except for the top) is rendering the transparent parts of the lit redstone torch. I have the same part of the json file, with the correct uv mappings for said torches. The following, is the json file for the vanilla repeater. I will exclude unrelated parts of the model, so that it doesn't become hard to read, and because I don't think the issue is with the json file per se. { "ambientocclusion": false, "textures": { "particle": "block/repeater_on", "slab": "block/smooth_stone", "top": "block/repeater_on", "lit": "block/redstone_torch" }, "elements": [ /* ignore the "top" part of the model */ , /* here starts the movable torch (for delay) */ { "from": [ 7, 7, 6 ], "to": [ 9, 7, 8 ], "faces": { "up": { "uv": [ 7, 6, 9, 8 ], "texture": "#lit" } } }, { "from": [ 7, 2, 5 ], "to": [ 9, 8, 9 ], "faces": { "west": { "uv": [ 6, 5, 10, 11 ], "texture": "#lit" }, "east": { "uv": [ 6, 5, 10, 11 ], "texture": "#lit" } } }, { "from": [ 6, 2, 6 ], "to": [ 10, 8, 8 ], "faces": { "north": { "uv": [ 6, 5, 10, 11 ], "texture": "#lit" }, "south": { "uv": [ 6, 5, 10, 11 ], "texture": "#lit" } } }, /* here starts the unmovable torch */ { "from": [ 7, 7, 2 ], "to": [ 9, 7, 4 ], "faces": { "up": { "uv": [ 7, 6, 9, 8 ], "texture": "#lit" } } }, { "from": [ 7, 2, 1 ], "to": [ 9, 8, 5 ], "faces": { "west": { "uv": [ 6, 5, 10, 11 ], "texture": "#lit" }, "east": { "uv": [ 6, 5, 10, 11 ], "texture": "#lit" } } }, { "from": [ 6, 2, 2 ], "to": [ 10, 8, 4 ], "faces": { "north": { "uv": [ 6, 5, 10, 11 ], "texture": "#lit" }, "south": { "uv": [ 6, 5, 10, 11 ], "texture": "#lit" } } } ] } And here's my json file: { "ambientocclusion": false, "textures": { "particle": "block/repeater_on", "slab": "block/smooth_stone", "top": "extendedrepeaters:blocks/extended_repeater_1min_1max_comparator_on", "max": "block/cyan_wool", "lit": "block/redstone_torch" }, "elements": [ /* mod parts */, /* movable torch */ { "from": [ 7, 7, 6 ], "to": [ 9, 7, 8 ], "faces": { "up": { "uv": [ 7, 6, 9, 8 ], "texture": "#lit" } } }, { "from": [ 7, 2, 5 ], "to": [ 9, 8, 9 ], "faces": { "west": { "uv": [ 6, 5, 10, 11 ], "texture": "#lit" }, "east": { "uv": [ 6, 5, 10, 11 ], "texture": "#lit" } } }, { "from": [ 6, 2, 6 ], "to": [ 10, 8, 8 ], "faces": { "north": { "uv": [ 6, 5, 10, 11 ], "texture": "#lit" }, "south": { "uv": [ 6, 5, 10, 11 ], "texture": "#lit" } } }, /* unmovable torch */ { "from": [ 7, 7, 2 ], "to": [ 9, 7, 4 ], "faces": { "up": { "uv": [ 7, 6, 9, 8 ], "texture": "#lit" } } }, { "from": [ 7, 2, 1 ], "to": [ 9, 8, 5 ], "faces": { "west": { "uv": [ 6, 5, 10, 11 ], "texture": "#lit" }, "east": { "uv": [ 6, 5, 10, 11 ], "texture": "#lit" } } }, { "from": [ 6, 2, 2 ], "to": [ 10, 8, 4 ], "faces": { "north": { "uv": [ 6, 5, 10, 11 ], "texture": "#lit" }, "south": { "uv": [ 6, 5, 10, 11 ], "texture": "#lit" } } } ] } Edited April 1, 2020 by tubi_carrillo Moved image to the left Quote Link to comment Share on other sites More sharing options...
MadHatAK Posted March 31, 2020 Share Posted March 31, 2020 What do you have the RenderType set too? Quote Link to comment Share on other sites More sharing options...
Animefan8888 Posted March 31, 2020 Share Posted March 31, 2020 5 minutes ago, tubi_carrillo said: issue is with the json file per se. You would likely be correct. Could you post your code and check out this post. Quote 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. Link to comment Share on other sites More sharing options...
tubi_carrillo Posted March 31, 2020 Author Share Posted March 31, 2020 3 minutes ago, MadHatAK said: What do you have the RenderType set too? I haven't, I'm guessing I should specify it inside when registering the block? or is it inside the block class? Quote Link to comment Share on other sites More sharing options...
Animefan8888 Posted March 31, 2020 Share Posted March 31, 2020 Just now, tubi_carrillo said: I haven't, I'm guessing I should specify it inside when registering the block? or is it inside the block class? Check the link I posted. Quote 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. Link to comment Share on other sites More sharing options...
tubi_carrillo Posted March 31, 2020 Author Share Posted March 31, 2020 7 minutes ago, Animefan8888 said: You would likely be correct. Could you post your code and check out this post. How do I get the instance of my block so that I can set the render layer? Should I just instanciate a new one? Quote Link to comment Share on other sites More sharing options...
Animefan8888 Posted April 1, 2020 Share Posted April 1, 2020 4 minutes ago, tubi_carrillo said: Should I just instanciate a new one? No you need to use the instance you already registered. Quote 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. Link to comment Share on other sites More sharing options...
tubi_carrillo Posted April 1, 2020 Author Share Posted April 1, 2020 Just now, Animefan8888 said: No you need to use the instance you already registered. I forgot to use .get() after the instance, and was obviously getting an error. Thank you both for the fast responses! Quote Link to comment Share on other sites More sharing options...
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.