Good morning

This commit is contained in:
GearShocky 2025-02-27 15:53:59 +05:00
parent 0b635aab7e
commit b5e2b24dd5
3 changed files with 23 additions and 24 deletions

View File

@ -26,9 +26,8 @@ fun addBlockModels(provider: MatteryBlockModelProvider) {
orientable(MBlocks.FLYWHEEL_BATTERY,"block/flywheel_housing","block/flywheel_controller") orientable(MBlocks.FLYWHEEL_BATTERY,"block/flywheel_housing","block/flywheel_controller")
column(MBlocks.GENERATOR_BLOCK, "block/generator_block","block/generator_block_top") column(MBlocks.GENERATOR_BLOCK, "block/generator_block","block/generator_block_top")
cubeAllFramed("modular_frame", "block/modular_frame")
cubeAllCutout(MBlocks.MODULAR_FRAME) cubeAllFramed("heavy_modular_frame", "block/heavy_modular_frame")
cubeAllCutout(MBlocks.HEAVY_MODULAR_FRAME)
cubeAll(MBlocks.ENERGY_INPUT_INTERFACE) cubeAll(MBlocks.ENERGY_INPUT_INTERFACE)
cubeAll(MBlocks.ENERGY_OUTPUT_INTERFACE) cubeAll(MBlocks.ENERGY_OUTPUT_INTERFACE)

View File

@ -42,12 +42,11 @@ class MatteryBlockModelProvider(event: GatherDataEvent) : BlockModelProvider(eve
} }
} }
fun cubeallFramed(vararg blocks: Block) { fun cubeAllFramed(modelName: String, textureName: String) {
for (block in blocks) { exec {
exec { withExistingParent(modelName, modLocation("block/frame_block"))
//cubeAll(block.registryName!!.path, modLocation("block/${block.registryName!!.path}")).renderType("cutout_mipped") .texture("texture", textureName)
withExistingParent(block.registryName!!.path, modLocation("block/frame_block")).renderType("cutout_mipped") .renderType("cutout_mipped")
}
} }
} }

View File

@ -1,31 +1,32 @@
{ {
"parent": "block/block",
"textures": { "textures": {
"particle": "#texture", "particle": "#texture"
}, },
"elements": [ "elements": [
{ {
"from": [0, 0, 0], "from": [0, 0, 0],
"to": [16, 16, 16], "to": [16, 16, 16],
"faces": { "faces": {
"north": {"uv": [0, 0, 16, 16], "texture": "#texture"}, "north": {"uv": [0, 0, 16, 16], "texture": "#texture", "cullface": "north"},
"east": {"uv": [0, 0, 16, 16], "texture": "#texture"}, "east": {"uv": [0, 0, 16, 16], "texture": "#texture", "cullface": "east"},
"south": {"uv": [0, 0, 16, 16], "texture": "#texture"}, "south": {"uv": [0, 0, 16, 16], "texture": "#texture", "cullface": "south"},
"west": {"uv": [0, 0, 16, 16], "texture": "#texture"}, "west": {"uv": [0, 0, 16, 16], "texture": "#texture", "cullface": "west"},
"up": {"uv": [0, 0, 16, 16], "texture": "#texture"}, "up": {"uv": [0, 0, 16, 16], "texture": "#texture", "cullface": "up"},
"down": {"uv": [0, 0, 16, 16], "texture": "#texture"} "down": {"uv": [0, 0, 16, 16], "texture": "#texture", "cullface": "down"}
} }
}, },
{ {
"from": [15.999, 15.999, 15.999], "from": [15.9994, 15.9994, 15.9994],
"to": [0.001, 0.001, 0.001], "to": [0.0004, 0.0004, 0.0004],
"rotation": {"angle": 0, "axis": "y", "origin": [16, 16, 16]}, "rotation": {"angle": 0, "axis": "y", "origin": [16, 16, 16]},
"faces": { "faces": {
"north": {"uv": [0, 0, 16, 16], "texture": "#texture"}, "north": {"uv": [0, 0, 16, 16], "texture": "#texture", "cullface": "south"},
"east": {"uv": [0, 0, 16, 16], "texture": "#texture"}, "east": {"uv": [0, 0, 16, 16], "texture": "#texture", "cullface": "west"},
"south": {"uv": [0, 0, 16, 16], "texture": "#texture"}, "south": {"uv": [0, 0, 16, 16], "texture": "#texture", "cullface": "north"},
"west": {"uv": [0, 0, 16, 16], "texture": "#texture"}, "west": {"uv": [0, 0, 16, 16], "texture": "#texture", "cullface": "east"},
"up": {"uv": [0, 0, 16, 16], "texture": "#texture"}, "up": {"uv": [0, 0, 16, 16], "texture": "#texture", "cullface": "down"},
"down": {"uv": [0, 0, 16, 16], "texture": "#texture"} "down": {"uv": [0, 0, 16, 16], "texture": "#texture", "cullface": "up"}
} }
} }
] ]