diff --git a/common/src/main/kotlin/quaedam/misc/causality/CABlock.kt b/common/src/main/kotlin/quaedam/misc/causality/CABlock.kt index 39298d6..95a7efc 100644 --- a/common/src/main/kotlin/quaedam/misc/causality/CABlock.kt +++ b/common/src/main/kotlin/quaedam/misc/causality/CABlock.kt @@ -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.material.FluidState 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.Shapes import net.minecraft.world.phys.shapes.VoxelShape @@ -20,6 +21,9 @@ object CABlock : HorizontalDirectionalBlock( Properties.of() .lightLevel { 2 } .noOcclusion() + .strength(2f) + .requiresCorrectToolForDrops() + .mapColor(MapColor.COLOR_CYAN) ), EntityBlock, SimpleWaterloggedBlock { val shapes = getShapeForEachState(::createVoxelShape) diff --git a/common/src/main/resources/data/minecraft/tags/blocks/mineable/pickaxe.json b/common/src/main/resources/data/minecraft/tags/blocks/mineable/pickaxe.json index 0dc913c..5279bce 100644 --- a/common/src/main/resources/data/minecraft/tags/blocks/mineable/pickaxe.json +++ b/common/src/main/resources/data/minecraft/tags/blocks/mineable/pickaxe.json @@ -1,6 +1,8 @@ { "replace": false, "values": [ - "quaedam:projector" + "quaedam:projector", + "quaedam:causality_anchor", + "#quaedam:projections" ] } \ No newline at end of file diff --git a/common/src/main/resources/data/minecraft/tags/blocks/needs_iron_tool.json b/common/src/main/resources/data/minecraft/tags/blocks/needs_iron_tool.json index 0dc913c..5279bce 100644 --- a/common/src/main/resources/data/minecraft/tags/blocks/needs_iron_tool.json +++ b/common/src/main/resources/data/minecraft/tags/blocks/needs_iron_tool.json @@ -1,6 +1,8 @@ { "replace": false, "values": [ - "quaedam:projector" + "quaedam:projector", + "quaedam:causality_anchor", + "#quaedam:projections" ] } \ No newline at end of file diff --git a/common/src/main/resources/data/quaedam/loot_tables/blocks/causality_anchor.json b/common/src/main/resources/data/quaedam/loot_tables/blocks/causality_anchor.json new file mode 100644 index 0000000..3366840 --- /dev/null +++ b/common/src/main/resources/data/quaedam/loot_tables/blocks/causality_anchor.json @@ -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" +} diff --git a/common/src/main/resources/data/quaedam/tags/blocks/projections.json b/common/src/main/resources/data/quaedam/tags/blocks/projections.json new file mode 100644 index 0000000..e8ef67e --- /dev/null +++ b/common/src/main/resources/data/quaedam/tags/blocks/projections.json @@ -0,0 +1,8 @@ +{ + "values": [ + "quaedam:noise_projection", + "quaedam:sound_projection", + "quaedam:skylight_projection", + "quaedam:swarm_projection" + ] +}