From f468631423608a72df4ca0d12b97ee458a45c5a1 Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 26 Sep 2022 13:42:26 +0200 Subject: [PATCH] Added apples and apple seeds to loot tables in wooldland mansions and villages --- .../com/minelittlepony/unicopia/UTags.java | 1 + .../data/unicopia/tags/items/apple_seeds.json | 8 ++++++ .../chests/village/village_plains_house.json | 26 +++++++++++++++++++ .../loot_tables/chests/woodland_mansion.json | 16 ++++++++++++ 4 files changed, 51 insertions(+) create mode 100644 src/main/resources/data/unicopia/tags/items/apple_seeds.json create mode 100644 src/main/resources/data/unicopiamc/loot_tables/chests/village/village_plains_house.json diff --git a/src/main/java/com/minelittlepony/unicopia/UTags.java b/src/main/java/com/minelittlepony/unicopia/UTags.java index cab336b1..52394303 100644 --- a/src/main/java/com/minelittlepony/unicopia/UTags.java +++ b/src/main/java/com/minelittlepony/unicopia/UTags.java @@ -19,6 +19,7 @@ public interface UTags { TagKey SHADES = item("shades"); TagKey POLEARMS = item("polearms"); + TagKey APPLE_SEEDS = item("apple_seeds"); TagKey FRAGILE = block("fragile"); TagKey INTERESTING = block("interesting"); diff --git a/src/main/resources/data/unicopia/tags/items/apple_seeds.json b/src/main/resources/data/unicopia/tags/items/apple_seeds.json new file mode 100644 index 00000000..7ed8c23a --- /dev/null +++ b/src/main/resources/data/unicopia/tags/items/apple_seeds.json @@ -0,0 +1,8 @@ +{ + "replace": false, + "values": [ + "unicopia:green_apple_seeds", + "unicopia:sweet_apple_seeds", + "unicopia:sour_apple_seeds" + ] +} diff --git a/src/main/resources/data/unicopiamc/loot_tables/chests/village/village_plains_house.json b/src/main/resources/data/unicopiamc/loot_tables/chests/village/village_plains_house.json new file mode 100644 index 00000000..f8d7b0b5 --- /dev/null +++ b/src/main/resources/data/unicopiamc/loot_tables/chests/village/village_plains_house.json @@ -0,0 +1,26 @@ +{ + "type": "minecraft:chest", + "pools": [ + { + "bonus_rolls": 0.0, + "entries": [ + { + "type": "minecraft:tag", + "name": "unicopia:fresh_apples", + "expand": true, + "weight": 1 + }, + { + "type": "minecraft:tag", + "name": "unicopia:apple_seeds", + "expand": true + } + ], + "rolls": { + "type": "minecraft:uniform", + "max": 8.0, + "min": 3.0 + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/data/unicopiamc/loot_tables/chests/woodland_mansion.json b/src/main/resources/data/unicopiamc/loot_tables/chests/woodland_mansion.json index 2ea41897..a7b185fe 100644 --- a/src/main/resources/data/unicopiamc/loot_tables/chests/woodland_mansion.json +++ b/src/main/resources/data/unicopiamc/loot_tables/chests/woodland_mansion.json @@ -37,6 +37,22 @@ } ], "name": "unicopia:golden_wing" + }, + { + "type": "minecraft:tag", + "weight": 1, + "functions": [ + { + "function": "minecraft:set_count", + "count": { + "min": 2.0, + "max": 5.0, + "type": "minecraft:uniform" + } + } + ], + "expand": true, + "name": "unicopia:fresh_apples" } ] }