From a1748625b029eb89cb08a1a30160f259c8b9c05b Mon Sep 17 00:00:00 2001 From: Pandro Date: Tue, 28 Oct 2025 17:48:46 +0100 Subject: [PATCH] Update power 'berry_powers' Added a random chance to get a very beneficial potion effect when eating a sweet berry --- data/feathermc/powers/berry_powers.json | 79 +++++++++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/data/feathermc/powers/berry_powers.json b/data/feathermc/powers/berry_powers.json index 3d64717..32342a7 100644 --- a/data/feathermc/powers/berry_powers.json +++ b/data/feathermc/powers/berry_powers.json @@ -7,6 +7,11 @@ "type": "origins:tooltip", "sprite": "minecraft:textures/item/sweet_berries.png", "text": "Eating berries is more effective!" + }, + { + "type": "origins:tooltip", + "sprite": "minecraft:textures/item/sweet_berries.png", + "text": "?" } ], "eating_berries": { @@ -27,5 +32,79 @@ "operation": "add_base_late", "amount": 2 } + }, + "random_effect": { + "type": "origins:action_on_item_use", + "item_condition": { + "type": "origins:ingredient", + "ingredient": { + "item": "minecraft:sweet_berries" + } + }, + "entity_action": { + "type": "origins:choice", + "actions": [ + { + "element": { + "type": "origins:chance", + "chance": 0.1, + "action": { + "type": "origins:apply_effect", + "effect": { + "id": "minecraft:speed", + "duration": 100, + "amplifier": 20 + } + } + }, + "weight": 1 + }, + { + "element": { + "type": "origins:chance", + "chance": 0.2, + "action": { + "type": "origins:apply_effect", + "effect": { + "id": "minecraft:invisibility", + "duration": 1000, + "amplifier": 1 + } + } + }, + "weight": 1 + }, + { + "element": { + "type": "origins:chance", + "chance": 0.2, + "action": { + "type": "origins:apply_effect", + "effect": { + "id": "minecraft:slow_falling", + "duration": 1000, + "amplifier": 1 + } + } + }, + "weight": 1 + }, + { + "element": { + "type": "origins:chance", + "chance": 0.2, + "action": { + "type": "origins:apply_effect", + "effect": { + "id": "minecraft:fire_resistance", + "duration": 1000, + "amplifier": 1 + } + } + }, + "weight": 1 + } + ] + } } }