create spirit and damage type
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"replace": false,
|
"replace": false,
|
||||||
"origins": [
|
"origins": [
|
||||||
"terraoriginum:immortal_human",
|
"terraoriginum:spirit",
|
||||||
{
|
{
|
||||||
"condition": {
|
"condition": {
|
||||||
"type": "origins:equipped_item",
|
"type": "origins:equipped_item",
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"exhaustion": 0.1,
|
||||||
|
"message_id": "lack_of_ectoplasm",
|
||||||
|
"scaling": "never"
|
||||||
|
}
|
||||||
10
src/main/resources/data/terraoriginum/origins/spirit.json
Normal file
10
src/main/resources/data/terraoriginum/origins/spirit.json
Normal 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
|
||||||
|
}
|
||||||
@@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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"
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user