hatch textures
@ -39,11 +39,15 @@ class SoundDataProvider(event: GatherDataEvent) : SoundDefinitionsProvider(event
|
||||
definition().subtitle("otm.sound.android.shockwave")
|
||||
.with(SoundDefinition.Sound.sound(modLocation("android/shockwave"), SoundDefinition.SoundType.SOUND)))
|
||||
|
||||
add(
|
||||
MSoundEvents.BLACK_HOLE,
|
||||
definition().subtitle("otm.sound.black_hole")
|
||||
.with(SoundDefinition.Sound.sound(modLocation("singularity/amb_singularity"), SoundDefinition.SoundType.SOUND).stream()))
|
||||
|
||||
add(
|
||||
MSoundEvents.ANDROID_PROJ_PARRY,
|
||||
definition().subtitle("otm.sound.android.projectile_parry")
|
||||
.with(SoundDefinition.Sound.sound(modLocation("android/punch_projectile"), SoundDefinition.SoundType.SOUND))
|
||||
)
|
||||
.with(SoundDefinition.Sound.sound(modLocation("android/punch_projectile"), SoundDefinition.SoundType.SOUND)))
|
||||
}
|
||||
|
||||
private inline fun add(value: SoundEvent, block: SoundDefinition.() -> Unit) {
|
||||
|
@ -24,10 +24,16 @@ fun addBlockModels(provider: MatteryBlockModelProvider) {
|
||||
column(MBlocks.FLYWHEEL_BEARING, "block/flywheel_bearing","block/flywheel_bearing_top")
|
||||
column(MBlocks.FLYWHEEL_SHAFT, "block/flywheel_shaft","block/flywheel_shaft_top")
|
||||
|
||||
cubeAll(MBlocks.GENERATOR_BLOCK)
|
||||
column(MBlocks.GENERATOR_BLOCK, "block/generator_block","block/generator_block_top")
|
||||
cubeAll(MBlocks.ENERGY_INPUT_INTERFACE)
|
||||
cubeAll(MBlocks.ENERGY_OUTPUT_INTERFACE)
|
||||
|
||||
orientable(MBlocks.MATTER_INPUT_HATCH,"block/hatch","block/matter_input_hatch")
|
||||
orientable(MBlocks.MATTER_OUTPUT_HATCH,"block/hatch","block/matter_output_hatch")
|
||||
|
||||
orientable(MBlocks.ENERGY_INPUT_HATCH,"block/hatch","block/energy_input_hatch")
|
||||
orientable(MBlocks.ENERGY_OUTPUT_HATCH,"block/hatch","block/energy_output_hatch")
|
||||
|
||||
cable("crude_energy_cable", "block/power_cable_0", powered = true)
|
||||
cable("regular_energy_cable", "block/power_cable_1", powered = true)
|
||||
cable("advanced_energy_cable", "block/power_cable_2", powered = true)
|
||||
|
@ -342,4 +342,10 @@ fun addBlockStates(provider: MatteryBlockStateProvider) {
|
||||
provider.block(MBlocks.GENERATOR_BLOCK)
|
||||
provider.block(MBlocks.ENERGY_INPUT_INTERFACE)
|
||||
provider.block(MBlocks.ENERGY_OUTPUT_INTERFACE)
|
||||
|
||||
provider.block(MBlocks.ENERGY_INPUT_HATCH)
|
||||
provider.block(MBlocks.ENERGY_OUTPUT_HATCH)
|
||||
|
||||
provider.block(MBlocks.MATTER_INPUT_HATCH)
|
||||
provider.block(MBlocks.MATTER_OUTPUT_HATCH)
|
||||
}
|
||||
|
@ -241,6 +241,14 @@ fun addItemModels(provider: MatteryItemModelProvider) {
|
||||
provider.block(MItems.ENERGY_INPUT_INTERFACE)
|
||||
provider.block(MItems.ENERGY_OUTPUT_INTERFACE)
|
||||
|
||||
provider.block(MItems.ENERGY_INPUT_HATCH)
|
||||
provider.block(MItems.ENERGY_OUTPUT_HATCH)
|
||||
|
||||
provider.block(MItems.MATTER_INPUT_HATCH)
|
||||
provider.block(MItems.MATTER_OUTPUT_HATCH)
|
||||
|
||||
|
||||
|
||||
for (item in MItems.TRITANIUM_ANVIL) {
|
||||
provider.block(item)
|
||||
}
|
||||
|
@ -94,6 +94,12 @@ class MatteryBlockModelProvider(event: GatherDataEvent) : BlockModelProvider(eve
|
||||
}
|
||||
}
|
||||
|
||||
fun orientable(block: Block, side: String, front: String) {
|
||||
exec {
|
||||
orientable(block.registryName!!.path, modLocation(side), modLocation(front), modLocation(side))
|
||||
}
|
||||
}
|
||||
|
||||
fun decorativeColumn(it: Block, side: String, end: String) {
|
||||
column(it, "block/decorative/$side", "block/decorative/$end")
|
||||
}
|
||||
|
@ -22,6 +22,8 @@ object MSoundEvents {
|
||||
val ANDROID_SHOCKWAVE by make("android.shockwave")
|
||||
val ANDROID_PROJ_PARRY by make("android.projectile_parry")
|
||||
|
||||
val BLACK_HOLE by make("black_hole")
|
||||
|
||||
fun register(bus: IEventBus) {
|
||||
registry.register(bus)
|
||||
}
|
||||
|
After Width: | Height: | Size: 499 B |
Before Width: | Height: | Size: 471 B After Width: | Height: | Size: 474 B |
After Width: | Height: | Size: 492 B |
Before Width: | Height: | Size: 471 B After Width: | Height: | Size: 474 B |
After Width: | Height: | Size: 483 B |
After Width: | Height: | Size: 460 B |
After Width: | Height: | Size: 499 B |
After Width: | Height: | Size: 475 B |
After Width: | Height: | Size: 492 B |
After Width: | Height: | Size: 475 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |