partial implementation of self transfiguration ability

This commit is contained in:
CosmoOrSth
2024-01-21 20:26:36 +05:30
parent a2865402c8
commit feae5e5f14
7 changed files with 89 additions and 47 deletions

View File

@@ -1,6 +1,11 @@
{
"powers": [
"terraoriginum:demon_powers/self_transfiguration"
"terraoriginum:demon-powers/self_transfiguration1",
"terraoriginum:demon-powers/self_transfiguration2",
"terraoriginum:demon-powers/self_transfiguration3",
"terraoriginum:spirit-powers/ectoplasm",
"terraoriginum:spirit-powers/ectodiff",
"terraoriginum:spirit-powers/lackofectodmg"
],
"icon": "minecraft:bone",
"order": 1002,

View File

@@ -0,0 +1,15 @@
{
"type": "origins:toggle",
"active_by_default": false,
"key": {
"key": "key.origins.primary_active",
"continuous": false
},
"retain_state": false,
"condition": {
"type": "origins:resource",
"resource": "terraoriginum:spirit-powers/ectoplasm",
"comparison": ">=",
"compare_to": 1
}
}

View File

@@ -0,0 +1,41 @@
{
"type": "origins:active_self",
"hidden": true,
"entity_action": {
"type": "origins:and",
"actions": [
{
"type": "origins:apply_effect",
"effect": {
"effect": "minecraft:strength",
"duration": 20,
"amplifier": 1
}
},
{
"type": "origins:apply_effect",
"effect": {
"effect": "minecraft:speed",
"duration": 20,
"amplifier": 1
}
},
{
"type": "origins:apply_effect",
"effect": {
"effect": "minecraft:resistance",
"duration": 20,
"amplifier": 1
}
},
{
"type": "origins:exhaust",
"amount": 2
}
]
},
"condition": {
"type": "origins:power_active",
"power": "terraoriginum:demon-powers/self_transfiguration1"
}
}

View File

@@ -0,0 +1,27 @@
{
"type": "origins:action_over_time",
"interval": 20,
"hidden": true,
"entity_action": {
"type": "origins:if_else_list",
"actions": [
{
"condition": {
"type": "origins:power_active",
"power": "terraoriginum:demon-powers/self_transfiguration1"
},
"action": {
"type": "origins:and",
"actions": [
{
"type": "origins:change_resource",
"resource": "terraoriginum:spirit-powers/ectoplasm",
"change": -9,
"operation": "add"
}
]
}
}
]
}
}

View File

@@ -1,46 +0,0 @@
{
"type": "origins:active_self",
"entity_action": {
"type": "origins:and",
"actions": [
{
"type": "origins:apply_effect",
"effect": {
"effect": "minecraft:strength",
"duration": 1200,
"amplifier": 1
}
},
{
"type": "origins:apply_effect",
"effect": {
"effect": "minecraft:speed",
"duration": 1200,
"amplifier": 1
}
},
{
"type": "origins:apply_effect",
"effect": {
"effect": "minecraft:saturation",
"duration": 100
}
},
{
"type": "origins:apply_effect",
"effect": {
"effect": "minecraft:regeneration",
"duration": 1200,
"amplifier": 1
}
},
{
"type": "origins:exhaust",
"amount": 2
}
]
},
"cooldown": 2200,
"key": "primary"
}