From 637427e103d314880b6da8ec7585aefb73bc2beb Mon Sep 17 00:00:00 2001 From: lisbiskup Date: Sat, 3 Aug 2024 13:41:23 +0200 Subject: [PATCH] Worked on Kitsune origin --- build.sh | 4 + src/data/fantasy_origins/origins/elf.json | 1 + src/data/fantasy_origins/origins/kitsune.json | 11 +- .../fantasy_origins/powers/bowmaster.json | 9 ++ .../powers/enemy_of_the_underworld.json | 9 ++ .../fantasy_origins/powers/flammable.json | 14 ++ src/data/fantasy_origins/powers/fox_diet.json | 47 +++++++ .../fantasy_origins/powers/nine_lives.json | 11 ++ .../powers/spirit_ancestry.json | 14 ++ src/data/fantasy_origins/powers/stalker.json | 132 ++++++++++++++++++ .../fantasy_origins/powers/switcheroo.json | 93 ++++++++++++ 11 files changed, 343 insertions(+), 2 deletions(-) create mode 100755 build.sh create mode 100644 src/data/fantasy_origins/powers/bowmaster.json create mode 100644 src/data/fantasy_origins/powers/enemy_of_the_underworld.json create mode 100644 src/data/fantasy_origins/powers/flammable.json create mode 100644 src/data/fantasy_origins/powers/fox_diet.json create mode 100644 src/data/fantasy_origins/powers/nine_lives.json create mode 100644 src/data/fantasy_origins/powers/spirit_ancestry.json create mode 100644 src/data/fantasy_origins/powers/stalker.json create mode 100644 src/data/fantasy_origins/powers/switcheroo.json diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..af811d2 --- /dev/null +++ b/build.sh @@ -0,0 +1,4 @@ +#/bin/sh + +7z a fantasy_origins.zip ./src/* +mv fantasy_origins.zip "$HOME/.var/app/org.prismlauncher.PrismLauncher/data/PrismLauncher/instances/Origins Workspace/.minecraft/mods/" diff --git a/src/data/fantasy_origins/origins/elf.json b/src/data/fantasy_origins/origins/elf.json index 46039bd..dc9f1ae 100644 --- a/src/data/fantasy_origins/origins/elf.json +++ b/src/data/fantasy_origins/origins/elf.json @@ -1,5 +1,6 @@ { "powers": [ + "fantasy_origins:bowmaster" ], "icon": { "item": "minecraft:bow" diff --git a/src/data/fantasy_origins/origins/kitsune.json b/src/data/fantasy_origins/origins/kitsune.json index 2197f25..987b842 100644 --- a/src/data/fantasy_origins/origins/kitsune.json +++ b/src/data/fantasy_origins/origins/kitsune.json @@ -1,5 +1,12 @@ { "powers": [ + "fantasy_origins:switcheroo", + "fantasy_origins:stalker", + "fantasy_origins:flammable", + "fantasy_origins:fox_diet", + "fantasy_origins:nine_lives", + "fantasy_origins:enemy_of_the_underworld", + "fantasy_origins:spirit_ancestry", "origins:fall_immunity", "origins:velvet_paws", "origins:no_shield" @@ -7,8 +14,8 @@ "icon": { "item": "minecraft:sweet_berries" }, - "order": 4, + "order": 0, "impact": 2, "name": "Kitsune", - "description": "DESCRIPTION" + "description": "Powerful forest tricksters, Kitsunes are masters of magic and deception." } diff --git a/src/data/fantasy_origins/powers/bowmaster.json b/src/data/fantasy_origins/powers/bowmaster.json new file mode 100644 index 0000000..197da78 --- /dev/null +++ b/src/data/fantasy_origins/powers/bowmaster.json @@ -0,0 +1,9 @@ +{ + "name": "Bowmaster", + "description": "Your shots are far more deadly.", + "type": "origins:modify_projectile_damage", + "modifier": { + "operation": "addition", + "value": 5.0 + } +} diff --git a/src/data/fantasy_origins/powers/enemy_of_the_underworld.json b/src/data/fantasy_origins/powers/enemy_of_the_underworld.json new file mode 100644 index 0000000..e40050f --- /dev/null +++ b/src/data/fantasy_origins/powers/enemy_of_the_underworld.json @@ -0,0 +1,9 @@ +{ + "type": "origins:disable_regen", + "name": "Enemy of the Underworld", + "description": "The malicious forces of the Nether suppress your natural regeneration.", + "condition": { + "type": "origins:dimension", + "dimension": "minecraft:the_nether" + } +} diff --git a/src/data/fantasy_origins/powers/flammable.json b/src/data/fantasy_origins/powers/flammable.json new file mode 100644 index 0000000..91b8e6c --- /dev/null +++ b/src/data/fantasy_origins/powers/flammable.json @@ -0,0 +1,14 @@ +{ + "type": "origins:modify_damage_taken", + "name": "Flammable", + "description": "Your fur is highly flammable, making fire extremely dangerous.", + "damage_condition": { + "type": "origins:in_tag", + "tag": "minecraft:is_fire" + }, + "modifier": { + "name": "Vulnerable to fire", + "operation": "addition", + "value": 2.0 + } +} diff --git a/src/data/fantasy_origins/powers/fox_diet.json b/src/data/fantasy_origins/powers/fox_diet.json new file mode 100644 index 0000000..c5dd2f3 --- /dev/null +++ b/src/data/fantasy_origins/powers/fox_diet.json @@ -0,0 +1,47 @@ +{ + "type": "origins:prevent_item_use", + "name": "Fox Diet", + "description": "You can only eat meat, honey, and sweet berries.", + "item_condition": { + "type": "origins:and", + "conditions": [ + { + "type": "origins:or", + "conditions": [ + { + "type": "origins:ingredient", + "ingredient": { + "tag": "origins:meat" + } + }, + { + "type": "origins:meat" + }, + { + "type": "origins:ingredient", + "ingredient": { + "item": "minecraft:sweet_berries" + } + }, + { + "type": "origins:ingredient", + "ingredient": { + "item": "minecraft:honey_bottle" + } + } + ], + "inverted": true + }, + { + "type": "origins:food" + }, + { + "type": "origins:ingredient", + "ingredient": { + "tag": "origins:ignore_diet" + }, + "inverted": true + } + ] + } +} diff --git a/src/data/fantasy_origins/powers/nine_lives.json b/src/data/fantasy_origins/powers/nine_lives.json new file mode 100644 index 0000000..fde5eb8 --- /dev/null +++ b/src/data/fantasy_origins/powers/nine_lives.json @@ -0,0 +1,11 @@ +{ + "type": "origins:attribute", + "name": "Nine Tails, Nine Lives", + "description": "You only have 9 hearts of health, one for each tail.", + "modifier": { + "name": "Nine tails health reduction", + "attribute": "minecraft:generic.max_health", + "value": -2.0, + "operation": "addition" + } +} diff --git a/src/data/fantasy_origins/powers/spirit_ancestry.json b/src/data/fantasy_origins/powers/spirit_ancestry.json new file mode 100644 index 0000000..6f49e8e --- /dev/null +++ b/src/data/fantasy_origins/powers/spirit_ancestry.json @@ -0,0 +1,14 @@ +{ + "type": "origins:modify_damage_taken", + "name": "Spirit Ancestry", + "description": "Your spiritual nature provides some protection against magic.", + "damage_condition": { + "type": "origins:in_tag", + "tag": "minecraft:witch_resistant_to" + }, + "modifier": { + "name": "Resistant to magic", + "operation": "multiply_base_multiplicative", + "value": -0.334 + } +} diff --git a/src/data/fantasy_origins/powers/stalker.json b/src/data/fantasy_origins/powers/stalker.json new file mode 100644 index 0000000..a25681e --- /dev/null +++ b/src/data/fantasy_origins/powers/stalker.json @@ -0,0 +1,132 @@ +{ + "type": "origins:multiple", + "name": "Stalker", + "description": "You can turn invisible and see every mob through walls.", + "activate": { + "type": "origins:active_self", + "key": { + "key": "key.origins.secondary_active" + }, + "hud_render": { + "should_render": false + }, + "condition": { + "type": "origins:resource", + "resource": "*:stalker_cooldown", + "comparison": "==", + "compare_to": 1200 + }, + "entity_action": { + "type": "origins:and", + "actions": [ + { + "type": "origins:change_resource", + "resource": "*:stalker_enabled", + "change": 1, + "operation": "set" + }, + { + "type": "origins:play_sound", + "sound": "minecraft:entity.fox.sniff" + } + ] + } + }, + "enabled": { + "type": "origins:resource", + "min": 0, + "max": 1, + "start_value": 0, + "hud_render": { + "should_render": false + } + }, + "disable": { + "type": "origins:action_over_time", + "interval": 1, + "entity_action": { + "type": "origins:change_resource", + "resource": "*:stalker_enabled", + "operation": "set", + "change": 0 + }, + "condition": { + "type": "origins:resource", + "resource": "*:stalker_cooldown", + "comparison": "==", + "compare_to": 0 + } + }, + "cooldown": { + "type": "origins:resource", + "min": 0, + "max": 1200, + "start_value": 0, + "hud_render": { + "should_render": true, + "bar_index": 4, + "icon_index": 4, + "condition": { + "type": "origins:resource", + "resource": "*:stalker_cooldown", + "comparison": "!=", + "compare_to": 1200 + } + }, + "min_action": { + "type": "origins:change_resource", + "resource": "*:stalker_cooldown", + "change": 0, + "operation": "set" + } + }, + "drain": { + "type": "origins:action_over_time", + "interval": 1, + "entity_action": { + "type": "origins:change_resource", + "resource": "*:stalker_cooldown", + "change": -3 + }, + "condition": { + "type": "origins:resource", + "resource": "*:stalker_enabled", + "comparison": "==", + "compare_to": 1 + } + }, + "restore": { + "type": "origins:action_over_time", + "interval": 1, + "entity_action": { + "type": "origins:change_resource", + "resource": "*:stalker_cooldown", + "change": 1 + }, + "condition": { + "type": "origins:resource", + "resource": "*:stalker_enabled", + "comparison": "==", + "compare_to": 0 + } + }, + "invisibility": { + "type": "origins:invisibility", + "render_armor": false, + "condition": { + "type": "origins:resource", + "resource": "*:stalker_enabled", + "comparison": "==", + "compare_to": 1 + } + }, + "highlight": { + "type": "origins:entity_glow", + "condition": { + "type": "origins:resource", + "resource": "*:stalker_enabled", + "comparison": "==", + "compare_to": 1 + } + } +} diff --git a/src/data/fantasy_origins/powers/switcheroo.json b/src/data/fantasy_origins/powers/switcheroo.json new file mode 100644 index 0000000..e2790a1 --- /dev/null +++ b/src/data/fantasy_origins/powers/switcheroo.json @@ -0,0 +1,93 @@ +{ + "type": "origins:active_self", + "name": "Switcheroo", + "description": "You are able to switch places with any entity.", + "entity_action": { + "type": "origins:raycast", + "distance": 64, + "block": false, + "entity": true, + "shape_type": "visual", + "fluid_handling": "none", + "bientity_action": { + "type": "origins:and", + "actions": [ + { + "type": "origins:actor_action", + "action": { + "type": "origins:execute_command", + "command": "summon minecraft:armor_stand ~ ~ ~ {Invisible:1b,Invulnerable:1b,Tags:[\"switcherooEntity\",\"switcherooActor\"]}" + } + }, + { + "type": "origins:target_action", + "action": { + "type": "origins:execute_command", + "command": "summon minecraft:armor_stand ~ ~ ~ {Invisible:1b,Invulnerable:1b,Tags:[\"switcherooEntity\",\"switcherooTarget\"]}" + } + }, + { + "type": "origins:actor_action", + "action": { + "type": "origins:execute_command", + "command": "execute at @e[tag=switcherooTarget] run tp @s ~ ~ ~" + } + }, + { + "type": "origins:target_action", + "action": { + "type": "origins:execute_command", + "command": "execute at @e[tag=switcherooActor] run tp @s ~ ~ ~" + } + }, + { + "type": "origins:actor_action", + "action": { + "type": "origins:execute_command", + "command": "kill @e[tag=switcherooEntity]" + } + }, + { + "type": "origins:actor_action", + "action": { + "type": "origins:play_sound", + "sound": "minecraft:entity.fox.teleport" + } + }, + { + "type": "origins:target_action", + "action": { + "type": "origins:play_sound", + "sound": "minecraft:entity.fox.teleport" + } + } + ] + } + }, + "cooldown": 600, + "hud_render": { + "should_render": true, + "bar_index": 6, + "icon_index": 6 + }, + "key": { + "key": "key.origins.primary_active", + "continuous": false + }, + "condition": { + "type": "origins:raycast", + "distance": 64, + "block": false, + "entity": true, + "shape_type": "visual", + "fluid_handling": "none", + "hit_bientity_condition": { + "type": "origins:target_condition", + "condition": { + "type": "origins:entity_type", + "entity_type": "minecraft:end_crystal", + "inverted": true + } + } + } +}