Worked on Kitsune origin

This commit is contained in:
lisbiskup 2024-08-03 13:41:23 +02:00
parent 3b814279c8
commit 637427e103
11 changed files with 343 additions and 2 deletions

4
build.sh Executable file
View File

@ -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/"

View File

@ -1,5 +1,6 @@
{ {
"powers": [ "powers": [
"fantasy_origins:bowmaster"
], ],
"icon": { "icon": {
"item": "minecraft:bow" "item": "minecraft:bow"

View File

@ -1,5 +1,12 @@
{ {
"powers": [ "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:fall_immunity",
"origins:velvet_paws", "origins:velvet_paws",
"origins:no_shield" "origins:no_shield"
@ -7,8 +14,8 @@
"icon": { "icon": {
"item": "minecraft:sweet_berries" "item": "minecraft:sweet_berries"
}, },
"order": 4, "order": 0,
"impact": 2, "impact": 2,
"name": "Kitsune", "name": "Kitsune",
"description": "DESCRIPTION" "description": "Powerful forest tricksters, Kitsunes are masters of magic and deception."
} }

View File

@ -0,0 +1,9 @@
{
"name": "Bowmaster",
"description": "Your shots are far more deadly.",
"type": "origins:modify_projectile_damage",
"modifier": {
"operation": "addition",
"value": 5.0
}
}

View File

@ -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"
}
}

View File

@ -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
}
}

View File

@ -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
}
]
}
}

View File

@ -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"
}
}

View File

@ -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
}
}

View File

@ -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
}
}
}

View File

@ -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
}
}
}
}