Description:
I'm encountering an issue with the tombstone block model in my Minecraft mod. The game fails to load the texture specified in the block model JSON, likely due to an incorrect file path or missing texture in the resource folder. The error is related to the texture reference rune:block/tombstone in the model JSON.
Steps to Reproduce:
- Create a Minecraft mod with the provided block model JSON for the tombstone block.
- Place the texture file
tombstone.png in the resource folder as shown in the attached screenshot.
- Register the block model using the provided Java code in the
initBlockModels method.
- Run the game and attempt to load the world or place the tombstone block.
Expected Behavior:
The tombstone block should render with the texture specified in rune:block/tombstone as defined in the model JSON.
Actual Behavior:
The game either fails to load the texture (resulting in a missing texture error, e.g., purple-black checkerboard).
Screenshots:
- Resource folder structure:

Relevant Code:
Block Model JSON (tombstone.json):
{
"format_version": "1.21.6",
"credit": "Made with Blockbench",
"texture_size": [32, 32],
"textures": {
"0": "rune:block/tombstone",
"particle": "rune:block/tombstone"
},
"elements": [
{
"from": [4, -1.5, 5.5],
"to": [12, 8.5, 12.5],
"rotation": {"angle": 10, "axis": "x", "origin": [5, 3.5, 11.5]},
"color": 3,
"faces": {
"north": {"uv": [3.5, 3.5, 7.5, 8.5], "texture": "#0"},
"east": {"uv": [0, 3.5, 3.5, 8.5], "texture": "#0"},
"south": {"uv": [11, 3.5, 15, 8.5], "texture": "#0"},
"west": {"uv": [7.5, 3.5, 11, 8.5], "texture": "#0"},
"up": {"uv": [7.5, 3.5, 3.5, 0], "texture": "#0"},
"down": {"uv": [11.5, 0, 7.5, 3.5], "texture": "#0"}
}
}
]
}
Java Code (initBlockModels method):
@Override
public void initBlockModels(BlockModelDispatcher dispatcher) {
ModelHelper.setBlockModel(RuneBlocks.TOMBSTONE, () -> new BlockModelDFJava<>(RuneBlocks.TOMBSTONE, DragonFly.loadBlockModel("rune:block/tombstone")));
ModelHelper.setBlockModel(RuneBlocks.PLANT_NIGHTFALLIUM, () -> new BlockModelNightFalliumPlant<>(RuneBlocks.PLANT_NIGHTFALLIUM)
.setTex(0, MOD_ID + ":block/plant_nightfallium", Side.sides)
);
ModelHelper.setBlockModel(RuneBlocks.MINERAL_NIGHTFALLIUM_VOLCANIC_STONE, () -> new BlockModelStandard<>(RuneBlocks.MINERAL_NIGHTFALLIUM_VOLCANIC_STONE)
.setTex(0, MOD_ID + ":block/mineral_nightfallium_volcanic_rock", Side.sides)
);
ModelHelper.setBlockModel(RuneBlocks.NIGHTFALLIUM_VOLCANIC_STONE, () -> new BlockModelStandard<>(RuneBlocks.NIGHTFALLIUM_VOLCANIC_STONE)
.setTex(0, MOD_ID + ":block/nightfallium_volcanic_rock", Side.sides)
);
RuneMod.LOGGER.info("Block Models initialized.");
}
Additional Details:
- BTA 7.3_04
- dragonfly version: v1.7.0-alpha.4
- Mod Repo: https://github.com/Garkatron/BTA-Rune/tree/7.3_04
- The resource folder structure is as shown in the screenshot, with
tombstone.png located in src/main/resources/assets/rune/block/.
- Other blocks load the texture of the tombstone but aren't blockbench models.
Possible Solutions Attempted:
- Verified the texture file exists in
assets/rune/block/tombstone.png.
- Ensured the namespace
rune matches the mod ID.
- Checked for typos in the file path and JSON.
- Reloaded the resource pack and restarted the game.
Could you help identify why the tombstone texture is not loading?
Description:
I'm encountering an issue with the tombstone block model in my Minecraft mod. The game fails to load the texture specified in the block model JSON, likely due to an incorrect file path or missing texture in the resource folder. The error is related to the texture reference
rune:block/tombstonein the model JSON.Steps to Reproduce:
tombstone.pngin the resource folder as shown in the attached screenshot.initBlockModelsmethod.Expected Behavior:
The tombstone block should render with the texture specified in
rune:block/tombstoneas defined in the model JSON.Actual Behavior:
The game either fails to load the texture (resulting in a missing texture error, e.g., purple-black checkerboard).
Screenshots:
Relevant Code:
Block Model JSON (
tombstone.json):{ "format_version": "1.21.6", "credit": "Made with Blockbench", "texture_size": [32, 32], "textures": { "0": "rune:block/tombstone", "particle": "rune:block/tombstone" }, "elements": [ { "from": [4, -1.5, 5.5], "to": [12, 8.5, 12.5], "rotation": {"angle": 10, "axis": "x", "origin": [5, 3.5, 11.5]}, "color": 3, "faces": { "north": {"uv": [3.5, 3.5, 7.5, 8.5], "texture": "#0"}, "east": {"uv": [0, 3.5, 3.5, 8.5], "texture": "#0"}, "south": {"uv": [11, 3.5, 15, 8.5], "texture": "#0"}, "west": {"uv": [7.5, 3.5, 11, 8.5], "texture": "#0"}, "up": {"uv": [7.5, 3.5, 3.5, 0], "texture": "#0"}, "down": {"uv": [11.5, 0, 7.5, 3.5], "texture": "#0"} } } ] }Java Code (
initBlockModelsmethod):Additional Details:
tombstone.pnglocated insrc/main/resources/assets/rune/block/.Possible Solutions Attempted:
assets/rune/block/tombstone.png.runematches the mod ID.Could you help identify why the tombstone texture is not loading?