Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

AkaliSucks

Members
  • Joined

  • Last visited

  1. I just solved it by putting the "textures" : {} in my item json }
  2. alright i removed them but i still have the same issue
  3. One thing to mention is if I replace the Item json's Parent with an existing block like dirt, it actually loads up a dirt block { "parent": "block/dirt", "display": { "thirdperson": { "rotation": [ 10, -45, 170], "translation": [ 0, 1.5, -2.75 ], "scale": [ 0.375, 0.375, 0.375] } } }
  4. so now Im having it run in preInit right after it initializes my blocks , Im back to it being the right model but missing textures
  5. public static void custommodel(BlockOre block) { Item item = Item.getItemFromBlock(block); ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation("gregtech:" + block.getUnlocalizedName().substring(5), "inventory") ); } It actually seems to have gone backwards after doing this since the block got bigger
  6. public static void custommodel(BlockOre block) { Item item = Item.getItemFromBlock(block); // ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation("gregtech:" + block.getUnlocalizedName().substring(5), "inventory") ); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation("gregtech:" + block.getUnlocalizedName().substring(5), "inventory")); } This is my item model register which also is in the same class as my block register down below oreTin = register(new BlockOre(Material.ROCK, "oreTin",3F,3F).setCreativeTab(GregTechMod.gregtechT)); custommodel(oreTin);
  7. Its lowercase now and is not the issues as it still happens
  8. my modid in actually code is lowervase, I changed it when I copied over and from what I can tell im getting 0 errors in the console
  9. { "forge_marker": 1, "defaults": { "textures": { "stone": "blocks/stone", "ore" : "MyMod:blocks/ore" } }, "variants": { "normal": { "model": "myMod:ore" } } this is my blockstate for my ore the issue is my attached file if shows the model for the block but gives missing texture below is my inventory model { "parent": "MyMod:block/ore", "display": { "thirdperson": { "rotation": [ 10, -45, 170], "translation": [ 0, 1.5, -2.75 ], "scale": [ 0.375, 0.375, 0.375] } } } and my model json { "parent": "block/block", "textures": { "particle": "#stone" }, "elements": [ { "from": [0, 0, 0], "to": [16, 16, 16], "faces": { "down": {"texture": "#stone", "cullface": "down", "tintindex": 0}, "up": {"texture": "#stone", "cullface": "up", "tintindex": 0}, "north": {"texture": "#stone", "cullface": "north", "tintindex": 0}, "south": {"texture": "#stone", "cullface": "south", "tintindex": 0}, "west": {"texture": "#stone", "cullface": "west", "tintindex": 0}, "east": {"texture": "#stone", "cullface": "east", "tintindex": 0} } }, { "from": [0, 0, 0], "to": [16, 16, 16], "faces": { "down": {"texture": "#ore", "cullface": "down"}, "up": {"texture": "#ore", "cullface": "up"}, "north": {"texture": "#ore", "cullface": "north"}, "south": {"texture": "#ore", "cullface": "south"}, "west": {"texture": "#ore", "cullface": "west"}, "east": {"texture": "#ore", "cullface": "east"} } } ] }
  10. Thank you that was the reason @SideOnly(Side.CLIENT) public BlockRenderLayer getBlockLayer() { return BlockRenderLayer.CUTOUT_MIPPED; } I added that and it works now
  11. I'm adding hundreds of Ores so im creating a system that colors them with code. to do this I need to have the stone part of the ore separated from the ore itself this is my tin blockstate.json { "forge_marker": 1, "defaults": { "textures": { "stone": "blocks/stone", "ore" : "gregtech:blocks/tinOre" } }, "variants": { "normal": { "model": "gregtech:ore" }, "inventory": { "model": "gregtech:ore" } } } the model.json is as follows { "parent": "block/block", "textures": { "particle": "#stone" }, "elements": [ { "from": [0, 0, 0], "to": [16, 16, 16], "faces": { "down": {"texture": "#stone", "cullface": "down", "tintindex": 0}, "up": {"texture": "#stone", "cullface": "up", "tintindex": 0}, "north": {"texture": "#stone", "cullface": "north", "tintindex": 0}, "south": {"texture": "#stone", "cullface": "south", "tintindex": 0}, "west": {"texture": "#stone", "cullface": "west", "tintindex": 0}, "east": {"texture": "#stone", "cullface": "east", "tintindex": 0} } }, { "from": [0, 0, 0], "to": [16, 16, 16], "faces": { "down": {"texture": "#ore", "cullface": "down"}, "up": {"texture": "#ore", "cullface": "up"}, "north": {"texture": "#ore", "cullface": "north"}, "south": {"texture": "#ore", "cullface": "south"}, "west": {"texture": "#ore", "cullface": "west"}, "east": {"texture": "#ore", "cullface": "east"} } } ] } After I launch Minecraft My issue is the attached image, the stone gets overwritten by the ore texture completely

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.