From beff141fbb31e5ef5dc544008a4d6495d87dfcb7 Mon Sep 17 00:00:00 2001 From: Pandro Date: Thu, 9 Oct 2025 23:24:31 +0200 Subject: [PATCH] Added "integrated_armor", "regenerative_light" Added power "integrated_armor" Gives 4 armor by default and removes it eventually when a chestplate is worn Also makes wearing armor invisible BUT Customizable Player Models is breaking that. Added power "regenerative_light" Slowly regenerates health (1 health every 6 sec) when standing in light level 15 --- datapack/data/feathermc/origins/protogen.json | 5 ++- .../feathermc/powers/integrated_armor.json | 41 +++++++++++++++++++ .../feathermc/powers/regenerative_light.json | 25 +++++++++++ 3 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 datapack/data/feathermc/powers/integrated_armor.json create mode 100644 datapack/data/feathermc/powers/regenerative_light.json diff --git a/datapack/data/feathermc/origins/protogen.json b/datapack/data/feathermc/origins/protogen.json index 692fc3a..ddbfef2 100644 --- a/datapack/data/feathermc/origins/protogen.json +++ b/datapack/data/feathermc/origins/protogen.json @@ -2,7 +2,10 @@ "name": "Protogen", "description": "An artificial creature designed to adapt to its surroundings.", "powers": [ - "feathermc:pumpkin_hate" + "feathermc:pumpkin_hate", + "feathermc:regenerative_light", + "feathermc:bulwark", + "feathermc:integrated_armor" ], "order": 9, "impact": 2 diff --git a/datapack/data/feathermc/powers/integrated_armor.json b/datapack/data/feathermc/powers/integrated_armor.json new file mode 100644 index 0000000..e5832db --- /dev/null +++ b/datapack/data/feathermc/powers/integrated_armor.json @@ -0,0 +1,41 @@ +{ + "type": "origins:multiple", + "name": "Integrated Armor", + "description": "Your armor is part of you. You are lightly armored by default and others can not see your armor.", + "badges": [ + { + "type": "origins:tooltip", + "sprite": "minecraft:textures/item/iron_chestplate.png", + "text": "You get a bit of chest armor by default." + }, + { + "type": "origins:tooltip", + "sprite": "minecraft:textures/item/ender_eye.png", + "text": "Armor you wear is invisible." + } + ], + "invisible_armor": { + "type": "origins:prevent_feature_render", + "feature": "armor" + }, + "default_armor": { + "type": "origins:conditioned_attribute", + "modifier": { + "id": "default_armor_mod", + "attribute": "minecraft:generic.armor", + "operation": "add_value", + "amount": 4 + }, + "tick_rate": 100, + "condition": { + "type": "origins:equipped_item", + "inverted": true, + "equipment_slot": "chest", + "item_condition": { + "type": "origins:armor_value", + "comparison": ">", + "compare_to": 0 + } + } + } +} diff --git a/datapack/data/feathermc/powers/regenerative_light.json b/datapack/data/feathermc/powers/regenerative_light.json new file mode 100644 index 0000000..9833418 --- /dev/null +++ b/datapack/data/feathermc/powers/regenerative_light.json @@ -0,0 +1,25 @@ +{ + "type": "origins:multiple", + "name": "Regnerative Light", + "description": "Being exposed to bright light sources slowly heals you.", + "badges": [ + { + "type": "origins:tooltip", + "sprite": "minecraft:textures/block/glowstone.png", + "text": "Being in bright light slowly regenerates health." + } + ], + "regeneration": { + "type": "origins:action_over_time", + "entity_action": { + "type": "origins:heal", + "amount": 1 + }, + "interval": 120, + "condition": { + "type": "origins:brightness", + "comparison": ">=", + "compare_to": 1.0 + } + } +}