commit 12eaadf1d137c46f1bb68410299a8742a64c4395 Author: AXOLOTsh <96595812+AXOLOTsh@users.noreply.github.com> Date: Wed Apr 15 22:25:28 2026 +0300 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9d1315b --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.code-workspace +*.zip \ No newline at end of file diff --git a/data/minecraft/loot_table/gameplay/piglin_bartering.json b/data/minecraft/loot_table/gameplay/piglin_bartering.json new file mode 100644 index 0000000..c01af14 --- /dev/null +++ b/data/minecraft/loot_table/gameplay/piglin_bartering.json @@ -0,0 +1,268 @@ +{ + "type": "minecraft:barter", + "pools": [ + { + "bonus_rolls": 0, + "entries": [ + { + "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:enchant_randomly", + "options": [ + "minecraft:soul_speed", + "more_enchantments:thrust" + ] + } + ], + "name": "minecraft:book", + "weight": 10 + }, + { + "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:enchant_randomly", + "options": "minecraft:soul_speed" + } + ], + "name": "minecraft:iron_boots", + "weight": 8 + }, + { + "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:set_potion", + "id": "minecraft:fire_resistance" + } + ], + "name": "minecraft:potion", + "weight": 8 + }, + { + "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:set_potion", + "id": "minecraft:fire_resistance" + } + ], + "name": "minecraft:splash_potion", + "weight": 8 + }, + { + "type": "minecraft:item", + "functions": [ + { + "function": "minecraft:set_potion", + "id": "minecraft:water" + } + ], + "name": "minecraft:potion", + "weight": 10 + }, + { + "type": "minecraft:item", + "functions": [ + { + "add": false, + "count": { + "type": "minecraft:uniform", + "max": 36, + "min": 10 + }, + "function": "minecraft:set_count" + } + ], + "name": "minecraft:iron_nugget", + "weight": 10 + }, + { + "type": "minecraft:item", + "functions": [ + { + "add": false, + "count": { + "type": "minecraft:uniform", + "max": 4, + "min": 2 + }, + "function": "minecraft:set_count" + } + ], + "name": "minecraft:ender_pearl", + "weight": 10 + }, + { + "type": "minecraft:item", + "functions": [ + { + "add": false, + "count": 1, + "function": "minecraft:set_count" + } + ], + "name": "minecraft:dried_ghast", + "weight": 10 + }, + { + "type": "minecraft:item", + "functions": [ + { + "add": false, + "count": { + "type": "minecraft:uniform", + "max": 9, + "min": 3 + }, + "function": "minecraft:set_count" + } + ], + "name": "minecraft:string", + "weight": 20 + }, + { + "type": "minecraft:item", + "functions": [ + { + "add": false, + "count": { + "type": "minecraft:uniform", + "max": 12, + "min": 5 + }, + "function": "minecraft:set_count" + } + ], + "name": "minecraft:quartz", + "weight": 20 + }, + { + "type": "minecraft:item", + "name": "minecraft:obsidian", + "weight": 40 + }, + { + "type": "minecraft:item", + "functions": [ + { + "add": false, + "count": { + "type": "minecraft:uniform", + "max": 3, + "min": 1 + }, + "function": "minecraft:set_count" + } + ], + "name": "minecraft:crying_obsidian", + "weight": 40 + }, + { + "type": "minecraft:item", + "name": "minecraft:fire_charge", + "weight": 40 + }, + { + "type": "minecraft:item", + "functions": [ + { + "add": false, + "count": { + "type": "minecraft:uniform", + "max": 4, + "min": 2 + }, + "function": "minecraft:set_count" + } + ], + "name": "minecraft:leather", + "weight": 40 + }, + { + "type": "minecraft:item", + "functions": [ + { + "add": false, + "count": { + "type": "minecraft:uniform", + "max": 8, + "min": 2 + }, + "function": "minecraft:set_count" + } + ], + "name": "minecraft:soul_sand", + "weight": 40 + }, + { + "type": "minecraft:item", + "functions": [ + { + "add": false, + "count": { + "type": "minecraft:uniform", + "max": 8, + "min": 2 + }, + "function": "minecraft:set_count" + } + ], + "name": "minecraft:nether_brick", + "weight": 40 + }, + { + "type": "minecraft:item", + "functions": [ + { + "add": false, + "count": { + "type": "minecraft:uniform", + "max": 12, + "min": 6 + }, + "function": "minecraft:set_count" + } + ], + "name": "minecraft:spectral_arrow", + "weight": 40 + }, + { + "type": "minecraft:item", + "functions": [ + { + "add": false, + "count": { + "type": "minecraft:uniform", + "max": 16, + "min": 8 + }, + "function": "minecraft:set_count" + } + ], + "name": "minecraft:gravel", + "weight": 40 + }, + { + "type": "minecraft:item", + "functions": [ + { + "add": false, + "count": { + "type": "minecraft:uniform", + "max": 16, + "min": 8 + }, + "function": "minecraft:set_count" + } + ], + "name": "minecraft:blackstone", + "weight": 40 + } + ], + "rolls": 1 + } + ], + "random_sequence": "minecraft:gameplay/piglin_bartering" +} \ No newline at end of file diff --git a/data/more_enchantments/enchantment/thrust.json b/data/more_enchantments/enchantment/thrust.json new file mode 100644 index 0000000..e06f216 --- /dev/null +++ b/data/more_enchantments/enchantment/thrust.json @@ -0,0 +1,39 @@ +{ + "anvil_cost": 1, + "description": { + "translate": "more_enchantments.enchantment.thrust.description", + "fallback": "Тяга" + }, + "effects": { + "minecraft:attributes": [ + { + "amount": { + "type": "minecraft:lookup", + "values": [ + 0.005, + 0.02, + 0.04 + ], + "fallback": 0.01 + }, + "attribute": "minecraft:flying_speed", + "id": "elaria:enchantment.happy_ghast", + "operation": "add_value" + } + ] + }, + "max_cost": { + "base": 51, + "per_level_above_first": 10 + }, + "max_level": 3, + "min_cost": { + "base": 1, + "per_level_above_first": 10 + }, + "slots": [ + "body" + ], + "supported_items": "#minecraft:harnesses", + "weight": 10 +} \ No newline at end of file diff --git a/pack.mcmeta b/pack.mcmeta new file mode 100644 index 0000000..2011601 --- /dev/null +++ b/pack.mcmeta @@ -0,0 +1,8 @@ +{ + "pack": { + "description": "MoreEnchantments", + "pack_format": 88, + "max_format": 88, + "min_format": 88 + } +} \ No newline at end of file