diff --git a/datapack/data/feathermc/origins/avian.json b/datapack/data/feathermc/origins/avian.json index 89d90bb..5bca6fb 100644 --- a/datapack/data/feathermc/origins/avian.json +++ b/datapack/data/feathermc/origins/avian.json @@ -2,7 +2,8 @@ "name": "Avian", "description": "A feathered creature that prefers to live up high, is lightweight and can glide.", "powers": [ - "feathermc:frail_flight" + "feathermc:frail_flight", + "feathermc:armor_slow" ], "order": 0, "impact": 2 diff --git a/datapack/data/feathermc/origins/bat.json b/datapack/data/feathermc/origins/bat.json new file mode 100644 index 0000000..9d3984c --- /dev/null +++ b/datapack/data/feathermc/origins/bat.json @@ -0,0 +1,10 @@ +{ + "name": "Bat", + "description": "A winged creature that prefers to stay in caves during the day. Adapted to low or nolight it can have difficulties dealing with day light.", + "powers": [ + "feathermc:frail_flight", + "feathermc:armor_slow" + ], + "order": 1, + "impact": 2 +} diff --git a/datapack/data/feathermc/powers/armor_slow.json b/datapack/data/feathermc/powers/armor_slow.json new file mode 100644 index 0000000..0066806 --- /dev/null +++ b/datapack/data/feathermc/powers/armor_slow.json @@ -0,0 +1,31 @@ +{ + "type": "origins:action_over_time", + "name": "Thin Limbs", + "description": "Your light build does not allow you to wear heavy armor without it slowing you down.", + "badges": [ + { + "sprite": "minecraft:textures/item/bone.png", + "text": "Ooh, shiny!" + } + ], + "entity_action": { + "type": "origins:apply_effect", + "effects": [ + { + "id": "minecraft:slowness", + "amplifier": 1, + "duration": 100, + "is_ambient": false, + "show_particles": false, + "show_icon": false + } + ] + }, + "tick_rate": 100, + "condition": { + "type": "origins:attribute", + "attribute": "minecraft:generic.armor", + "comparison": ">=", + "compare_to": 14 + } +} diff --git a/datapack/data/feathermc/powers/frail_flight.json b/datapack/data/feathermc/powers/frail_flight.json index f887b74..299a190 100644 --- a/datapack/data/feathermc/powers/frail_flight.json +++ b/datapack/data/feathermc/powers/frail_flight.json @@ -1,7 +1,6 @@ { "type": "origins:elytra_flight", "name": "Frail Flight", - "icon": "minecraft:elytra", "description": "Able to use your wings to glide but only when you're not hurt.", "render_elytra": true, "condition": { diff --git a/datapack/data/origins/origin_layers/origin.json b/datapack/data/origins/origin_layers/origin.json index 5245f1c..599a4be 100644 --- a/datapack/data/origins/origin_layers/origin.json +++ b/datapack/data/origins/origin_layers/origin.json @@ -1,6 +1,7 @@ { "replace": false, "origins": [ - "feathermc:avian" + "feathermc:avian", + "feathermc:bat" ] }