Jump to content

Recommended Posts

Posted

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

Posted (edited)
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.

Posted (edited)

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
Posted
{
  "variants": {
    "north": { "model": "iiwam:block/carpentry_table" },
    "south": { "model": "iiwam:block/carpentry_table", "y": 180 },
    "west": { "model": "iiwam:block/carpentry_table", "y": 270 },
    "east": { "model": "iiwam:block/carpentry_table", "y": 90 }
  }
}
Posted

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
 

 

Posted

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));
    }
}

 

Posted (edited)

extend your block class to HorizontalBlock if it is what you need (which looks right to you), otherwise see how other vanilla blocks does it.

Edited by poopoodice
Posted
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));
    }
}
Posted

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.

Posted (edited)

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
Posted
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.

Posted

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.

Posted (edited)

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.

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.

Announcements



×
×
  • Create New...

Important Information

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