Jump to content

[1.15.2] Missing file texture, but it seems to be correctly linked.


Thy_Creeper_King

Recommended Posts

I am trying to make a stonecutter-like block with the same model, but the model and texture aren't working properly. I try out different things, and sometimes it shows the texture and model correctly in the inventory, put not when placed down. Sometimes it just doesn't show textures for either. Here are the WARNs in the runClient tab, and the model JSON file.

 

Quote

{
   "parent": "block/block",
   "textures": {
      "particle": "iiwam:/blocks/carpentry_table_bottom",
      "bottom": "iiwam:/blocks/carpentry_table_bottom",
      "top": "iiwam:/blocks/carpentry_table_top",
      "side": "iiwam:/blocks/carpentry_table_side",
      "saw": "iiwam:/blocks/carpentry_table_saw"
   },
   "elements": [
      {   "from": [ 0, 0, 0 ],
         "to": [ 16, 9, 16 ],
         "faces": {
            "down":  { "uv": [ 0, 0, 16, 16 ], "texture": "iiwam:/blocks/carpentry_table_bottom", "cullface": "down" },
            "up":    { "uv": [ 0, 0, 16, 16 ], "texture": "iiwam:/blocks/carpentry_table_top" },
            "north": { "uv": [ 0, 7, 16, 16 ], "texture": "iiwam:/blocks/carpentry_table_side", "cullface": "north" },
            "south": { "uv": [ 0, 7, 16, 16 ], "texture": "iiwam:/blocks/carpentry_table_side", "cullface": "south" },
            "west":  { "uv": [ 0, 7, 16, 16 ], "texture": "iiwam:/blocks/carpentry_table_side", "cullface": "west" },
            "east":  { "uv": [ 0, 7, 16, 16 ], "texture": "iiwam:/blocks/carpentry_table_side", "cullface": "east" }
         }
      },
      {   "from": [ 1, 9, 8 ],
         "to": [ 15, 16, 8 ],
         "faces": {
            "north": { "uv": [ 1, 9, 15, 16 ], "texture": "iiwam:/blocks/carpentry_table_saw", "tintindex": 0 },
            "south": { "uv": [ 1, 9, 15, 16 ], "texture": "iiwam:/blocks/carpentry_table_saw", "tintindex": 0 }
         }
      }
   ]
}

 

Quote

[20:26:31] [Server-Worker-2/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'iiwam:blockstates/carpentry_table.json' in resourcepack: 'Mod Resources' for variant: 'east': Unknown blockstate property: 'east'
[20:26:31] [Server-Worker-2/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'iiwam:blockstates/carpentry_table.json' in resourcepack: 'Mod Resources' for variant: 'south': Unknown blockstate property: 'south'
[20:26:31] [Server-Worker-2/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'iiwam:blockstates/carpentry_table.json' in resourcepack: 'Mod Resources' for variant: 'north': Unknown blockstate property: 'north'
[20:26:31] [Server-Worker-2/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'iiwam:blockstates/carpentry_table.json' in resourcepack: 'Mod Resources' for variant: 'west': Unknown blockstate property: 'west'
[20:26:31] [Server-Worker-2/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'iiwam:blockstates/carpentry_table.json' missing model for variant: 'iiwam:carpentry_table#'
[20:26:32] [Server-Worker-2/WARN] [minecraft/ModelBakery]: Unable to resolve texture reference: iiwam:/blocks/carpentry_table_bottom in iiwam:item/carpentry_table
[20:26:32] [Server-Worker-2/WARN] [minecraft/ModelBakery]: Unable to resolve texture reference: iiwam:/blocks/carpentry_table_top in iiwam:item/carpentry_table
[20:26:32] [Server-Worker-2/WARN] [minecraft/ModelBakery]: Unable to resolve texture reference: iiwam:/blocks/carpentry_table_side in iiwam:item/carpentry_table
[20:26:32] [Server-Worker-2/WARN] [minecraft/ModelBakery]: Unable to resolve texture reference: iiwam:/blocks/carpentry_table_saw in iiwam:item/carpentry_table

 

intellij capture.PNG

2020-06-24_20.42.56.png

Link to comment
Share on other sites

Quote

Missing file texture, but it seems to be correctly linked.

I mean, its obviously not correct if it's showing a missing texture...

 

38 minutes ago, Thy_Creeper_King said:

item:/blocks

remove the /

38 minutes ago, Thy_Creeper_King said:

blocks

should be "block" not "block"

 

https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/resources/assets/harderfarming/models/block/winter_wheat_stage0.json#L4

Edited by Draco18s

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.

Link to comment
Share on other sites

Thank you for your help, but it still isn't working.

 

Quote

{
   "parent": "block/block",
   "textures": {
      "particle": "iiwam:block/carpentry_table_bottom",
      "bottom": "iiwam:block/carpentry_table_bottom",
      "top": "iiwam:block/carpentry_table_top",
      "side": "iiwam:block/carpentry_table_side",
      "saw": "iiwam:block/carpentry_table_saw"
   },
   "elements": [
      {   "from": [ 0, 0, 0 ],
         "to": [ 16, 9, 16 ],
         "faces": {
            "down":  { "uv": [ 0, 0, 16, 16 ], "texture": "iiwam:block/carpentry_table_bottom", "cullface": "down" },
            "up":    { "uv": [ 0, 0, 16, 16 ], "texture": "iiwam:block/carpentry_table_top" },
            "north": { "uv": [ 0, 7, 16, 16 ], "texture": "iiwam:block/carpentry_table_side", "cullface": "north" },
            "south": { "uv": [ 0, 7, 16, 16 ], "texture": "iiwam:block/carpentry_table_side", "cullface": "south" },
            "west":  { "uv": [ 0, 7, 16, 16 ], "texture": "iiwam:block/carpentry_table_side", "cullface": "west" },
            "east":  { "uv": [ 0, 7, 16, 16 ], "texture": "iiwam:block/carpentry_table_side", "cullface": "east" }
         }
      },
      {   "from": [ 1, 9, 8 ],
         "to": [ 15, 16, 8 ],
         "faces": {
            "north": { "uv": [ 1, 9, 15, 16 ], "texture": "iiwam:block/carpentry_table_saw", "tintindex": 0 },
            "south": { "uv": [ 1, 9, 15, 16 ], "texture": "iiwam:block/carpentry_table_saw", "tintindex": 0 }
         }
      }
   ]
}
Quote

[21:29:54] [Server-Worker-1/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'iiwam:blockstates/carpentry_table.json' in resourcepack: 'Mod Resources' for variant: 'east': Unknown blockstate property: 'east'
[21:29:54] [Server-Worker-1/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'iiwam:blockstates/carpentry_table.json' in resourcepack: 'Mod Resources' for variant: 'south': Unknown blockstate property: 'south'
[21:29:54] [Server-Worker-1/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'iiwam:blockstates/carpentry_table.json' in resourcepack: 'Mod Resources' for variant: 'north': Unknown blockstate property: 'north'
[21:29:54] [Server-Worker-1/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'iiwam:blockstates/carpentry_table.json' in resourcepack: 'Mod Resources' for variant: 'west': Unknown blockstate property: 'west'
[21:29:54] [Server-Worker-1/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'iiwam:blockstates/carpentry_table.json' missing model for variant: 'iiwam:carpentry_table#'
[21:29:56] [Server-Worker-1/WARN] [minecraft/ModelBakery]: Unable to resolve texture reference: iiwam:block/carpentry_table_bottom in iiwam:item/carpentry_table
[21:29:56] [Server-Worker-1/WARN] [minecraft/ModelBakery]: Unable to resolve texture reference: iiwam:block/carpentry_table_top in iiwam:item/carpentry_table
[21:29:56] [Server-Worker-1/WARN] [minecraft/ModelBakery]: Unable to resolve texture reference: iiwam:block/carpentry_table_side in iiwam:item/carpentry_table
[21:29:56] [Server-Worker-1/WARN] [minecraft/ModelBakery]: Unable to resolve texture reference: iiwam:block/carpentry_table_saw in iiwam:item/carpentry_table
[21:30:02] [Server-Worker-5/ERROR] [minecraft/AtlasTexture]: Using missing texture, unable to load iiwam:textures/block/carpentry_table_bottom.png : java.io.FileNotFoundException: iiwam:textures/block/carpentry_table_bottom.png
 

 

2020-06-24_21.31.26.png

Edited by Thy_Creeper_King
Link to comment
Share on other sites

still not working

Quote

[21:43:51] [Server-Worker-2/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'iiwam:blockstates/carpentry_table.json' in resourcepack: 'Mod Resources' for variant: 'facing=south': Unknown blockstate property: 'facing'
[21:43:51] [Server-Worker-2/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'iiwam:blockstates/carpentry_table.json' in resourcepack: 'Mod Resources' for variant: 'facing=east': Unknown blockstate property: 'facing'
[21:43:51] [Server-Worker-2/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'iiwam:blockstates/carpentry_table.json' in resourcepack: 'Mod Resources' for variant: 'facing=north': Unknown blockstate property: 'facing'
[21:43:51] [Server-Worker-2/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'iiwam:blockstates/carpentry_table.json' in resourcepack: 'Mod Resources' for variant: 'facing=west': Unknown blockstate property: 'facing'
[21:43:51] [Server-Worker-2/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'iiwam:blockstates/carpentry_table.json' missing model for variant: 'iiwam:carpentry_table#'
[21:43:52] [Server-Worker-2/WARN] [minecraft/ModelBakery]: Unable to resolve texture reference: iiwam:block/carpentry_table_bottom in iiwam:item/carpentry_table
[21:43:52] [Server-Worker-2/WARN] [minecraft/ModelBakery]: Unable to resolve texture reference: iiwam:block/carpentry_table_top in iiwam:item/carpentry_table
[21:43:52] [Server-Worker-2/WARN] [minecraft/ModelBakery]: Unable to resolve texture reference: iiwam:block/carpentry_table_side in iiwam:item/carpentry_table
[21:43:52] [Server-Worker-2/WARN] [minecraft/ModelBakery]: Unable to resolve texture reference: iiwam:block/carpentry_table_saw in iiwam:item/carpentry_table
[21:44:05] [Server-Worker-4/ERROR] [minecraft/AtlasTexture]: Using missing texture, unable to load iiwam:textures/block/carpentry_table_bottom.png : java.io.FileNotFoundException: iiwam:textures/block/carpentry_table_bottom.png
 

 

Link to comment
Share on other sites

Here you go 

Quote

package com.thycreeperking.iiwam.blocks;

import net.minecraft.block.Block;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraftforge.common.ToolType;

public class CarpentryTableBlock extends Block {

    public CarpentryTableBlock() {
        super(Block.Properties.create(Material.WOOD)
                .hardnessAndResistance(2.5f, 2.5f)
                .sound(SoundType.WOOD)
                .harvestLevel(0)
                .harvestTool(ToolType.AXE));
    }
}

 

Link to comment
Share on other sites

package com.thycreeperking.iiwam.blocks;

import net.minecraft.block.Block;
import net.minecraft.block.HorizontalBlock;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraftforge.common.ToolType;

public class CarpentryTableBlock extends HorizontalBlock {

    public CarpentryTableBlock() {
        super(Properties.create(Material.WOOD)
                .hardnessAndResistance(2.5f, 2.5f)
                .sound(SoundType.WOOD)
                .harvestLevel(0)
                .harvestTool(ToolType.AXE));
    }
}
Link to comment
Share on other sites

that's not enough, you need to actually implement the blockstate

you can declare what the default state is by putting this in ur constructor.

        setDefaultState(getDefaultState()
                .with(HORIZONTAL_FACING, Direction.NORTH)

and override this so it knows that you have the facing as one of your blockstate

    @Override
    protected void fillStateContainer(StateContainer.Builder<Block, BlockState> builder)
    {
        builder.add(HORIZONTAL_FACING);
    }

and by overriding this

    @Override
    public BlockState getStateForPlacement(BlockItemUseContext context)
    {
        return this.getDefaultState()
                .with(HORIZONTAL_FACING, context.getPlacementHorizontalFacing());
    }

when placed this gets called, and return the state that has the facing corresponds to the player's horizontal facing.

Link to comment
Share on other sites

Ok so the model is good now, but the texture is still missing. 

 

Quote

package com.thycreeperking.iiwam.blocks;

import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.HorizontalBlock;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraft.item.BlockItemUseContext;
import net.minecraft.state.StateContainer;
import net.minecraft.util.Direction;
import net.minecraftforge.common.ToolType;

public class CarpentryTableBlock extends HorizontalBlock {

    public CarpentryTableBlock() {
        super(Properties.create(Material.WOOD)
                .hardnessAndResistance(2.5f, 2.5f)
                .sound(SoundType.WOOD)
                .harvestLevel(0)
                .harvestTool(ToolType.AXE));
        setDefaultState(getDefaultState()
                .with(HORIZONTAL_FACING, Direction.NORTH));
    }
    @Override
    protected void fillStateContainer(StateContainer.Builder<Block, BlockState> builder)
    {
        builder.add(HORIZONTAL_FACING);
    }
    @Override
    public BlockState getStateForPlacement(BlockItemUseContext context)
    {
        return this.getDefaultState()
                .with(HORIZONTAL_FACING, context.getPlacementHorizontalFacing());
    }
}

 

Edited by Thy_Creeper_King
Link to comment
Share on other sites

4 hours ago, poopoodice said:

try remove parent key in ur block model

No.

8 hours ago, Thy_Creeper_King said:

[21:44:05] [Server-Worker-4/ERROR] [minecraft/AtlasTexture]: Using missing texture, unable to load iiwam:textures/block/carpentry_table_bottom.png : java.io.FileNotFoundException: iiwam:textures/block/carpentry_table_bottom.png

Show your file paths in Windows Explorer

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.

Link to comment
Share on other sites

You need to change your folder name from "blocks" to "block" as well.

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.

Link to comment
Share on other sites

Screenshots of purple are useless to helping solve the problem, we need the log files.

24 minutes ago, Thy_Creeper_King said:

someone else told me to change it to blocks lol

No, I told you to change it away from blocks. No one else has even mentioned it.

 

That said:

  

5 hours ago, Draco18s said:

iiwam:textures/block/carpentry_table_bottom.png

You do not have this file.

Edited by Draco18s

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.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I've been trying to make a mod pack for the last day or so now and I haven't been able to launch it once even with all mods disabled. It keeps showing up with Exit Code 1. I gave the modpack to a friend to try and it didn't launch on their pc either due to the same exit code, so I'm not entirely certain what the problem is or how to check it in the logs. So far I've attempted: - Changing from forge version 43.3.0 to 43.3.5 - Downloading Java - Disabling mods (both entirely and individually) I have an NVIDIA GeForce GTX 1070 driver, and I haven't tried to uninstall or reinstall it yet because I'm not certain how to and would have to mess anything up further. I have the latest .txt file of the crash report here: [16:24:34] [main/WARN]: Failed to add PDH Counter: \Paging File(_Total)\% Usage, Error code: 0xC0000BB8 [16:24:34] [main/WARN]: Failed to add counter for PDH counter: \Paging File(_Total)\% Usage [16:24:34] [main/WARN]: Disabling further attempts to query Paging File. [16:24:36] [main/WARN]: COM exception: Invalid Query: SELECT PERCENTUSAGE FROM Win32_PerfRawData_PerfOS_PagingFile [16:24:39] [Datafixer Bootstrap/INFO]: 198 Datafixer optimizations took 149 milliseconds [16:24:40] [Render thread/INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD] [16:24:40] [Render thread/INFO]: Setting user: CatDoodlee [16:24:41] [Render thread/INFO]: Backend library: LWJGL version 3.3.2+13 [16:24:42] [Render thread/INFO]: Reloading ResourceManager: vanilla [16:24:42] [Worker-Main-11/INFO]: Found unifont_all_no_pua-15.1.04.hex, loading [16:24:44] [Render thread/WARN]: Missing sound for event: minecraft:item.goat_horn.play [16:24:44] [Render thread/WARN]: Missing sound for event: minecraft:entity.goat.screaming.horn_break [16:24:44] [Render thread/INFO]: OpenAL initialized on device OpenAL Soft on Speakers (Atrix Wired Elite Headset) [16:24:44] [Render thread/INFO]: Sound engine started [16:24:44] [Render thread/INFO]: Created: 1024x512x4 minecraft:textures/atlas/blocks.png-atlas [16:24:44] [Render thread/INFO]: Created: 256x256x4 minecraft:textures/atlas/signs.png-atlas [16:24:44] [Render thread/INFO]: Created: 512x512x4 minecraft:textures/atlas/shield_patterns.png-atlas [16:24:44] [Render thread/INFO]: Created: 512x512x4 minecraft:textures/atlas/banner_patterns.png-atlas [16:24:44] [Render thread/INFO]: Created: 1024x1024x4 minecraft:textures/atlas/armor_trims.png-atlas [16:24:44] [Render thread/INFO]: Created: 128x64x4 minecraft:textures/atlas/decorated_pot.png-atlas [16:24:44] [Render thread/INFO]: Created: 256x256x4 minecraft:textures/atlas/chest.png-atlas [16:24:44] [Render thread/INFO]: Created: 512x256x4 minecraft:textures/atlas/shulker_boxes.png-atlas [16:24:44] [Render thread/INFO]: Created: 512x256x4 minecraft:textures/atlas/beds.png-atlas [16:24:45] [Render thread/WARN]: Shader rendertype_entity_translucent_emissive could not find sampler named Sampler2 in the specified shader program. [16:24:45] [Render thread/INFO]: Created: 512x256x0 minecraft:textures/atlas/particles.png-atlas [16:24:45] [Render thread/INFO]: Created: 256x256x0 minecraft:textures/atlas/paintings.png-atlas [16:24:45] [Render thread/INFO]: Created: 128x128x0 minecraft:textures/atlas/mob_effects.png-atlas [16:24:45] [Render thread/INFO]: Created: 1024x512x0 minecraft:textures/atlas/gui.png-atlas [16:25:41] [Render thread/INFO]: Stopping! any form of help is greatly appreciated ❤️
    • Tanks for answer, I added SleepTight and I removed Modernfix, but it still crashing: new log new crash log
    • Hi, I'm trying to hide specific vanilla effects such as levitation or slow falling from the inventory GUI, but I haven't been able to figure out how to do this. I need this because they are triggered by another effect and I don't need them all showing up. Unfortunately, I don't know of any mods that include this feature, and I couldn't find any documentation on the process. I've already looked into the IClientMobEffectExtensions interface, but I'm uncertain about how to implement it in my own effect, let alone in any existing vanilla effect. Please help I am using Forge 47.2.0. for Minecraft 1.20.1
    • Also wondering how to create these manually.  First time creating a forge server.
  • Topics

×
×
  • Create New...

Important Information

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