Jump to content

GSR

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by GSR

  1. If you're trying to make a custom armor model as well, I don't know anything about that part off the top of my head.
  2. The magenta is a sign of a missing texture. If you're doing a custom texture you need to store the png as "...assets/[modid]/textures/models/armor/[armor_name]_layer_1" or as "...assets/[modid]/textures/models/armor/[armor_name]_layer_2". "...layer_1"'s for helmet/chestplate/boots, "...layer_2"'s for leggings. Then you just need to return "[modid]:[armor_name]" in the .getName() method of the ArmorMaterial provided to the ArmorItem as argument to it's constructor. If you're using a texture in minecraft's resource pack you can just omit the modid.
  3. Here's a paste of the run/logs/debug.log file too in case it can help: https://pastebin.com/11GdkHhx
  4. Adding the "minecraft:block/block" as the parent to the large_heat_sink.json model fixes how it renders in the players hand and inventory slots to be more so consistent with other blocks, but it still doesn't render in the world to any extent. Still good to know though, still helpful improvement. In fact cutting out the middle person all together doesn't fix anything either, nor does copying a working block that's from minecraft's block json file as the large_copper_heat_sink block model, they'll only work for the BlockItem. I tried both among many other things throughout yesterday, along with reading all the documentation I could find, yet I have no clue. And I can't find other people reporting it happening for forge 1.19.3 - 44.1.0 either, so I'd suspect it's something to do with my set up. I've uploaded the build.gradle file, as well as several others. To be entirely honest I don't know what they actually mean/represent/do, I've been doing this for roughly five days and haven't researched them yet. Your patience and contribution of your time is very much appreciated.
  5. Aye, thank you for the feedback. Here is a github repository of the project that's very stripped down and reproducing the error perfectly for me: https://github.com/GSR-Os76/YATM.
  6. I'm having a problem I can't figure. My blocks always show with the missing texture texture, and the basic cube model when placed, ignoring the associated json file located at: "src/main/resources/assets/gsr_yatm/models/block/large_copper_heat_sink.json". But, if I copy the file exactly into: "src/main/resources/assets/gsr_yatm/models/item/", it'll render the model and textures correctly for the BlockItem form, oversized in hand and so, but still correctly. For example the declaration and registration of a block I'm using. public static final String MODID = "gsr_yatm"; public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, MODID); public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, MODID); public static final RegistryObject<Block> LARGE_COPPER_HEAT_SINK = BLOCKS.register("large_copper_heat_sink", () -> new Block(BlockBehaviour.Properties.of(Material.STONE))); public static final RegistryObject<Item> LARGE_COPPER_HEAT_SINK_ITEM = queueForGeneralCreativeTab(ITEMS.register("large_copper_heat_sink", () -> new BlockItem(LARGE_COPPER_HEAT_SINK.get(), new Item.Properties()))); And then in my main class's constructor this's everything. IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus(); BLOCKS.register(modEventBus); ITEMS.register(modEventBus); //MinecraftForge.EVENT_BUS.register(this); modEventBus.addListener(this::addCreative); modEventBus.addListener(this::buildContents); And for reference the aforementioned large_copper_heat_sink.json file: { "parent": "gsr_yatm:block/large_heat_sink", "textures": { "1": "gsr_yatm:block/large_copper_heat_sink_one", "2": "gsr_yatm:block/large_copper_heat_sink_two" } } And then finally the parent it references: { "credit": "Made with Blockbench", "textures": { "particle": "#1" }, "elements": [ { "from": [0, 0, 0], "to": [16, 4, 16], "faces": { "north": {"uv": [0, 0, 16, 4], "texture": "#2"}, "east": {"uv": [0, 0, 16, 4], "texture": "#2"}, "south": {"uv": [0, 0, 16, 4], "texture": "#2"}, "west": {"uv": [0, 0, 16, 4], "texture": "#2"}, "up": {"uv": [0, 0, 16, 16], "texture": "#1"}, "down": {"uv": [0, 0, 16, 16], "texture": "#1"} } }, { "from": [4, 4, 4], "to": [12, 5, 12], "faces": { "north": {"uv": [4, 9, 12, 10], "texture": "#1"}, "east": {"uv": [4, 9, 12, 10], "texture": "#1"}, "south": {"uv": [4, 9, 12, 10], "texture": "#1"}, "west": {"uv": [4, 9, 12, 10], "texture": "#1"}, "up": {"uv": [0, 0, 8, 8], "texture": "#1"}, "down": {"uv": [0, 0, 8, 8], "texture": "#1"} } }, { "from": [0, 5, 0], "to": [16, 6, 16], "faces": { "north": {"uv": [0, 6, 16, 7], "texture": "#1"}, "east": {"uv": [0, 6, 16, 7], "texture": "#1"}, "south": {"uv": [0, 6, 16, 7], "texture": "#1"}, "west": {"uv": [0, 6, 16, 7], "texture": "#1"}, "up": {"uv": [0, 0, 16, 16], "texture": "#1"}, "down": {"uv": [0, 0, 16, 16], "texture": "#1"} } }, { "from": [4, 6, 4], "to": [12, 7, 12], "faces": { "north": {"uv": [4, 8, 12, 9], "texture": "#1"}, "east": {"uv": [4, 8, 12, 9], "texture": "#1"}, "south": {"uv": [4, 8, 12, 9], "texture": "#1"}, "west": {"uv": [4, 8, 12, 9], "texture": "#1"}, "up": {"uv": [0, 0, 8, 8], "texture": "#1"}, "down": {"uv": [0, 0, 8, 8], "texture": "#1"} } }, { "from": [0, 7, 0], "to": [16, 8, 16], "faces": { "north": {"uv": [0, 4, 16, 5], "texture": "#1"}, "east": {"uv": [0, 4, 16, 5], "texture": "#1"}, "south": {"uv": [0, 4, 16, 5], "texture": "#1"}, "west": {"uv": [0, 4, 16, 5], "texture": "#1"}, "up": {"uv": [0, 0, 16, 16], "texture": "#1"}, "down": {"uv": [0, 0, 16, 16], "texture": "#1"} } }, { "from": [4, 8, 4], "to": [12, 9, 12], "faces": { "north": {"uv": [4, 7, 12, 8], "texture": "#1"}, "east": {"uv": [4, 7, 12, 8], "texture": "#1"}, "south": {"uv": [4, 7, 12, 8], "texture": "#1"}, "west": {"uv": [4, 7, 12, 8], "texture": "#1"}, "up": {"uv": [0, 0, 8, 8], "texture": "#1"}, "down": {"uv": [0, 0, 8, 8], "texture": "#1"} } }, { "from": [0, 9, 0], "to": [16, 10, 16], "faces": { "north": {"uv": [0, 3, 16, 4], "texture": "#1"}, "east": {"uv": [0, 3, 16, 4], "texture": "#1"}, "south": {"uv": [0, 3, 16, 4], "texture": "#1"}, "west": {"uv": [0, 3, 16, 4], "texture": "#1"}, "up": {"uv": [0, 0, 16, 16], "rotation": 180, "texture": "#1"}, "down": {"uv": [0, 0, 16, 16], "rotation": 90, "texture": "#1"} } }, { "from": [4, 10, 4], "to": [12, 11, 12], "faces": { "north": {"uv": [4, 6, 12, 7], "texture": "#1"}, "east": {"uv": [4, 6, 12, 7], "texture": "#1"}, "south": {"uv": [4, 6, 12, 7], "texture": "#1"}, "west": {"uv": [4, 6, 12, 7], "texture": "#1"}, "up": {"uv": [0, 0, 8, 8], "texture": "#1"}, "down": {"uv": [0, 0, 8, 8], "texture": "#1"} } }, { "from": [0, 11, 0], "to": [16, 12, 16], "faces": { "north": {"uv": [0, 0, 16, 1], "texture": "#1"}, "east": {"uv": [0, 1, 16, 0], "texture": "#1"}, "south": {"uv": [0, 0, 16, 1], "texture": "#1"}, "west": {"uv": [0, 0, 16, 1], "texture": "#1"}, "up": {"uv": [0, 0, 16, 16], "texture": "#1"}, "down": {"uv": [0, 0, 16, 16], "texture": "#1"} } }, { "from": [4, 12, 4], "to": [12, 13, 12], "faces": { "north": {"uv": [4, 5, 12, 6], "texture": "#1"}, "east": {"uv": [4, 5, 12, 6], "texture": "#1"}, "south": {"uv": [4, 5, 12, 6], "texture": "#1"}, "west": {"uv": [4, 5, 12, 6], "texture": "#1"}, "up": {"uv": [0, 0, 8, 8], "texture": "#1"}, "down": {"uv": [0, 0, 8, 8], "texture": "#1"} } }, { "from": [0, 13, 0], "to": [16, 14, 16], "faces": { "north": {"uv": [0, 1, 16, 2], "texture": "#1"}, "east": {"uv": [0, 1, 16, 2], "texture": "#1"}, "south": {"uv": [0, 1, 16, 2], "texture": "#1"}, "west": {"uv": [0, 1, 16, 2], "texture": "#1"}, "up": {"uv": [0, 0, 16, 16], "rotation": 270, "texture": "#1"}, "down": {"uv": [0, 0, 16, 16], "rotation": 180, "texture": "#1"} } }, { "from": [4, 14, 4], "to": [12, 15, 12], "faces": { "north": {"uv": [4, 4, 12, 5], "texture": "#1"}, "east": {"uv": [4, 4, 12, 5], "texture": "#1"}, "south": {"uv": [4, 4, 12, 5], "texture": "#1"}, "west": {"uv": [4, 4, 12, 5], "texture": "#1"}, "up": {"uv": [0, 0, 8, 8], "texture": "#1"}, "down": {"uv": [0, 0, 8, 8], "texture": "#1"} } }, { "from": [0, 15, 0], "to": [16, 16, 16], "faces": { "north": {"uv": [0, 0, 16, 1], "texture": "#1"}, "east": {"uv": [0, 0, 16, 1], "texture": "#1"}, "south": {"uv": [0, 0, 16, 1], "texture": "#1"}, "west": {"uv": [0, 0, 16, 1], "texture": "#1"}, "up": {"uv": [0, 0, 16, 16], "texture": "#1"}, "down": {"uv": [0, 0, 16, 16], "texture": "#1"} } } ] } Any help'd be sincerely appreciated, GSR
×
×
  • Create New...

Important Information

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