From 33c4c11a7ebe0f6ee352c4650a0856f58e75b2e7 Mon Sep 17 00:00:00 2001 From: CosmoOrSth <79050675+CosmoOrSth@users.noreply.github.com> Date: Fri, 2 Aug 2024 17:44:47 +0530 Subject: [PATCH] complete implementation of 'Monarch' origin --- .../assets/terraoriginum/lang/en_us.json | 22 +++++++ .../data/origins/origin_layers/origin.json | 1 + .../data/terraoriginum/origins/monarch.json | 17 +++++ .../monarchpowers/hydropetrification.json | 29 ++++++++ .../monarchpowers/hyperefficient_blood.json | 10 +++ .../monarchpowers/instant_transmission.json | 66 +++++++++++++++++++ .../powers/monarchpowers/nuclear_rush.json | 55 ++++++++++++++++ .../powers/monarchpowers/nyctophobia.json | 31 +++++++++ .../powers/monarchpowers/shining.json | 6 ++ .../powers/monarchpowers/solar_energy.json | 11 ++++ .../powers/monarchpowers/sun_fueled.json | 13 ++++ .../powers/monarchpowers/super_dash.json | 40 +++++++++++ 12 files changed, 301 insertions(+) create mode 100644 src/main/resources/data/terraoriginum/origins/monarch.json create mode 100644 src/main/resources/data/terraoriginum/powers/monarchpowers/hydropetrification.json create mode 100644 src/main/resources/data/terraoriginum/powers/monarchpowers/hyperefficient_blood.json create mode 100644 src/main/resources/data/terraoriginum/powers/monarchpowers/instant_transmission.json create mode 100644 src/main/resources/data/terraoriginum/powers/monarchpowers/nuclear_rush.json create mode 100644 src/main/resources/data/terraoriginum/powers/monarchpowers/nyctophobia.json create mode 100644 src/main/resources/data/terraoriginum/powers/monarchpowers/shining.json create mode 100644 src/main/resources/data/terraoriginum/powers/monarchpowers/solar_energy.json create mode 100644 src/main/resources/data/terraoriginum/powers/monarchpowers/sun_fueled.json create mode 100644 src/main/resources/data/terraoriginum/powers/monarchpowers/super_dash.json diff --git a/src/main/resources/assets/terraoriginum/lang/en_us.json b/src/main/resources/assets/terraoriginum/lang/en_us.json index 3cfa645..aee718e 100644 --- a/src/main/resources/assets/terraoriginum/lang/en_us.json +++ b/src/main/resources/assets/terraoriginum/lang/en_us.json @@ -211,6 +211,28 @@ "power.terraoriginum.muckunde-powers/hydrophobic.name": "Hydrophobic", "power.terraoriginum.muckunde-powers/hydrophobic.description": "your body completely ignores water", + //-----Monarch-----// + "origin.terraoriginum.monarch.name": "Monarch", + "origin.terraoriginum.monarch.description": "The Monarchs were the first of them all, they took pride in the fact that they were superior to all others of their time, that was until newer and better species came along and drove them to near extinction. \nNow they have returned after evolving into something far more powerful", + "power.terraoriginum.monarchpowers/hyperefficient_blood.name": "Hyperefficient Blood", + "power.terraoriginum.monarchpowers/hyperefficient_blood.description": "Your blood is extremely efficient, destroying any poisons within your bloodstream before they have a chance to do any damage", + "power.terraoriginum.monarchpowers/solar_energy.name": "Solar Energy", + "power.terraoriginum.monarchpowers/solar_energy.description": "You draw energy from the sun and store it within your body, and access it at will to use various abilities", + "power.terraoriginum.monarchpowers/sun_fueled.name": "Sun Fueled", + "power.terraoriginum.monarchpowers/sun_fueled.description": "You have evolved to draw power from the sun, leading you to become more powerful during the day", + "power.terraoriginum.monarchpowers/nuclear_rush.name": "Nuclear Rush", + "power.terraoriginum.monarchpowers/nuclear_rush.description": "using the sun energy stored within your body, you can temporarily start a weak thermonuclear reaction, pushing your body beyond the limitations of living flesh.", + "power.terraoriginum.monarchpowers/instant_transmission.name": "Instant Transmission", + "power.terraoriginum.monarchpowers/instant_transmission.description": "Use the thermonuclear energy stored in your body to erase the space between you and your target", + "power.terraoriginum.monarchpowers/nyctophobia.name": "Nyctophobia", + "power.terraoriginum.monarchpowers/nyctophobia.description": "Your power is derived from the sun, making you weaker during the night", + "power.terraoriginum.monarchpowers/shining.name": "Shining", + "power.terraoriginum.monarchpowers/shining.description": "An entire lifetime of absorbing the sun's energy makes you radiate it's light", + "power.terraoriginum.monarchpowers/super_dash.name": "Super Dash", + "power.terraoriginum.monarchpowers/super_dash.description": "release a large portion of the solar energy stored within your body to create a large amount of thrust in whatever direction you are facing", + "power.terraoriginun.monarchpowers/hydropetrification.name": "Hydropetrification", + "power.terraoriginum.monarchpowers/hydropetrification.description": "Your body's cells contain a high concentration of neutrinos to facilitate nuclear processes whithin itself, this causes your entire body to heavily slow down underwater", + "death.attack.terraoriginum:last_stand": "%1$s made their last stand.", "death.attack.terraoriginum:last_stand.player": "%1$s made their last stand trying to kill %2$s." diff --git a/src/main/resources/data/origins/origin_layers/origin.json b/src/main/resources/data/origins/origin_layers/origin.json index 6af652a..5e84047 100644 --- a/src/main/resources/data/origins/origin_layers/origin.json +++ b/src/main/resources/data/origins/origin_layers/origin.json @@ -14,6 +14,7 @@ "terraoriginum:florian", "terraoriginum:fairy", "terraoriginum:muckunde", + "terraoriginum:monarch", { "condition": { "type": "origins:equipped_item", diff --git a/src/main/resources/data/terraoriginum/origins/monarch.json b/src/main/resources/data/terraoriginum/origins/monarch.json new file mode 100644 index 0000000..ea607dd --- /dev/null +++ b/src/main/resources/data/terraoriginum/origins/monarch.json @@ -0,0 +1,17 @@ +{ + "powers": [ + "terraoriginum:monarchpowers/solar_energy", + "terraoriginum:monarchpowers/nuclear_rush", + "terraoriginum:monarchpowers/instant_transmission", + "terraoriginum:monarchpowers/super_dash", + "terraoriginum:monarchpowers/hyperefficient_blood", + "terraoriginum:monarchpowers/hydropetrification", + "terraoriginum:monarchpowers/sun_fueled", + "terraoriginum:monarchpowers/nyctophobia", + "terraoriginum:monarchpowers/shining" + ], + "icon": "fire_charge", + "order": 999, + "impact": 3 + } + \ No newline at end of file diff --git a/src/main/resources/data/terraoriginum/powers/monarchpowers/hydropetrification.json b/src/main/resources/data/terraoriginum/powers/monarchpowers/hydropetrification.json new file mode 100644 index 0000000..d7b7995 --- /dev/null +++ b/src/main/resources/data/terraoriginum/powers/monarchpowers/hydropetrification.json @@ -0,0 +1,29 @@ +{ + "type": "origins:action_over_time", + "interval": 1, + "condition": { + "type": "origins:submerged_in", + "fluid": "minecraft:water" + }, + "entity_action": { + "type": "origins:and", + "actions": [ + { + "type": "origins:add_velocity", + "x": 0, + "y": 0, + "z": 0, + "set": true + }, + { + "type": "origins:apply_effect", + "effect": { + "effect": "minecraft:mining_fatigue", + "duration": 200, + "amplifier": 2 + } + + } + ] + } +} \ No newline at end of file diff --git a/src/main/resources/data/terraoriginum/powers/monarchpowers/hyperefficient_blood.json b/src/main/resources/data/terraoriginum/powers/monarchpowers/hyperefficient_blood.json new file mode 100644 index 0000000..a33325a --- /dev/null +++ b/src/main/resources/data/terraoriginum/powers/monarchpowers/hyperefficient_blood.json @@ -0,0 +1,10 @@ +{ + "type": "origins:effect_immunity", + "effects": [ + "minecraft:wither", + "minecraft:poison", + "minecraft:instant_damage", + "minecraft:hunger" + ] + } + \ No newline at end of file diff --git a/src/main/resources/data/terraoriginum/powers/monarchpowers/instant_transmission.json b/src/main/resources/data/terraoriginum/powers/monarchpowers/instant_transmission.json new file mode 100644 index 0000000..ca82f15 --- /dev/null +++ b/src/main/resources/data/terraoriginum/powers/monarchpowers/instant_transmission.json @@ -0,0 +1,66 @@ +{ + "condition": { + "type": "origins:resource", + "resource": "terraoriginum:monarchpowers/solar_energy", + "comparison": ">=", + "compare_to": 50 + }, + "type": "origins:active_self", + "entity_action": { + "type": "origins:and", + "actions": [ + { + "type": "origins:delay", + "action": { + "type": "origins:raycast", + "distance": 20, + "block": true, + "entity": true, + "shape_type": "visual", + "fluid_handling": "any", + "miss_action": { + "type": "origins:nothing" + }, + "command_at_hit": "tp @s ~ ~ ~", + "command_along_ray": "/particle smoke ~ ~ ~ 0 0 0 0 10", + "command_step": 0.3 + }, + "ticks": 0 + }, + { + "type": "origins:play_sound", + "sound": "entity.illusioner.cast_spell", + "volume": 1, + "pitch": 1 + }, + { + "type": "origins:spawn_particles", + "particle": "instant_effect", + "count": 800, + "speed": 0.1, + "force": true, + "spread": { + "x": 0.5, + "y": 0.5, + "z": 0.5 + }, + "offset_y": 0.5 + }, + { + "type": "origins:change_resource", + "resource": "terraoriginum:monarchpowers/solar_energy", + "change": -50, + "operation": "add" + } + + ] + }, + "cooldown": 0, + "hud_render": { + "sprite_location": "origins:textures/gui/community/huang/resource_bar_01.png", + "bar_index": "19" + }, + "key": { + "key": "secondary" + } +} \ No newline at end of file diff --git a/src/main/resources/data/terraoriginum/powers/monarchpowers/nuclear_rush.json b/src/main/resources/data/terraoriginum/powers/monarchpowers/nuclear_rush.json new file mode 100644 index 0000000..b537e2a --- /dev/null +++ b/src/main/resources/data/terraoriginum/powers/monarchpowers/nuclear_rush.json @@ -0,0 +1,55 @@ +{ + "condition": { + "type": "origins:resource", + "resource": "terraoriginum:monarchpowers/solar_energy", + "comparison": ">=", + "compare_to": 100 + }, + "type": "origins:active_self", + "entity_action": { + "type": "origins:and", + "actions": [ + { + "type": "origins:apply_effect", + "effect": { + "effect": "minecraft:strength", + "duration": 120, + "amplifier": 4 + } + }, + { + "type": "origins:apply_effect", + "effect": { + "effect": "minecraft:speed", + "duration": 200, + "amplifier": 3 + } + }, + { + "type": "origins:apply_effect", + "effect": { + "effect": "minecraft:resistance", + "duration": 200, + "amplifier": 3 + } + }, + { + "type": "origins:change_resource", + "resource": "terraoriginum:monarchpowers/solar_energy", + "change": -100, + "operation": "add" + }, + { + "type": "origins:exhaust", + "amount": 2 + } + ] + + }, + "cooldown": 3000, + "hud_render": { + "sprite_location": "origins:textures/gui/community/huang/resource_bar_01.png", + "bar_index": "7" + }, + "key": "primary" + } \ No newline at end of file diff --git a/src/main/resources/data/terraoriginum/powers/monarchpowers/nyctophobia.json b/src/main/resources/data/terraoriginum/powers/monarchpowers/nyctophobia.json new file mode 100644 index 0000000..1a3938b --- /dev/null +++ b/src/main/resources/data/terraoriginum/powers/monarchpowers/nyctophobia.json @@ -0,0 +1,31 @@ +{ + "type": "origins:action_over_time", + "condition": { + "type": "origins:daytime", + "inverted": true + }, + "entity_action": { + "type": "origins:and", + "actions": [{ + "type": "origins:apply_effect", + "effects": [{ + "effect": "minecraft:slowness", + "amplifier": 0, + "duration": 35, + "show_particles": false, + "show_icon": false + }, + { + "effect": "minecraft:weakness", + "amplifier": 2, + "duration": 35, + "show_particles": false, + "show_icon": false + } + ] + } + ] + }, + "update_health": true + } + \ No newline at end of file diff --git a/src/main/resources/data/terraoriginum/powers/monarchpowers/shining.json b/src/main/resources/data/terraoriginum/powers/monarchpowers/shining.json new file mode 100644 index 0000000..5ea6e92 --- /dev/null +++ b/src/main/resources/data/terraoriginum/powers/monarchpowers/shining.json @@ -0,0 +1,6 @@ +{ + "type": "origins:model_color", + "blue": 0.5, + "red": 1, + "green": 1 +} \ No newline at end of file diff --git a/src/main/resources/data/terraoriginum/powers/monarchpowers/solar_energy.json b/src/main/resources/data/terraoriginum/powers/monarchpowers/solar_energy.json new file mode 100644 index 0000000..1010b8a --- /dev/null +++ b/src/main/resources/data/terraoriginum/powers/monarchpowers/solar_energy.json @@ -0,0 +1,11 @@ +{ + "type": "origins:resource", + "min": 0, + "max": 400, + "start_value": 10, + "hud_render": { + "should_render": true, + "sprite_location": "origins:textures/gui/community/huang/resource_bar_01.png", + "bar_index": 14 + } +} \ No newline at end of file diff --git a/src/main/resources/data/terraoriginum/powers/monarchpowers/sun_fueled.json b/src/main/resources/data/terraoriginum/powers/monarchpowers/sun_fueled.json new file mode 100644 index 0000000..2c3efc0 --- /dev/null +++ b/src/main/resources/data/terraoriginum/powers/monarchpowers/sun_fueled.json @@ -0,0 +1,13 @@ +{ +"condition": { + "type": "origins:daytime" + }, + "type": "origins:action_over_time", + "interval": 40, + "entity_action": { + "type": "origins:change_resource", + "resource": "terraoriginum:monarchpowers/solar_energy", + "change": 10, + "operation": "add" + } +} \ No newline at end of file diff --git a/src/main/resources/data/terraoriginum/powers/monarchpowers/super_dash.json b/src/main/resources/data/terraoriginum/powers/monarchpowers/super_dash.json new file mode 100644 index 0000000..bb91bf8 --- /dev/null +++ b/src/main/resources/data/terraoriginum/powers/monarchpowers/super_dash.json @@ -0,0 +1,40 @@ +{ + "type": "origins:active_self", + "entity_action": { + "type": "origins:and", + "actions": [{ + "type": "origins:play_sound", + "sound": "minecraft:entity.evoker.cast_spell" + }, + { + "type": "origins:add_velocity", + "space": "local", + "z": 20 + }, + { + "type": "origins:execute_command", + "command": "particle minecraft:dust_color_transition 1 0 0 1 0 0 0 ~ ~ ~ 0.5 0 0.5 10 100 force" + }, + { + "type": "origins:change_resource", + "resource": "terraoriginum:monarchpowers/solar_energy", + "change": -200 + } + ] + }, + "key": { + "key": "key.origins.ternary_active" + }, + "condition": { + "type": "origins:resource", + "resource": "terraoriginum:monarchpowers/solar_energy", + "comparison": ">=", + "compare_to": 200 + }, +"cooldown": 100, +"hud_render": { +"sprite_location": "origins:textures/gui/community/huang/resource_bar_02.png", +"bar_index": 5, +"should_render": true +} +} \ No newline at end of file