From 224584875d92e9483211457168a979e8febf3a18 Mon Sep 17 00:00:00 2001 From: Andrew-71 Date: Sun, 3 Sep 2023 21:47:22 +0300 Subject: [PATCH] Add light bulb lamp drop --- README.md | 2 +- TODO.md | 7 ++--- .../loot_tables/blocks/light_bulb_lamp.json | 30 +++++++++++++++++++ .../su/a71/new_soviet/DataGeneration.java | 2 ++ 4 files changed, 36 insertions(+), 5 deletions(-) create mode 100644 src/main/generated/data/new_soviet/loot_tables/blocks/light_bulb_lamp.json diff --git a/README.md b/README.md index ca7e999..3eaaf44 100644 --- a/README.md +++ b/README.md @@ -14,4 +14,4 @@ Minecraft mod to relive the good old days **A**: The best place to do that would be the [project's Discord](https://discord.gg/D46vGJeCfj) **Q**: Will you port to Forge or older version?\ -**A**: Right now we have no plans for that. If the mod becomes popular we might consider going multi-loader, but we won't ever backport to old versions. \ No newline at end of file +**A**: Right now we have no plans for that. If the mod becomes popular we might consider going multi-loader, but we won't ever backport to old versions, and will target the latest one. \ No newline at end of file diff --git a/TODO.md b/TODO.md index f96eaff..9ce80ee 100644 --- a/TODO.md +++ b/TODO.md @@ -1,8 +1,6 @@ -=== Andrew71 agenda (14.08.23) === -* Minotaur publishing +=== Andrew71 agenda since (14.08.23) === * Fix GitHub mirror * Make good README.md stuff -* Revise all new code for issues === STUFF TO ADD/FIX === * Add slab and stair variations @@ -12,7 +10,8 @@ * Add achievement criterion for dice and advancements * PO2 wall (fix) * What's switch type 2? -* Populate blocktags e.g. PLANKS +* All the lamps (lamp posts too!) +* Look into cigarette and handrail for code cleanup === ACHIEVEMENTS === Kolkhoz warrior - kill a zombie, skeleton, creeper and spider with a sickle \ No newline at end of file diff --git a/src/main/generated/data/new_soviet/loot_tables/blocks/light_bulb_lamp.json b/src/main/generated/data/new_soviet/loot_tables/blocks/light_bulb_lamp.json new file mode 100644 index 0000000..d1fa655 --- /dev/null +++ b/src/main/generated/data/new_soviet/loot_tables/blocks/light_bulb_lamp.json @@ -0,0 +1,30 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "bonus_rolls": 0.0, + "conditions": [ + { + "condition": "minecraft:match_tool", + "predicate": { + "enchantments": [ + { + "enchantment": "minecraft:silk_touch", + "levels": { + "min": 1 + } + } + ] + } + } + ], + "entries": [ + { + "type": "minecraft:item", + "name": "new_soviet:light_bulb_lamp" + } + ], + "rolls": 1.0 + } + ] +} \ No newline at end of file diff --git a/src/main/java/su/a71/new_soviet/DataGeneration.java b/src/main/java/su/a71/new_soviet/DataGeneration.java index 678e2d1..5c69398 100644 --- a/src/main/java/su/a71/new_soviet/DataGeneration.java +++ b/src/main/java/su/a71/new_soviet/DataGeneration.java @@ -436,6 +436,8 @@ public class DataGeneration implements DataGeneratorEntrypoint { addDrop(NSE_Blocks.CYAN_LINOLEUM_STAIRS); addDrop(NSE_Blocks.METAL_PLATING_SLAB); addDrop(NSE_Blocks.METAL_PLATING_STAIRS); + + addDropWithSilkTouch(NSE_Custom.LIGHT_BULB_LAMP); } }