fix: mineablity

This commit is contained in:
xtex 2023-07-27 20:25:48 +08:00
parent efade64c0f
commit 8eb5a75051
Signed by: xtex
GPG Key ID: B918086ED8045B91
5 changed files with 39 additions and 2 deletions

View File

@ -12,6 +12,7 @@ import net.minecraft.world.level.block.state.StateDefinition
import net.minecraft.world.level.block.state.properties.BlockStateProperties import net.minecraft.world.level.block.state.properties.BlockStateProperties
import net.minecraft.world.level.material.FluidState import net.minecraft.world.level.material.FluidState
import net.minecraft.world.level.material.Fluids import net.minecraft.world.level.material.Fluids
import net.minecraft.world.level.material.MapColor
import net.minecraft.world.phys.shapes.CollisionContext import net.minecraft.world.phys.shapes.CollisionContext
import net.minecraft.world.phys.shapes.Shapes import net.minecraft.world.phys.shapes.Shapes
import net.minecraft.world.phys.shapes.VoxelShape import net.minecraft.world.phys.shapes.VoxelShape
@ -20,6 +21,9 @@ object CABlock : HorizontalDirectionalBlock(
Properties.of() Properties.of()
.lightLevel { 2 } .lightLevel { 2 }
.noOcclusion() .noOcclusion()
.strength(2f)
.requiresCorrectToolForDrops()
.mapColor(MapColor.COLOR_CYAN)
), EntityBlock, SimpleWaterloggedBlock { ), EntityBlock, SimpleWaterloggedBlock {
val shapes = getShapeForEachState(::createVoxelShape) val shapes = getShapeForEachState(::createVoxelShape)

View File

@ -1,6 +1,8 @@
{ {
"replace": false, "replace": false,
"values": [ "values": [
"quaedam:projector" "quaedam:projector",
"quaedam:causality_anchor",
"#quaedam:projections"
] ]
} }

View File

@ -1,6 +1,8 @@
{ {
"replace": false, "replace": false,
"values": [ "values": [
"quaedam:projector" "quaedam:projector",
"quaedam:causality_anchor",
"#quaedam:projections"
] ]
} }

View File

@ -0,0 +1,21 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"bonus_rolls": 0,
"entries": [
{
"type": "minecraft:item",
"name": "quaedam:causality_anchor"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
],
"random_sequence": "quaedam:block/causality_anchor"
}

View File

@ -0,0 +1,8 @@
{
"values": [
"quaedam:noise_projection",
"quaedam:sound_projection",
"quaedam:skylight_projection",
"quaedam:swarm_projection"
]
}