Compare commits

...
Author SHA1 Message Date
Plastered_Crab 0fa544d994 Bare bones for Dig Job Block 2025-03-18 16:21:43 -07:00
Plastered_Crab e8312dd95b Bare bones for Dig Job Block 2025-03-18 16:21:33 -07:00
2 changed files with 20 additions and 0 deletions
@@ -363,6 +363,9 @@ object CobblemonBlocks : PlatformRegistry<Registry<Block>, ResourceKey<Registry<
@JvmField
val PASTURE = create("pasture", PastureBlock(BlockBehaviour.Properties.of().mapColor(MapColor.COLOR_BROWN).sound(SoundType.WOOD).strength(2F).noOcclusion().pushReaction(PushReaction.BLOCK).lightLevel { if ((it.getValue(PastureBlock.ON) as Boolean) && (it.getValue(PastureBlock.PART) == PastureBlock.PasturePart.TOP)) 10 else 0 }))
@JvmField
val DIG_JOB_BLOCK = create("job_block_dig", DigJobBlock(BlockBehaviour.Properties.of().mapColor(MapColor.METAL).sound(SoundType.GRAVEL).pushReaction(PushReaction.BLOCK).strength(2f).noOcclusion()))
val RED_MINT = create("red_mint", MintBlock(MintType.RED, BlockBehaviour.Properties.of().mapColor(MapColor.COLOR_RED).noCollission().randomTicks().instabreak().sound(CobblemonSounds.MINT_SOUNDS).pushReaction(PushReaction.DESTROY)))
@JvmField
val BLUE_MINT = create("blue_mint", MintBlock(MintType.BLUE, BlockBehaviour.Properties.of().mapColor(MapColor.COLOR_BLUE).noCollission().randomTicks().instabreak().sound(CobblemonSounds.MINT_SOUNDS).pushReaction(PushReaction.DESTROY)))
@@ -0,0 +1,17 @@
package com.cobblemon.mod.common.block
import com.mojang.serialization.MapCodec
import net.minecraft.core.BlockPos
import net.minecraft.world.level.block.BaseEntityBlock
import net.minecraft.world.level.block.entity.BlockEntity
import net.minecraft.world.level.block.state.BlockState
class DigJobBlock(settings: Properties) : BaseEntityBlock(settings) {
override fun codec(): MapCodec<out BaseEntityBlock> {
TODO("Not yet implemented")
}
override fun newBlockEntity(pos: BlockPos, state: BlockState): BlockEntity? {
TODO("Not yet implemented")
}
}