create spirit and damage type

This commit is contained in:
Ryan
2024-01-20 16:17:25 +02:00
parent 133cbc60ed
commit 8d22b6a479
6 changed files with 95 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
{
"replace": false,
"origins": [
"terraoriginum:immortal_human",
"terraoriginum:spirit",
{
"condition": {
"type": "origins:equipped_item",

View File

@@ -0,0 +1,5 @@
{
"exhaustion": 0.1,
"message_id": "lack_of_ectoplasm",
"scaling": "never"
}

View File

@@ -0,0 +1,10 @@
{
"powers": [
"terraoriginum:spirit-powers/ectoplasm",
"terraoriginum:spirit-powers/ectodiff",
"terraoriginum:spirit-powers/lackofectodmg"
],
"icon": "minecraft:air",
"order": 1001,
"impact": 3
}

View File

@@ -0,0 +1,45 @@
{
"type": "origins:action_over_time",
"interval": 20,
"entity_action": {
"type": "origins:if_else_list",
"actions": [
{
"condition": {
"type": "origins:brightness",
"comparison": ">",
"compare_to": 0.17948718
},
"action": {
"type": "origins:and",
"actions": [
{
"type": "origins:change_resource",
"resource": "terraoriginum:spirit-powers/ectoplasm",
"change": -1,
"operation": "add"
}
]
}
},
{
"condition": {
"type": "origins:brightness",
"comparison": "<=",
"compare_to": 0.17948718
},
"action": {
"type": "origins:and",
"actions": [
{
"type": "origins:change_resource",
"resource": "terraoriginum:spirit-powers/ectoplasm",
"change": 2,
"operation": "add"
}
]
}
}
]
}
}

View File

@@ -0,0 +1,11 @@
{
"type": "origins:resource",
"min": 0,
"max": 200,
"start_value": 100,
"hud_render": {
"should_render": true,
"sprite_location": "origins:textures/gui/community/huang/resource_bar_01.png",
"bar_index": 5
}
}

View File

@@ -0,0 +1,23 @@
{
"type": "origins:action_over_time",
"interval": 20,
"entity_action": {
"type": "origins:if_else_list",
"actions": [
{
"condition": {
"type": "origins:resource",
"resource": "terraoriginum:spirit-powers/ectoplasm",
"comparison": "<",
"compare_to": 26
},
"action": {
"type": "origins:damage",
"amount": 1,
"damage_type": "terraoriginum:lack_of_ectoplasm"
}
}
]
}
}