Skip to content

Commit

Permalink
Make machine frames waterloggable
Browse files Browse the repository at this point in the history
  • Loading branch information
NichtStudioCode committed Aug 27, 2024
1 parent 2ea7e04 commit be30cbd
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ import xyz.xenondevs.nova.world.block.behavior.Bucketable
import xyz.xenondevs.nova.world.block.behavior.TileEntityDrops
import xyz.xenondevs.nova.world.block.behavior.TileEntityInteractive
import xyz.xenondevs.nova.world.block.behavior.TileEntityLimited
import xyz.xenondevs.nova.world.block.behavior.Waterloggable
import xyz.xenondevs.nova.world.block.sound.SoundGroup
import xyz.xenondevs.nova.world.block.state.property.DefaultScopedBlockStateProperties
import xyz.xenondevs.nova.world.block.state.property.DefaultScopedBlockStateProperties.FACING_HORIZONTAL
import xyz.xenondevs.nova.world.item.tool.VanillaToolCategories
import xyz.xenondevs.nova.world.item.tool.VanillaToolTiers
Expand Down Expand Up @@ -181,7 +183,8 @@ object Blocks : BlockRegistry by Machines.registry {

private fun machineFrame(tier: String): NovaBlock =
block("${tier}_machine_frame") {
behaviors(MACHINE_FRAME, BlockSounds(SoundGroup.METAL), BlockDrops)
stateProperties(DefaultScopedBlockStateProperties.WATERLOGGED)
behaviors(MACHINE_FRAME, BlockSounds(SoundGroup.METAL), BlockDrops, Waterloggable)
models {
stateBacked(BackingStateCategory.LEAVES)
selectModel { getModel("block/machine_frame/$tier") }
Expand Down

0 comments on commit be30cbd

Please sign in to comment.