attempt
This commit is contained in:
parent
cba52d8a66
commit
0b635aab7e
@ -93,6 +93,11 @@ object DataGen {
|
||||
blockStateProvider.simpleBlockM(*blocks)
|
||||
}
|
||||
|
||||
fun decorativeCubeAllCutout(vararg blocks: Block) {
|
||||
blockModelProvider.decorativeCubeAllCutout(*blocks)
|
||||
blockStateProvider.simpleBlockM(*blocks)
|
||||
}
|
||||
|
||||
fun decorativeCubeAll(subdir: String, vararg blocks: Block) {
|
||||
blockModelProvider.decorativeCubeAll(subdir, *blocks)
|
||||
blockStateProvider.simpleBlockM(*blocks)
|
||||
|
@ -35,6 +35,7 @@ fun addDecorativeData(blockStateProvider: MatteryBlockStateProvider, itemModelPr
|
||||
}
|
||||
|
||||
DataGen.decorativeCubeAll(MBlocks.CARBON_FIBRE_BLOCK)
|
||||
DataGen.decorativeCubeAllCutout(MBlocks.METAL_MESH)
|
||||
|
||||
DataGen.decoratives(MRegistry.TRITANIUM_BLOCK)
|
||||
|
||||
|
@ -27,6 +27,9 @@ fun addBlockModels(provider: MatteryBlockModelProvider) {
|
||||
|
||||
column(MBlocks.GENERATOR_BLOCK, "block/generator_block","block/generator_block_top")
|
||||
|
||||
cubeAllCutout(MBlocks.MODULAR_FRAME)
|
||||
cubeAllCutout(MBlocks.HEAVY_MODULAR_FRAME)
|
||||
|
||||
cubeAll(MBlocks.ENERGY_INPUT_INTERFACE)
|
||||
cubeAll(MBlocks.ENERGY_OUTPUT_INTERFACE)
|
||||
|
||||
|
@ -31,7 +31,6 @@ fun addBlockStates(provider: MatteryBlockStateProvider) {
|
||||
provider.ore(MBlocks.TRITANIUM_ORE)
|
||||
provider.ore(MBlocks.TRITANIUM_RAW_BLOCK)
|
||||
provider.block(MBlocks.TRITANIUM_INGOT_BLOCK)
|
||||
provider.block(MBlocks.METAL_MESH)
|
||||
|
||||
provider.ore(MBlocks.DILITHIUM_ORE)
|
||||
provider.ore(MBlocks.DEEPSLATE_DILITHIUM_ORE)
|
||||
|
@ -34,6 +34,23 @@ class MatteryBlockModelProvider(event: GatherDataEvent) : BlockModelProvider(eve
|
||||
}
|
||||
}
|
||||
|
||||
fun cubeAllCutout(vararg blocks: Block) {
|
||||
for (block in blocks) {
|
||||
exec {
|
||||
cubeAll(block.registryName!!.path, modLocation("block/${block.registryName!!.path}")).renderType("cutout_mipped")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun cubeallFramed(vararg blocks: Block) {
|
||||
for (block in blocks) {
|
||||
exec {
|
||||
//cubeAll(block.registryName!!.path, modLocation("block/${block.registryName!!.path}")).renderType("cutout_mipped")
|
||||
withExistingParent(block.registryName!!.path, modLocation("block/frame_block")).renderType("cutout_mipped")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun decorativeGlassAll(blocks: Collection<Block>) {
|
||||
for (block in blocks) {
|
||||
exec {
|
||||
@ -58,6 +75,14 @@ class MatteryBlockModelProvider(event: GatherDataEvent) : BlockModelProvider(eve
|
||||
}
|
||||
}
|
||||
|
||||
fun decorativeCubeAllCutout(vararg blocks: Block) {
|
||||
for (block in blocks) {
|
||||
exec {
|
||||
cubeAll(block.registryName!!.path, modLocation("block/decorative/${block.registryName!!.path}")).renderType("cutout_mipped")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun decorativeCubeAll(subdir: String, vararg blocks: Block) {
|
||||
for (block in blocks) {
|
||||
exec {
|
||||
|
@ -0,0 +1,32 @@
|
||||
{
|
||||
"textures": {
|
||||
"particle": "#texture",
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"from": [0, 0, 0],
|
||||
"to": [16, 16, 16],
|
||||
"faces": {
|
||||
"north": {"uv": [0, 0, 16, 16], "texture": "#texture"},
|
||||
"east": {"uv": [0, 0, 16, 16], "texture": "#texture"},
|
||||
"south": {"uv": [0, 0, 16, 16], "texture": "#texture"},
|
||||
"west": {"uv": [0, 0, 16, 16], "texture": "#texture"},
|
||||
"up": {"uv": [0, 0, 16, 16], "texture": "#texture"},
|
||||
"down": {"uv": [0, 0, 16, 16], "texture": "#texture"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [15.999, 15.999, 15.999],
|
||||
"to": [0.001, 0.001, 0.001],
|
||||
"rotation": {"angle": 0, "axis": "y", "origin": [16, 16, 16]},
|
||||
"faces": {
|
||||
"north": {"uv": [0, 0, 16, 16], "texture": "#texture"},
|
||||
"east": {"uv": [0, 0, 16, 16], "texture": "#texture"},
|
||||
"south": {"uv": [0, 0, 16, 16], "texture": "#texture"},
|
||||
"west": {"uv": [0, 0, 16, 16], "texture": "#texture"},
|
||||
"up": {"uv": [0, 0, 16, 16], "texture": "#texture"},
|
||||
"down": {"uv": [0, 0, 16, 16], "texture": "#texture"}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
{
|
||||
"parent": "minecraft:block/cube_all",
|
||||
"render_type": "cutout",
|
||||
"textures": {
|
||||
"all": "overdrive_that_matters:block/decorative/metal_mesh"
|
||||
}
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 496 B After Width: | Height: | Size: 496 B |
Loading…
Reference in New Issue
Block a user