Skip to content

Commit

Permalink
Merge pull request #1024 from dmzz-yyhyy/creative_generator_item_modl…
Browse files Browse the repository at this point in the history
…e_fix

修正创造发电机物品模型
  • Loading branch information
Gu-ZT authored Jul 8, 2024
2 parents 6c00a1e + 885fa23 commit 383f9af
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,10 @@ public class ModBlocks {
.properties(BlockBehaviour.Properties::noOcclusion)
.blockstate((ctx, provider) -> {
})
.simpleItem()
.item()
.model((ctx, provider) -> {
})
.build()
.tag(BlockTags.MINEABLE_WITH_PICKAXE)
.register();
public static final BlockEntry<? extends Block> HEATER = REGISTRATE
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"credit": "Made by XeKr with Blockbench",
"parent": "minecraft:block/block",
"textures": {
"particle": "anvilcraft:block/creative_generator_side",
"base": "anvilcraft:block/creative_generator_side",
"top": "anvilcraft:block/creative_generator_top",
"bottom": "anvilcraft:block/creative_generator_bottom",
"head": "anvilcraft:block/creative_generator_head"
},
"elements": [
{
"from": [0, 0, 0],
"to": [16, 4, 16],
"faces": {
"north": {"uv": [0, 12, 16, 16], "texture": "#base", "cullface": "north"},
"east": {"uv": [0, 12, 16, 16], "texture": "#base", "cullface": "east"},
"south": {"uv": [0, 12, 16, 16], "texture": "#base", "cullface": "south"},
"west": {"uv": [0, 12, 16, 16], "texture": "#base", "cullface": "west"},
"up": {"uv": [0, 0, 16, 16], "texture": "#top"},
"down": {"uv": [0, 0, 16, 16], "texture": "#bottom", "cullface": "down"}
}
},
{
"from": [3, 6, 3],
"to": [13, 16, 13],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 11, 8]},
"faces": {
"north": {"uv": [3, 3, 13, 13], "texture": "#head"},
"east": {"uv": [3, 3, 13, 13], "texture": "#head"},
"south": {"uv": [3, 3, 13, 13], "texture": "#head"},
"west": {"uv": [3, 3, 13, 13], "texture": "#head"},
"up": {"uv": [3, 3, 13, 13], "texture": "#head"},
"down": {"uv": [3, 3, 13, 13], "texture": "#head"}
}
}
]
}

This file was deleted.

This file was deleted.

0 comments on commit 383f9af

Please sign in to comment.