From 6cd7ec3c01155c00af96f3bf05d570ab921f082a Mon Sep 17 00:00:00 2001 From: BlayTheNinth <1933180+BlayTheNinth@users.noreply.github.com> Date: Wed, 13 Dec 2023 14:44:30 +0100 Subject: [PATCH] refactor: Add Data Generation for Block Loot Tables #765 --- .../datagen/ModBlockLootTableProvider.java | 43 ++++++++++++++ .../waystones/models/item/warp_plate.json | 3 - .../loot_tables/blocks/black_sharestone.json | 55 ++++++++++++++++++ .../loot_tables/blocks/blue_sharestone.json | 55 ++++++++++++++++++ .../loot_tables/blocks/brown_sharestone.json | 55 ++++++++++++++++++ .../loot_tables/blocks/cyan_sharestone.json | 55 ++++++++++++++++++ .../loot_tables/blocks/gray_sharestone.json | 55 ++++++++++++++++++ .../loot_tables/blocks/green_sharestone.json | 55 ++++++++++++++++++ .../blocks/light_blue_sharestone.json | 55 ++++++++++++++++++ .../blocks/light_gray_sharestone.json | 55 ++++++++++++++++++ .../loot_tables/blocks/lime_sharestone.json | 55 ++++++++++++++++++ .../blocks/magenta_sharestone.json | 55 ++++++++++++++++++ .../loot_tables/blocks/mossy_waystone.json | 55 ++++++++++++++++++ .../loot_tables/blocks/orange_sharestone.json | 55 ++++++++++++++++++ .../loot_tables/blocks/pink_sharestone.json | 55 ++++++++++++++++++ .../loot_tables/blocks/portstone.json | 55 ++++++++++++++++++ .../loot_tables/blocks/purple_sharestone.json | 55 ++++++++++++++++++ .../loot_tables/blocks/red_sharestone.json | 55 ++++++++++++++++++ .../loot_tables/blocks/sandy_waystone.json | 55 ++++++++++++++++++ .../loot_tables/blocks/sharestone.json | 55 ++++++++++++++++++ .../loot_tables/blocks/warp_plate.json | 48 ++++++++++++++++ .../loot_tables/blocks/waystone.json | 55 ++++++++++++++++++ .../loot_tables/blocks/white_sharestone.json | 55 ++++++++++++++++++ .../loot_tables/blocks/yellow_sharestone.json | 55 ++++++++++++++++++ .../loot_tables/blocks/black_sharestone.json | 56 ------------------- .../loot_tables/blocks/blue_sharestone.json | 56 ------------------- .../loot_tables/blocks/brown_sharestone.json | 56 ------------------- .../loot_tables/blocks/cyan_sharestone.json | 56 ------------------- .../loot_tables/blocks/gray_sharestone.json | 56 ------------------- .../loot_tables/blocks/green_sharestone.json | 56 ------------------- .../blocks/light_blue_sharestone.json | 56 ------------------- .../blocks/light_gray_sharestone.json | 56 ------------------- .../loot_tables/blocks/lime_sharestone.json | 56 ------------------- .../blocks/magenta_sharestone.json | 56 ------------------- .../loot_tables/blocks/mossy_waystone.json | 56 ------------------- .../loot_tables/blocks/orange_sharestone.json | 56 ------------------- .../loot_tables/blocks/pink_sharestone.json | 56 ------------------- .../loot_tables/blocks/portstone.json | 28 ---------- .../loot_tables/blocks/purple_sharestone.json | 56 ------------------- .../loot_tables/blocks/red_sharestone.json | 56 ------------------- .../loot_tables/blocks/sandy_waystone.json | 56 ------------------- .../loot_tables/blocks/sharestone.json | 56 ------------------- .../loot_tables/blocks/warp_plate.json | 52 ----------------- .../loot_tables/blocks/waystone.json | 56 ------------------- .../loot_tables/blocks/white_sharestone.json | 56 ------------------- .../loot_tables/blocks/yellow_sharestone.json | 56 ------------------- 46 files changed, 1246 insertions(+), 1203 deletions(-) delete mode 100644 shared/src/generated/resources/assets/waystones/models/item/warp_plate.json create mode 100644 shared/src/generated/resources/data/waystones/loot_tables/blocks/black_sharestone.json create mode 100644 shared/src/generated/resources/data/waystones/loot_tables/blocks/blue_sharestone.json create mode 100644 shared/src/generated/resources/data/waystones/loot_tables/blocks/brown_sharestone.json create mode 100644 shared/src/generated/resources/data/waystones/loot_tables/blocks/cyan_sharestone.json create mode 100644 shared/src/generated/resources/data/waystones/loot_tables/blocks/gray_sharestone.json create mode 100644 shared/src/generated/resources/data/waystones/loot_tables/blocks/green_sharestone.json create mode 100644 shared/src/generated/resources/data/waystones/loot_tables/blocks/light_blue_sharestone.json create mode 100644 shared/src/generated/resources/data/waystones/loot_tables/blocks/light_gray_sharestone.json create mode 100644 shared/src/generated/resources/data/waystones/loot_tables/blocks/lime_sharestone.json create mode 100644 shared/src/generated/resources/data/waystones/loot_tables/blocks/magenta_sharestone.json create mode 100644 shared/src/generated/resources/data/waystones/loot_tables/blocks/mossy_waystone.json create mode 100644 shared/src/generated/resources/data/waystones/loot_tables/blocks/orange_sharestone.json create mode 100644 shared/src/generated/resources/data/waystones/loot_tables/blocks/pink_sharestone.json create mode 100644 shared/src/generated/resources/data/waystones/loot_tables/blocks/portstone.json create mode 100644 shared/src/generated/resources/data/waystones/loot_tables/blocks/purple_sharestone.json create mode 100644 shared/src/generated/resources/data/waystones/loot_tables/blocks/red_sharestone.json create mode 100644 shared/src/generated/resources/data/waystones/loot_tables/blocks/sandy_waystone.json create mode 100644 shared/src/generated/resources/data/waystones/loot_tables/blocks/sharestone.json create mode 100644 shared/src/generated/resources/data/waystones/loot_tables/blocks/warp_plate.json create mode 100644 shared/src/generated/resources/data/waystones/loot_tables/blocks/waystone.json create mode 100644 shared/src/generated/resources/data/waystones/loot_tables/blocks/white_sharestone.json create mode 100644 shared/src/generated/resources/data/waystones/loot_tables/blocks/yellow_sharestone.json delete mode 100644 shared/src/main/resources/data/waystones/loot_tables/blocks/black_sharestone.json delete mode 100644 shared/src/main/resources/data/waystones/loot_tables/blocks/blue_sharestone.json delete mode 100644 shared/src/main/resources/data/waystones/loot_tables/blocks/brown_sharestone.json delete mode 100644 shared/src/main/resources/data/waystones/loot_tables/blocks/cyan_sharestone.json delete mode 100644 shared/src/main/resources/data/waystones/loot_tables/blocks/gray_sharestone.json delete mode 100644 shared/src/main/resources/data/waystones/loot_tables/blocks/green_sharestone.json delete mode 100644 shared/src/main/resources/data/waystones/loot_tables/blocks/light_blue_sharestone.json delete mode 100644 shared/src/main/resources/data/waystones/loot_tables/blocks/light_gray_sharestone.json delete mode 100644 shared/src/main/resources/data/waystones/loot_tables/blocks/lime_sharestone.json delete mode 100644 shared/src/main/resources/data/waystones/loot_tables/blocks/magenta_sharestone.json delete mode 100644 shared/src/main/resources/data/waystones/loot_tables/blocks/mossy_waystone.json delete mode 100644 shared/src/main/resources/data/waystones/loot_tables/blocks/orange_sharestone.json delete mode 100644 shared/src/main/resources/data/waystones/loot_tables/blocks/pink_sharestone.json delete mode 100644 shared/src/main/resources/data/waystones/loot_tables/blocks/portstone.json delete mode 100644 shared/src/main/resources/data/waystones/loot_tables/blocks/purple_sharestone.json delete mode 100644 shared/src/main/resources/data/waystones/loot_tables/blocks/red_sharestone.json delete mode 100644 shared/src/main/resources/data/waystones/loot_tables/blocks/sandy_waystone.json delete mode 100644 shared/src/main/resources/data/waystones/loot_tables/blocks/sharestone.json delete mode 100644 shared/src/main/resources/data/waystones/loot_tables/blocks/warp_plate.json delete mode 100644 shared/src/main/resources/data/waystones/loot_tables/blocks/waystone.json delete mode 100644 shared/src/main/resources/data/waystones/loot_tables/blocks/white_sharestone.json delete mode 100644 shared/src/main/resources/data/waystones/loot_tables/blocks/yellow_sharestone.json diff --git a/fabric/src/main/java/net/blay09/mods/waystones/datagen/ModBlockLootTableProvider.java b/fabric/src/main/java/net/blay09/mods/waystones/datagen/ModBlockLootTableProvider.java index 6b21c453..6bf85977 100644 --- a/fabric/src/main/java/net/blay09/mods/waystones/datagen/ModBlockLootTableProvider.java +++ b/fabric/src/main/java/net/blay09/mods/waystones/datagen/ModBlockLootTableProvider.java @@ -1,7 +1,19 @@ package net.blay09.mods.waystones.datagen; +import net.blay09.mods.waystones.block.ModBlocks; +import net.blay09.mods.waystones.block.WaystoneBlockBase; import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput; import net.fabricmc.fabric.api.datagen.v1.provider.FabricBlockLootTableProvider; +import net.minecraft.advancements.critereon.StatePropertiesPredicate; +import net.minecraft.world.level.block.Block; +import net.minecraft.world.level.block.state.properties.DoubleBlockHalf; +import net.minecraft.world.level.storage.loot.LootPool; +import net.minecraft.world.level.storage.loot.LootTable; +import net.minecraft.world.level.storage.loot.entries.LootItem; +import net.minecraft.world.level.storage.loot.functions.CopyNbtFunction; +import net.minecraft.world.level.storage.loot.predicates.LootItemBlockStatePropertyCondition; +import net.minecraft.world.level.storage.loot.providers.nbt.ContextNbtProvider; +import net.minecraft.world.level.storage.loot.providers.number.ConstantValue; public class ModBlockLootTableProvider extends FabricBlockLootTableProvider { protected ModBlockLootTableProvider(FabricDataOutput dataOutput) { @@ -10,5 +22,36 @@ protected ModBlockLootTableProvider(FabricDataOutput dataOutput) { @Override public void generate() { + add(ModBlocks.waystone, createDoubleBlockWaystoneLoot(ModBlocks.waystone)); + add(ModBlocks.sandyWaystone, createDoubleBlockWaystoneLoot(ModBlocks.sandyWaystone)); + add(ModBlocks.mossyWaystone, createDoubleBlockWaystoneLoot(ModBlocks.mossyWaystone)); + add(ModBlocks.sharestone, createDoubleBlockWaystoneLoot(ModBlocks.sharestone)); + add(ModBlocks.portstone, createDoubleBlockWaystoneLoot(ModBlocks.portstone)); + add(ModBlocks.warpPlate, createWaystoneLoot(ModBlocks.warpPlate)); + for (Block scopedSharestone : ModBlocks.scopedSharestones) { + add(scopedSharestone, createDoubleBlockWaystoneLoot(scopedSharestone)); + } + } + + private LootTable.Builder createWaystoneLoot(Block block) { + return LootTable.lootTable() + .withPool(applyExplosionCondition(block, LootPool.lootPool() + .setRolls(ConstantValue.exactly(1f)) + .add(LootItem.lootTableItem(block)) + .apply(CopyNbtFunction.copyData(ContextNbtProvider.BLOCK_ENTITY) + .copy("UUID", "UUID", CopyNbtFunction.MergeStrategy.REPLACE) + .when(HAS_SILK_TOUCH)))); + } + + private LootTable.Builder createDoubleBlockWaystoneLoot(Block block) { + return LootTable.lootTable() + .withPool(applyExplosionCondition(block, LootPool.lootPool() + .setRolls(ConstantValue.exactly(1f)) + .add(LootItem.lootTableItem(block)) + .when(LootItemBlockStatePropertyCondition.hasBlockStateProperties(block) + .setProperties(StatePropertiesPredicate.Builder.properties().hasProperty(WaystoneBlockBase.HALF, DoubleBlockHalf.LOWER))) + .apply(CopyNbtFunction.copyData(ContextNbtProvider.BLOCK_ENTITY) + .copy("UUID", "UUID", CopyNbtFunction.MergeStrategy.REPLACE) + .when(HAS_SILK_TOUCH)))); } } diff --git a/shared/src/generated/resources/assets/waystones/models/item/warp_plate.json b/shared/src/generated/resources/assets/waystones/models/item/warp_plate.json deleted file mode 100644 index 327f1129..00000000 --- a/shared/src/generated/resources/assets/waystones/models/item/warp_plate.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "parent": "waystones:block/warp_plate" -} \ No newline at end of file diff --git a/shared/src/generated/resources/data/waystones/loot_tables/blocks/black_sharestone.json b/shared/src/generated/resources/data/waystones/loot_tables/blocks/black_sharestone.json new file mode 100644 index 00000000..fcc56a8b --- /dev/null +++ b/shared/src/generated/resources/data/waystones/loot_tables/blocks/black_sharestone.json @@ -0,0 +1,55 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "waystones:black_sharestone", + "condition": "minecraft:block_state_property", + "properties": { + "half": "lower" + } + }, + { + "condition": "minecraft:survives_explosion" + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "waystones:black_sharestone" + } + ], + "functions": [ + { + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "function": "minecraft:copy_nbt", + "ops": [ + { + "op": "replace", + "source": "UUID", + "target": "UUID" + } + ], + "source": "block_entity" + } + ], + "rolls": 1.0 + } + ] +} \ No newline at end of file diff --git a/shared/src/generated/resources/data/waystones/loot_tables/blocks/blue_sharestone.json b/shared/src/generated/resources/data/waystones/loot_tables/blocks/blue_sharestone.json new file mode 100644 index 00000000..2e66d189 --- /dev/null +++ b/shared/src/generated/resources/data/waystones/loot_tables/blocks/blue_sharestone.json @@ -0,0 +1,55 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "waystones:blue_sharestone", + "condition": "minecraft:block_state_property", + "properties": { + "half": "lower" + } + }, + { + "condition": "minecraft:survives_explosion" + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "waystones:blue_sharestone" + } + ], + "functions": [ + { + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "function": "minecraft:copy_nbt", + "ops": [ + { + "op": "replace", + "source": "UUID", + "target": "UUID" + } + ], + "source": "block_entity" + } + ], + "rolls": 1.0 + } + ] +} \ No newline at end of file diff --git a/shared/src/generated/resources/data/waystones/loot_tables/blocks/brown_sharestone.json b/shared/src/generated/resources/data/waystones/loot_tables/blocks/brown_sharestone.json new file mode 100644 index 00000000..9d87c7c4 --- /dev/null +++ b/shared/src/generated/resources/data/waystones/loot_tables/blocks/brown_sharestone.json @@ -0,0 +1,55 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "waystones:brown_sharestone", + "condition": "minecraft:block_state_property", + "properties": { + "half": "lower" + } + }, + { + "condition": "minecraft:survives_explosion" + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "waystones:brown_sharestone" + } + ], + "functions": [ + { + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "function": "minecraft:copy_nbt", + "ops": [ + { + "op": "replace", + "source": "UUID", + "target": "UUID" + } + ], + "source": "block_entity" + } + ], + "rolls": 1.0 + } + ] +} \ No newline at end of file diff --git a/shared/src/generated/resources/data/waystones/loot_tables/blocks/cyan_sharestone.json b/shared/src/generated/resources/data/waystones/loot_tables/blocks/cyan_sharestone.json new file mode 100644 index 00000000..7737e31d --- /dev/null +++ b/shared/src/generated/resources/data/waystones/loot_tables/blocks/cyan_sharestone.json @@ -0,0 +1,55 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "waystones:cyan_sharestone", + "condition": "minecraft:block_state_property", + "properties": { + "half": "lower" + } + }, + { + "condition": "minecraft:survives_explosion" + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "waystones:cyan_sharestone" + } + ], + "functions": [ + { + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "function": "minecraft:copy_nbt", + "ops": [ + { + "op": "replace", + "source": "UUID", + "target": "UUID" + } + ], + "source": "block_entity" + } + ], + "rolls": 1.0 + } + ] +} \ No newline at end of file diff --git a/shared/src/generated/resources/data/waystones/loot_tables/blocks/gray_sharestone.json b/shared/src/generated/resources/data/waystones/loot_tables/blocks/gray_sharestone.json new file mode 100644 index 00000000..9c40f78e --- /dev/null +++ b/shared/src/generated/resources/data/waystones/loot_tables/blocks/gray_sharestone.json @@ -0,0 +1,55 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "waystones:gray_sharestone", + "condition": "minecraft:block_state_property", + "properties": { + "half": "lower" + } + }, + { + "condition": "minecraft:survives_explosion" + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "waystones:gray_sharestone" + } + ], + "functions": [ + { + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "function": "minecraft:copy_nbt", + "ops": [ + { + "op": "replace", + "source": "UUID", + "target": "UUID" + } + ], + "source": "block_entity" + } + ], + "rolls": 1.0 + } + ] +} \ No newline at end of file diff --git a/shared/src/generated/resources/data/waystones/loot_tables/blocks/green_sharestone.json b/shared/src/generated/resources/data/waystones/loot_tables/blocks/green_sharestone.json new file mode 100644 index 00000000..6342e081 --- /dev/null +++ b/shared/src/generated/resources/data/waystones/loot_tables/blocks/green_sharestone.json @@ -0,0 +1,55 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "waystones:green_sharestone", + "condition": "minecraft:block_state_property", + "properties": { + "half": "lower" + } + }, + { + "condition": "minecraft:survives_explosion" + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "waystones:green_sharestone" + } + ], + "functions": [ + { + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "function": "minecraft:copy_nbt", + "ops": [ + { + "op": "replace", + "source": "UUID", + "target": "UUID" + } + ], + "source": "block_entity" + } + ], + "rolls": 1.0 + } + ] +} \ No newline at end of file diff --git a/shared/src/generated/resources/data/waystones/loot_tables/blocks/light_blue_sharestone.json b/shared/src/generated/resources/data/waystones/loot_tables/blocks/light_blue_sharestone.json new file mode 100644 index 00000000..5b4df047 --- /dev/null +++ b/shared/src/generated/resources/data/waystones/loot_tables/blocks/light_blue_sharestone.json @@ -0,0 +1,55 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "waystones:light_blue_sharestone", + "condition": "minecraft:block_state_property", + "properties": { + "half": "lower" + } + }, + { + "condition": "minecraft:survives_explosion" + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "waystones:light_blue_sharestone" + } + ], + "functions": [ + { + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "function": "minecraft:copy_nbt", + "ops": [ + { + "op": "replace", + "source": "UUID", + "target": "UUID" + } + ], + "source": "block_entity" + } + ], + "rolls": 1.0 + } + ] +} \ No newline at end of file diff --git a/shared/src/generated/resources/data/waystones/loot_tables/blocks/light_gray_sharestone.json b/shared/src/generated/resources/data/waystones/loot_tables/blocks/light_gray_sharestone.json new file mode 100644 index 00000000..3fc14156 --- /dev/null +++ b/shared/src/generated/resources/data/waystones/loot_tables/blocks/light_gray_sharestone.json @@ -0,0 +1,55 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "waystones:light_gray_sharestone", + "condition": "minecraft:block_state_property", + "properties": { + "half": "lower" + } + }, + { + "condition": "minecraft:survives_explosion" + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "waystones:light_gray_sharestone" + } + ], + "functions": [ + { + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "function": "minecraft:copy_nbt", + "ops": [ + { + "op": "replace", + "source": "UUID", + "target": "UUID" + } + ], + "source": "block_entity" + } + ], + "rolls": 1.0 + } + ] +} \ No newline at end of file diff --git a/shared/src/generated/resources/data/waystones/loot_tables/blocks/lime_sharestone.json b/shared/src/generated/resources/data/waystones/loot_tables/blocks/lime_sharestone.json new file mode 100644 index 00000000..e0ec79d9 --- /dev/null +++ b/shared/src/generated/resources/data/waystones/loot_tables/blocks/lime_sharestone.json @@ -0,0 +1,55 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "waystones:lime_sharestone", + "condition": "minecraft:block_state_property", + "properties": { + "half": "lower" + } + }, + { + "condition": "minecraft:survives_explosion" + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "waystones:lime_sharestone" + } + ], + "functions": [ + { + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "function": "minecraft:copy_nbt", + "ops": [ + { + "op": "replace", + "source": "UUID", + "target": "UUID" + } + ], + "source": "block_entity" + } + ], + "rolls": 1.0 + } + ] +} \ No newline at end of file diff --git a/shared/src/generated/resources/data/waystones/loot_tables/blocks/magenta_sharestone.json b/shared/src/generated/resources/data/waystones/loot_tables/blocks/magenta_sharestone.json new file mode 100644 index 00000000..0642fa19 --- /dev/null +++ b/shared/src/generated/resources/data/waystones/loot_tables/blocks/magenta_sharestone.json @@ -0,0 +1,55 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "waystones:magenta_sharestone", + "condition": "minecraft:block_state_property", + "properties": { + "half": "lower" + } + }, + { + "condition": "minecraft:survives_explosion" + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "waystones:magenta_sharestone" + } + ], + "functions": [ + { + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "function": "minecraft:copy_nbt", + "ops": [ + { + "op": "replace", + "source": "UUID", + "target": "UUID" + } + ], + "source": "block_entity" + } + ], + "rolls": 1.0 + } + ] +} \ No newline at end of file diff --git a/shared/src/generated/resources/data/waystones/loot_tables/blocks/mossy_waystone.json b/shared/src/generated/resources/data/waystones/loot_tables/blocks/mossy_waystone.json new file mode 100644 index 00000000..0d6891a7 --- /dev/null +++ b/shared/src/generated/resources/data/waystones/loot_tables/blocks/mossy_waystone.json @@ -0,0 +1,55 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "waystones:mossy_waystone", + "condition": "minecraft:block_state_property", + "properties": { + "half": "lower" + } + }, + { + "condition": "minecraft:survives_explosion" + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "waystones:mossy_waystone" + } + ], + "functions": [ + { + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "function": "minecraft:copy_nbt", + "ops": [ + { + "op": "replace", + "source": "UUID", + "target": "UUID" + } + ], + "source": "block_entity" + } + ], + "rolls": 1.0 + } + ] +} \ No newline at end of file diff --git a/shared/src/generated/resources/data/waystones/loot_tables/blocks/orange_sharestone.json b/shared/src/generated/resources/data/waystones/loot_tables/blocks/orange_sharestone.json new file mode 100644 index 00000000..93f88f96 --- /dev/null +++ b/shared/src/generated/resources/data/waystones/loot_tables/blocks/orange_sharestone.json @@ -0,0 +1,55 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "waystones:orange_sharestone", + "condition": "minecraft:block_state_property", + "properties": { + "half": "lower" + } + }, + { + "condition": "minecraft:survives_explosion" + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "waystones:orange_sharestone" + } + ], + "functions": [ + { + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "function": "minecraft:copy_nbt", + "ops": [ + { + "op": "replace", + "source": "UUID", + "target": "UUID" + } + ], + "source": "block_entity" + } + ], + "rolls": 1.0 + } + ] +} \ No newline at end of file diff --git a/shared/src/generated/resources/data/waystones/loot_tables/blocks/pink_sharestone.json b/shared/src/generated/resources/data/waystones/loot_tables/blocks/pink_sharestone.json new file mode 100644 index 00000000..3111b771 --- /dev/null +++ b/shared/src/generated/resources/data/waystones/loot_tables/blocks/pink_sharestone.json @@ -0,0 +1,55 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "waystones:pink_sharestone", + "condition": "minecraft:block_state_property", + "properties": { + "half": "lower" + } + }, + { + "condition": "minecraft:survives_explosion" + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "waystones:pink_sharestone" + } + ], + "functions": [ + { + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "function": "minecraft:copy_nbt", + "ops": [ + { + "op": "replace", + "source": "UUID", + "target": "UUID" + } + ], + "source": "block_entity" + } + ], + "rolls": 1.0 + } + ] +} \ No newline at end of file diff --git a/shared/src/generated/resources/data/waystones/loot_tables/blocks/portstone.json b/shared/src/generated/resources/data/waystones/loot_tables/blocks/portstone.json new file mode 100644 index 00000000..1a650a58 --- /dev/null +++ b/shared/src/generated/resources/data/waystones/loot_tables/blocks/portstone.json @@ -0,0 +1,55 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "waystones:portstone", + "condition": "minecraft:block_state_property", + "properties": { + "half": "lower" + } + }, + { + "condition": "minecraft:survives_explosion" + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "waystones:portstone" + } + ], + "functions": [ + { + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "function": "minecraft:copy_nbt", + "ops": [ + { + "op": "replace", + "source": "UUID", + "target": "UUID" + } + ], + "source": "block_entity" + } + ], + "rolls": 1.0 + } + ] +} \ No newline at end of file diff --git a/shared/src/generated/resources/data/waystones/loot_tables/blocks/purple_sharestone.json b/shared/src/generated/resources/data/waystones/loot_tables/blocks/purple_sharestone.json new file mode 100644 index 00000000..c0f214ac --- /dev/null +++ b/shared/src/generated/resources/data/waystones/loot_tables/blocks/purple_sharestone.json @@ -0,0 +1,55 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "waystones:purple_sharestone", + "condition": "minecraft:block_state_property", + "properties": { + "half": "lower" + } + }, + { + "condition": "minecraft:survives_explosion" + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "waystones:purple_sharestone" + } + ], + "functions": [ + { + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "function": "minecraft:copy_nbt", + "ops": [ + { + "op": "replace", + "source": "UUID", + "target": "UUID" + } + ], + "source": "block_entity" + } + ], + "rolls": 1.0 + } + ] +} \ No newline at end of file diff --git a/shared/src/generated/resources/data/waystones/loot_tables/blocks/red_sharestone.json b/shared/src/generated/resources/data/waystones/loot_tables/blocks/red_sharestone.json new file mode 100644 index 00000000..32398c48 --- /dev/null +++ b/shared/src/generated/resources/data/waystones/loot_tables/blocks/red_sharestone.json @@ -0,0 +1,55 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "waystones:red_sharestone", + "condition": "minecraft:block_state_property", + "properties": { + "half": "lower" + } + }, + { + "condition": "minecraft:survives_explosion" + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "waystones:red_sharestone" + } + ], + "functions": [ + { + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "function": "minecraft:copy_nbt", + "ops": [ + { + "op": "replace", + "source": "UUID", + "target": "UUID" + } + ], + "source": "block_entity" + } + ], + "rolls": 1.0 + } + ] +} \ No newline at end of file diff --git a/shared/src/generated/resources/data/waystones/loot_tables/blocks/sandy_waystone.json b/shared/src/generated/resources/data/waystones/loot_tables/blocks/sandy_waystone.json new file mode 100644 index 00000000..be32695b --- /dev/null +++ b/shared/src/generated/resources/data/waystones/loot_tables/blocks/sandy_waystone.json @@ -0,0 +1,55 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "waystones:sandy_waystone", + "condition": "minecraft:block_state_property", + "properties": { + "half": "lower" + } + }, + { + "condition": "minecraft:survives_explosion" + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "waystones:sandy_waystone" + } + ], + "functions": [ + { + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "function": "minecraft:copy_nbt", + "ops": [ + { + "op": "replace", + "source": "UUID", + "target": "UUID" + } + ], + "source": "block_entity" + } + ], + "rolls": 1.0 + } + ] +} \ No newline at end of file diff --git a/shared/src/generated/resources/data/waystones/loot_tables/blocks/sharestone.json b/shared/src/generated/resources/data/waystones/loot_tables/blocks/sharestone.json new file mode 100644 index 00000000..e7113dcd --- /dev/null +++ b/shared/src/generated/resources/data/waystones/loot_tables/blocks/sharestone.json @@ -0,0 +1,55 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "waystones:sharestone", + "condition": "minecraft:block_state_property", + "properties": { + "half": "lower" + } + }, + { + "condition": "minecraft:survives_explosion" + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "waystones:sharestone" + } + ], + "functions": [ + { + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "function": "minecraft:copy_nbt", + "ops": [ + { + "op": "replace", + "source": "UUID", + "target": "UUID" + } + ], + "source": "block_entity" + } + ], + "rolls": 1.0 + } + ] +} \ No newline at end of file diff --git a/shared/src/generated/resources/data/waystones/loot_tables/blocks/warp_plate.json b/shared/src/generated/resources/data/waystones/loot_tables/blocks/warp_plate.json new file mode 100644 index 00000000..cb5c9b90 --- /dev/null +++ b/shared/src/generated/resources/data/waystones/loot_tables/blocks/warp_plate.json @@ -0,0 +1,48 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "bonus_rolls": 0.0, + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "waystones:warp_plate" + } + ], + "functions": [ + { + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "function": "minecraft:copy_nbt", + "ops": [ + { + "op": "replace", + "source": "UUID", + "target": "UUID" + } + ], + "source": "block_entity" + } + ], + "rolls": 1.0 + } + ] +} \ No newline at end of file diff --git a/shared/src/generated/resources/data/waystones/loot_tables/blocks/waystone.json b/shared/src/generated/resources/data/waystones/loot_tables/blocks/waystone.json new file mode 100644 index 00000000..09ba5157 --- /dev/null +++ b/shared/src/generated/resources/data/waystones/loot_tables/blocks/waystone.json @@ -0,0 +1,55 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "waystones:waystone", + "condition": "minecraft:block_state_property", + "properties": { + "half": "lower" + } + }, + { + "condition": "minecraft:survives_explosion" + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "waystones:waystone" + } + ], + "functions": [ + { + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "function": "minecraft:copy_nbt", + "ops": [ + { + "op": "replace", + "source": "UUID", + "target": "UUID" + } + ], + "source": "block_entity" + } + ], + "rolls": 1.0 + } + ] +} \ No newline at end of file diff --git a/shared/src/generated/resources/data/waystones/loot_tables/blocks/white_sharestone.json b/shared/src/generated/resources/data/waystones/loot_tables/blocks/white_sharestone.json new file mode 100644 index 00000000..8beee6c8 --- /dev/null +++ b/shared/src/generated/resources/data/waystones/loot_tables/blocks/white_sharestone.json @@ -0,0 +1,55 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "waystones:white_sharestone", + "condition": "minecraft:block_state_property", + "properties": { + "half": "lower" + } + }, + { + "condition": "minecraft:survives_explosion" + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "waystones:white_sharestone" + } + ], + "functions": [ + { + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "function": "minecraft:copy_nbt", + "ops": [ + { + "op": "replace", + "source": "UUID", + "target": "UUID" + } + ], + "source": "block_entity" + } + ], + "rolls": 1.0 + } + ] +} \ No newline at end of file diff --git a/shared/src/generated/resources/data/waystones/loot_tables/blocks/yellow_sharestone.json b/shared/src/generated/resources/data/waystones/loot_tables/blocks/yellow_sharestone.json new file mode 100644 index 00000000..bd0c6d91 --- /dev/null +++ b/shared/src/generated/resources/data/waystones/loot_tables/blocks/yellow_sharestone.json @@ -0,0 +1,55 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "bonus_rolls": 0.0, + "conditions": [ + { + "block": "waystones:yellow_sharestone", + "condition": "minecraft:block_state_property", + "properties": { + "half": "lower" + } + }, + { + "condition": "minecraft:survives_explosion" + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "waystones:yellow_sharestone" + } + ], + "functions": [ + { + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "function": "minecraft:copy_nbt", + "ops": [ + { + "op": "replace", + "source": "UUID", + "target": "UUID" + } + ], + "source": "block_entity" + } + ], + "rolls": 1.0 + } + ] +} \ No newline at end of file diff --git a/shared/src/main/resources/data/waystones/loot_tables/blocks/black_sharestone.json b/shared/src/main/resources/data/waystones/loot_tables/blocks/black_sharestone.json deleted file mode 100644 index 12827021..00000000 --- a/shared/src/main/resources/data/waystones/loot_tables/blocks/black_sharestone.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "type": "minecraft:block", - "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "waystones:black_sharestone", - "conditions": [ - { - "condition": "minecraft:block_state_property", - "block": "waystones:black_sharestone", - "properties": { - "half": "lower" - } - } - ], - "functions": [ - { - "function": "minecraft:copy_nbt", - "conditions": [ - { - "condition": "minecraft:match_tool", - "predicate": { - "enchantments": [ - { - "enchantment": "minecraft:silk_touch", - "levels": { - "min": 1 - } - } - ] - } - } - ], - "source": "block_entity", - "ops": [ - { - "source": "UUID", - "target": "UUID", - "op": "replace" - } - ] - } - ] - } - ], - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ] - } - ] -} diff --git a/shared/src/main/resources/data/waystones/loot_tables/blocks/blue_sharestone.json b/shared/src/main/resources/data/waystones/loot_tables/blocks/blue_sharestone.json deleted file mode 100644 index b6e74c27..00000000 --- a/shared/src/main/resources/data/waystones/loot_tables/blocks/blue_sharestone.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "type": "minecraft:block", - "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "waystones:blue_sharestone", - "conditions": [ - { - "condition": "minecraft:block_state_property", - "block": "waystones:blue_sharestone", - "properties": { - "half": "lower" - } - } - ], - "functions": [ - { - "function": "minecraft:copy_nbt", - "conditions": [ - { - "condition": "minecraft:match_tool", - "predicate": { - "enchantments": [ - { - "enchantment": "minecraft:silk_touch", - "levels": { - "min": 1 - } - } - ] - } - } - ], - "source": "block_entity", - "ops": [ - { - "source": "UUID", - "target": "UUID", - "op": "replace" - } - ] - } - ] - } - ], - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ] - } - ] -} diff --git a/shared/src/main/resources/data/waystones/loot_tables/blocks/brown_sharestone.json b/shared/src/main/resources/data/waystones/loot_tables/blocks/brown_sharestone.json deleted file mode 100644 index 3f24afb4..00000000 --- a/shared/src/main/resources/data/waystones/loot_tables/blocks/brown_sharestone.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "type": "minecraft:block", - "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "waystones:brown_sharestone", - "conditions": [ - { - "condition": "minecraft:block_state_property", - "block": "waystones:brown_sharestone", - "properties": { - "half": "lower" - } - } - ], - "functions": [ - { - "function": "minecraft:copy_nbt", - "conditions": [ - { - "condition": "minecraft:match_tool", - "predicate": { - "enchantments": [ - { - "enchantment": "minecraft:silk_touch", - "levels": { - "min": 1 - } - } - ] - } - } - ], - "source": "block_entity", - "ops": [ - { - "source": "UUID", - "target": "UUID", - "op": "replace" - } - ] - } - ] - } - ], - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ] - } - ] -} diff --git a/shared/src/main/resources/data/waystones/loot_tables/blocks/cyan_sharestone.json b/shared/src/main/resources/data/waystones/loot_tables/blocks/cyan_sharestone.json deleted file mode 100644 index 445e3c83..00000000 --- a/shared/src/main/resources/data/waystones/loot_tables/blocks/cyan_sharestone.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "type": "minecraft:block", - "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "waystones:cyan_sharestone", - "conditions": [ - { - "condition": "minecraft:block_state_property", - "block": "waystones:cyan_sharestone", - "properties": { - "half": "lower" - } - } - ], - "functions": [ - { - "function": "minecraft:copy_nbt", - "conditions": [ - { - "condition": "minecraft:match_tool", - "predicate": { - "enchantments": [ - { - "enchantment": "minecraft:silk_touch", - "levels": { - "min": 1 - } - } - ] - } - } - ], - "source": "block_entity", - "ops": [ - { - "source": "UUID", - "target": "UUID", - "op": "replace" - } - ] - } - ] - } - ], - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ] - } - ] -} diff --git a/shared/src/main/resources/data/waystones/loot_tables/blocks/gray_sharestone.json b/shared/src/main/resources/data/waystones/loot_tables/blocks/gray_sharestone.json deleted file mode 100644 index 74c6d483..00000000 --- a/shared/src/main/resources/data/waystones/loot_tables/blocks/gray_sharestone.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "type": "minecraft:block", - "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "waystones:gray_sharestone", - "conditions": [ - { - "condition": "minecraft:block_state_property", - "block": "waystones:gray_sharestone", - "properties": { - "half": "lower" - } - } - ], - "functions": [ - { - "function": "minecraft:copy_nbt", - "conditions": [ - { - "condition": "minecraft:match_tool", - "predicate": { - "enchantments": [ - { - "enchantment": "minecraft:silk_touch", - "levels": { - "min": 1 - } - } - ] - } - } - ], - "source": "block_entity", - "ops": [ - { - "source": "UUID", - "target": "UUID", - "op": "replace" - } - ] - } - ] - } - ], - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ] - } - ] -} diff --git a/shared/src/main/resources/data/waystones/loot_tables/blocks/green_sharestone.json b/shared/src/main/resources/data/waystones/loot_tables/blocks/green_sharestone.json deleted file mode 100644 index 85a7a0e2..00000000 --- a/shared/src/main/resources/data/waystones/loot_tables/blocks/green_sharestone.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "type": "minecraft:block", - "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "waystones:green_sharestone", - "conditions": [ - { - "condition": "minecraft:block_state_property", - "block": "waystones:green_sharestone", - "properties": { - "half": "lower" - } - } - ], - "functions": [ - { - "function": "minecraft:copy_nbt", - "conditions": [ - { - "condition": "minecraft:match_tool", - "predicate": { - "enchantments": [ - { - "enchantment": "minecraft:silk_touch", - "levels": { - "min": 1 - } - } - ] - } - } - ], - "source": "block_entity", - "ops": [ - { - "source": "UUID", - "target": "UUID", - "op": "replace" - } - ] - } - ] - } - ], - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ] - } - ] -} diff --git a/shared/src/main/resources/data/waystones/loot_tables/blocks/light_blue_sharestone.json b/shared/src/main/resources/data/waystones/loot_tables/blocks/light_blue_sharestone.json deleted file mode 100644 index 90c6dab5..00000000 --- a/shared/src/main/resources/data/waystones/loot_tables/blocks/light_blue_sharestone.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "type": "minecraft:block", - "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "waystones:light_blue_sharestone", - "conditions": [ - { - "condition": "minecraft:block_state_property", - "block": "waystones:light_blue_sharestone", - "properties": { - "half": "lower" - } - } - ], - "functions": [ - { - "function": "minecraft:copy_nbt", - "conditions": [ - { - "condition": "minecraft:match_tool", - "predicate": { - "enchantments": [ - { - "enchantment": "minecraft:silk_touch", - "levels": { - "min": 1 - } - } - ] - } - } - ], - "source": "block_entity", - "ops": [ - { - "source": "UUID", - "target": "UUID", - "op": "replace" - } - ] - } - ] - } - ], - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ] - } - ] -} diff --git a/shared/src/main/resources/data/waystones/loot_tables/blocks/light_gray_sharestone.json b/shared/src/main/resources/data/waystones/loot_tables/blocks/light_gray_sharestone.json deleted file mode 100644 index 8ac1c07b..00000000 --- a/shared/src/main/resources/data/waystones/loot_tables/blocks/light_gray_sharestone.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "type": "minecraft:block", - "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "waystones:light_gray_sharestone", - "conditions": [ - { - "condition": "minecraft:block_state_property", - "block": "waystones:light_gray_sharestone", - "properties": { - "half": "lower" - } - } - ], - "functions": [ - { - "function": "minecraft:copy_nbt", - "conditions": [ - { - "condition": "minecraft:match_tool", - "predicate": { - "enchantments": [ - { - "enchantment": "minecraft:silk_touch", - "levels": { - "min": 1 - } - } - ] - } - } - ], - "source": "block_entity", - "ops": [ - { - "source": "UUID", - "target": "UUID", - "op": "replace" - } - ] - } - ] - } - ], - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ] - } - ] -} diff --git a/shared/src/main/resources/data/waystones/loot_tables/blocks/lime_sharestone.json b/shared/src/main/resources/data/waystones/loot_tables/blocks/lime_sharestone.json deleted file mode 100644 index 220f6eff..00000000 --- a/shared/src/main/resources/data/waystones/loot_tables/blocks/lime_sharestone.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "type": "minecraft:block", - "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "waystones:lime_sharestone", - "conditions": [ - { - "condition": "minecraft:block_state_property", - "block": "waystones:lime_sharestone", - "properties": { - "half": "lower" - } - } - ], - "functions": [ - { - "function": "minecraft:copy_nbt", - "conditions": [ - { - "condition": "minecraft:match_tool", - "predicate": { - "enchantments": [ - { - "enchantment": "minecraft:silk_touch", - "levels": { - "min": 1 - } - } - ] - } - } - ], - "source": "block_entity", - "ops": [ - { - "source": "UUID", - "target": "UUID", - "op": "replace" - } - ] - } - ] - } - ], - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ] - } - ] -} diff --git a/shared/src/main/resources/data/waystones/loot_tables/blocks/magenta_sharestone.json b/shared/src/main/resources/data/waystones/loot_tables/blocks/magenta_sharestone.json deleted file mode 100644 index 81cce1c8..00000000 --- a/shared/src/main/resources/data/waystones/loot_tables/blocks/magenta_sharestone.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "type": "minecraft:block", - "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "waystones:magenta_sharestone", - "conditions": [ - { - "condition": "minecraft:block_state_property", - "block": "waystones:magenta_sharestone", - "properties": { - "half": "lower" - } - } - ], - "functions": [ - { - "function": "minecraft:copy_nbt", - "conditions": [ - { - "condition": "minecraft:match_tool", - "predicate": { - "enchantments": [ - { - "enchantment": "minecraft:silk_touch", - "levels": { - "min": 1 - } - } - ] - } - } - ], - "source": "block_entity", - "ops": [ - { - "source": "UUID", - "target": "UUID", - "op": "replace" - } - ] - } - ] - } - ], - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ] - } - ] -} diff --git a/shared/src/main/resources/data/waystones/loot_tables/blocks/mossy_waystone.json b/shared/src/main/resources/data/waystones/loot_tables/blocks/mossy_waystone.json deleted file mode 100644 index 03d8bcab..00000000 --- a/shared/src/main/resources/data/waystones/loot_tables/blocks/mossy_waystone.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "type": "minecraft:block", - "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "waystones:mossy_waystone", - "conditions": [ - { - "condition": "minecraft:block_state_property", - "block": "waystones:mossy_waystone", - "properties": { - "half": "lower" - } - } - ], - "functions": [ - { - "function": "minecraft:copy_nbt", - "conditions": [ - { - "condition": "minecraft:match_tool", - "predicate": { - "enchantments": [ - { - "enchantment": "minecraft:silk_touch", - "levels": { - "min": 1 - } - } - ] - } - } - ], - "source": "block_entity", - "ops": [ - { - "source": "UUID", - "target": "UUID", - "op": "replace" - } - ] - } - ] - } - ], - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ] - } - ] -} diff --git a/shared/src/main/resources/data/waystones/loot_tables/blocks/orange_sharestone.json b/shared/src/main/resources/data/waystones/loot_tables/blocks/orange_sharestone.json deleted file mode 100644 index 29d5a073..00000000 --- a/shared/src/main/resources/data/waystones/loot_tables/blocks/orange_sharestone.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "type": "minecraft:block", - "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "waystones:orange_sharestone", - "conditions": [ - { - "condition": "minecraft:block_state_property", - "block": "waystones:orange_sharestone", - "properties": { - "half": "lower" - } - } - ], - "functions": [ - { - "function": "minecraft:copy_nbt", - "conditions": [ - { - "condition": "minecraft:match_tool", - "predicate": { - "enchantments": [ - { - "enchantment": "minecraft:silk_touch", - "levels": { - "min": 1 - } - } - ] - } - } - ], - "source": "block_entity", - "ops": [ - { - "source": "UUID", - "target": "UUID", - "op": "replace" - } - ] - } - ] - } - ], - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ] - } - ] -} diff --git a/shared/src/main/resources/data/waystones/loot_tables/blocks/pink_sharestone.json b/shared/src/main/resources/data/waystones/loot_tables/blocks/pink_sharestone.json deleted file mode 100644 index ec0ac8ff..00000000 --- a/shared/src/main/resources/data/waystones/loot_tables/blocks/pink_sharestone.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "type": "minecraft:block", - "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "waystones:pink_sharestone", - "conditions": [ - { - "condition": "minecraft:block_state_property", - "block": "waystones:pink_sharestone", - "properties": { - "half": "lower" - } - } - ], - "functions": [ - { - "function": "minecraft:copy_nbt", - "conditions": [ - { - "condition": "minecraft:match_tool", - "predicate": { - "enchantments": [ - { - "enchantment": "minecraft:silk_touch", - "levels": { - "min": 1 - } - } - ] - } - } - ], - "source": "block_entity", - "ops": [ - { - "source": "UUID", - "target": "UUID", - "op": "replace" - } - ] - } - ] - } - ], - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ] - } - ] -} diff --git a/shared/src/main/resources/data/waystones/loot_tables/blocks/portstone.json b/shared/src/main/resources/data/waystones/loot_tables/blocks/portstone.json deleted file mode 100644 index 9f7118df..00000000 --- a/shared/src/main/resources/data/waystones/loot_tables/blocks/portstone.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "minecraft:block", - "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "waystones:portstone", - "conditions": [ - { - "condition": "minecraft:block_state_property", - "block": "waystones:portstone", - "properties": { - "half": "lower" - } - } - ] - } - ], - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ] - } - ] -} diff --git a/shared/src/main/resources/data/waystones/loot_tables/blocks/purple_sharestone.json b/shared/src/main/resources/data/waystones/loot_tables/blocks/purple_sharestone.json deleted file mode 100644 index 7bad6f9e..00000000 --- a/shared/src/main/resources/data/waystones/loot_tables/blocks/purple_sharestone.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "type": "minecraft:block", - "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "waystones:purple_sharestone", - "conditions": [ - { - "condition": "minecraft:block_state_property", - "block": "waystones:purple_sharestone", - "properties": { - "half": "lower" - } - } - ], - "functions": [ - { - "function": "minecraft:copy_nbt", - "conditions": [ - { - "condition": "minecraft:match_tool", - "predicate": { - "enchantments": [ - { - "enchantment": "minecraft:silk_touch", - "levels": { - "min": 1 - } - } - ] - } - } - ], - "source": "block_entity", - "ops": [ - { - "source": "UUID", - "target": "UUID", - "op": "replace" - } - ] - } - ] - } - ], - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ] - } - ] -} diff --git a/shared/src/main/resources/data/waystones/loot_tables/blocks/red_sharestone.json b/shared/src/main/resources/data/waystones/loot_tables/blocks/red_sharestone.json deleted file mode 100644 index 8082000e..00000000 --- a/shared/src/main/resources/data/waystones/loot_tables/blocks/red_sharestone.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "type": "minecraft:block", - "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "waystones:red_sharestone", - "conditions": [ - { - "condition": "minecraft:block_state_property", - "block": "waystones:red_sharestone", - "properties": { - "half": "lower" - } - } - ], - "functions": [ - { - "function": "minecraft:copy_nbt", - "conditions": [ - { - "condition": "minecraft:match_tool", - "predicate": { - "enchantments": [ - { - "enchantment": "minecraft:silk_touch", - "levels": { - "min": 1 - } - } - ] - } - } - ], - "source": "block_entity", - "ops": [ - { - "source": "UUID", - "target": "UUID", - "op": "replace" - } - ] - } - ] - } - ], - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ] - } - ] -} diff --git a/shared/src/main/resources/data/waystones/loot_tables/blocks/sandy_waystone.json b/shared/src/main/resources/data/waystones/loot_tables/blocks/sandy_waystone.json deleted file mode 100644 index 55f5bd9e..00000000 --- a/shared/src/main/resources/data/waystones/loot_tables/blocks/sandy_waystone.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "type": "minecraft:block", - "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "waystones:sandy_waystone", - "conditions": [ - { - "condition": "minecraft:block_state_property", - "block": "waystones:sandy_waystone", - "properties": { - "half": "lower" - } - } - ], - "functions": [ - { - "function": "minecraft:copy_nbt", - "conditions": [ - { - "condition": "minecraft:match_tool", - "predicate": { - "enchantments": [ - { - "enchantment": "minecraft:silk_touch", - "levels": { - "min": 1 - } - } - ] - } - } - ], - "source": "block_entity", - "ops": [ - { - "source": "UUID", - "target": "UUID", - "op": "replace" - } - ] - } - ] - } - ], - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ] - } - ] -} diff --git a/shared/src/main/resources/data/waystones/loot_tables/blocks/sharestone.json b/shared/src/main/resources/data/waystones/loot_tables/blocks/sharestone.json deleted file mode 100644 index 24ad9ead..00000000 --- a/shared/src/main/resources/data/waystones/loot_tables/blocks/sharestone.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "type": "minecraft:block", - "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "waystones:sharestone", - "conditions": [ - { - "condition": "minecraft:block_state_property", - "block": "waystones:sharestone", - "properties": { - "half": "lower" - } - } - ], - "functions": [ - { - "function": "minecraft:copy_nbt", - "conditions": [ - { - "condition": "minecraft:match_tool", - "predicate": { - "enchantments": [ - { - "enchantment": "minecraft:silk_touch", - "levels": { - "min": 1 - } - } - ] - } - } - ], - "source": "block_entity", - "ops": [ - { - "source": "UUID", - "target": "UUID", - "op": "replace" - } - ] - } - ] - } - ], - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ] - } - ] -} diff --git a/shared/src/main/resources/data/waystones/loot_tables/blocks/warp_plate.json b/shared/src/main/resources/data/waystones/loot_tables/blocks/warp_plate.json deleted file mode 100644 index f6dda9af..00000000 --- a/shared/src/main/resources/data/waystones/loot_tables/blocks/warp_plate.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "type": "minecraft:block", - "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "waystones:warp_plate", - "functions": [ - { - "function": "minecraft:copy_nbt", - "conditions": [ - { - "condition": "minecraft:match_tool", - "predicate": { - "enchantments": [ - { - "enchantment": "minecraft:silk_touch", - "levels": { - "min": 1 - } - } - ] - } - } - ], - "source": "block_entity", - "ops": [ - { - "source": "UUID", - "target": "UUID", - "op": "replace" - }, - { - "source": "CompletedFirstAttunement", - "target": "CompletedFirstAttunement", - "op": "replace" - } - ] - } - ] - } - ], - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ] - } - ] -} diff --git a/shared/src/main/resources/data/waystones/loot_tables/blocks/waystone.json b/shared/src/main/resources/data/waystones/loot_tables/blocks/waystone.json deleted file mode 100644 index b109e516..00000000 --- a/shared/src/main/resources/data/waystones/loot_tables/blocks/waystone.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "type": "minecraft:block", - "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "waystones:waystone", - "conditions": [ - { - "condition": "minecraft:block_state_property", - "block": "waystones:waystone", - "properties": { - "half": "lower" - } - } - ], - "functions": [ - { - "function": "minecraft:copy_nbt", - "conditions": [ - { - "condition": "minecraft:match_tool", - "predicate": { - "enchantments": [ - { - "enchantment": "minecraft:silk_touch", - "levels": { - "min": 1 - } - } - ] - } - } - ], - "source": "block_entity", - "ops": [ - { - "source": "UUID", - "target": "UUID", - "op": "replace" - } - ] - } - ] - } - ], - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ] - } - ] -} diff --git a/shared/src/main/resources/data/waystones/loot_tables/blocks/white_sharestone.json b/shared/src/main/resources/data/waystones/loot_tables/blocks/white_sharestone.json deleted file mode 100644 index cc9a83b1..00000000 --- a/shared/src/main/resources/data/waystones/loot_tables/blocks/white_sharestone.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "type": "minecraft:block", - "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "waystones:white_sharestone", - "conditions": [ - { - "condition": "minecraft:block_state_property", - "block": "waystones:white_sharestone", - "properties": { - "half": "lower" - } - } - ], - "functions": [ - { - "function": "minecraft:copy_nbt", - "conditions": [ - { - "condition": "minecraft:match_tool", - "predicate": { - "enchantments": [ - { - "enchantment": "minecraft:silk_touch", - "levels": { - "min": 1 - } - } - ] - } - } - ], - "source": "block_entity", - "ops": [ - { - "source": "UUID", - "target": "UUID", - "op": "replace" - } - ] - } - ] - } - ], - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ] - } - ] -} diff --git a/shared/src/main/resources/data/waystones/loot_tables/blocks/yellow_sharestone.json b/shared/src/main/resources/data/waystones/loot_tables/blocks/yellow_sharestone.json deleted file mode 100644 index c945d277..00000000 --- a/shared/src/main/resources/data/waystones/loot_tables/blocks/yellow_sharestone.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "type": "minecraft:block", - "pools": [ - { - "rolls": 1, - "entries": [ - { - "type": "minecraft:item", - "name": "waystones:yellow_sharestone", - "conditions": [ - { - "condition": "minecraft:block_state_property", - "block": "waystones:yellow_sharestone", - "properties": { - "half": "lower" - } - } - ], - "functions": [ - { - "function": "minecraft:copy_nbt", - "conditions": [ - { - "condition": "minecraft:match_tool", - "predicate": { - "enchantments": [ - { - "enchantment": "minecraft:silk_touch", - "levels": { - "min": 1 - } - } - ] - } - } - ], - "source": "block_entity", - "ops": [ - { - "source": "UUID", - "target": "UUID", - "op": "replace" - } - ] - } - ] - } - ], - "conditions": [ - { - "condition": "minecraft:survives_explosion" - } - ] - } - ] -}