Skip to content

Commit

Permalink
Update powers
Browse files Browse the repository at this point in the history
  • Loading branch information
latokike authored Feb 6, 2022
1 parent d92b33c commit e8126a6
Show file tree
Hide file tree
Showing 13 changed files with 478 additions and 104 deletions.
6 changes: 3 additions & 3 deletions src/main/resources/data/latoorigins/powers/arcane_skin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "origins:model_color",
"red": 0.05,
"green": 0.25,
"blue": 0.25,
"red": 0.4,
"green": 0.45,
"blue": 0.7,
"alpha": 1
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
"type": "origins:in_tag",
"tag": "latoorigins:slime"
}
}
}
86 changes: 30 additions & 56 deletions src/main/resources/data/latoorigins/powers/grass_graze.json
Original file line number Diff line number Diff line change
@@ -1,62 +1,36 @@
{
"type": "origins:active_self",
"type": "origins:action_on_block_use",
"entity_action": {
"type": "origins:raycast",
"distance": 8.0,
"block_action": {
"type": "origins:set_block",
"block": "minecraft:dirt"
},
"bientity_condition": {
"type": "origins:actor_condition",
"condition": {
"type": "origins:and",
"conditions": [
{
"type": "origins:raycast",
"distance": 8.0,
"block_condition": {
"type": "origins:in_tag",
"tag": "latoorigins:edible"
}
},
{
"type": "origins:equipped_item",
"equipment_slot": "mainhand",
"item_condition": {
"type": "origins:empty"
}
}
]
"type": "origins:and",
"actions": [
{
"type": "origins:feed",
"food": 2,
"saturation": 1.0
},
{
"type": "origins:swing_hand",
"hand": "MAIN_HAND"
},
{
"type": "origins:play_sound",
"sound": "minecraft:block.grass.break",
"pitch": 1
}
},
"bientity_action": {
"type": "origins:actor_action",
"action": {
"type": "origins:and",
"actions": [
{
"type": "origins:feed",
"food": 7,
"saturation": 0.0
},
{
"type": "origins:swing_hand",
"hand": "MAIN_HAND"
},
{
"type": "origins:play_sound",
"sound": "minecraft:block.grass.break",
"pitch": 0.4
}
]
}
}
]
},
"item_condition": {
"type": "origins:empty"
},
"hands": [
"main_hand"
],
"block_action": {
"type": "origins:set_block",
"block": "minecraft:dirt"
},
"cooldown": 300,
"key": "key.use",
"hud_render": {
"sprite_location": "latoorigins:textures/gui/nothing.png",
"bar_index": 6
"block_condition": {
"type": "origins:in_tag",
"tag": "latoorigins:edible"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"category": "plains"
},
"attribute": "generic.attack_damage",
"value": 2.0,
"value": 0.75,
"operation": "multiply_total"
}
}
8 changes: 5 additions & 3 deletions src/main/resources/data/latoorigins/powers/iron_diet.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"type": "origins:active_self",
"key": {
"key": "key.use"
"key": "key.use",
"continuous": true
},
"hud_render": {
"should_render": false
},
"cooldown": 10,
"cooldown": 3,
"entity_action": {
"type": "origins:and",
"actions": [
Expand Down Expand Up @@ -43,7 +44,8 @@
}
},
{
"type": "origins:sneaking"
"type": "origins:sneaking",
"inverted": true
}
]
}
Expand Down
148 changes: 140 additions & 8 deletions src/main/resources/data/latoorigins/powers/not_solid.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,7 @@
{
"type": "origins:spawn_entity",
"entity_type": "minecraft:slime",
"tag": "{Size:3,PersistenceRequired:1,Health:20.0f}",
"entity_action": {
"type": "origins:grant_power",
"power": "latoorigins:rideable_slime",
"source": "latoorigins:slimeeq"
}
"tag": "{Size:3,PersistenceRequired:1,Health:20.0f}"
},
{
"type": "origins:damage",
Expand All @@ -68,7 +63,7 @@
}
]
},
"chance": 0.00001
"chance": 0.1
},
"cooldown": 0
},
Expand All @@ -79,7 +74,144 @@
},
"modifier": {
"operation": "multiply_base",
"value": 1.0
"value": 1.5
}
},
"slime_healer": {
"type": "origins:action_on_entity_use",
"bientity_action": {
"type": "origins:and",
"actions": [
{
"type": "origins:target_action",
"action": {
"type": "origins:and",
"actions": [
{
"type": "origins:grant_power",
"power": "latoorigins:slimeeq_friend",
"source": "latoorigins:slimeeq"
},
{
"type": "origins:grant_power",
"power": "latoorigins:rideable_slime",
"source": "latoorigins:slimeeq"
},
{
"type": "origins:grant_power",
"power": "latoorigins:rideable_slime_dummy",
"source": "latoorigins:slimeeq"
},
{
"type": "origins:heal",
"amount": 3
}
]
}
},
{
"type": "origins:actor_action",
"action": {
"type": "origins:and",
"actions": [
{
"type": "origins:equipped_item_action",
"equipment_slot": "mainhand",
"action": {
"type": "origins:consume",
"amount": 1
}
},
{
"type": "origins:swing_hand",
"hand": "MAIN_HAND"
},
{
"type": "origins:play_sound",
"sound": "minecraft:entity.slime.squish"
}
]
}
}
]
},
"item_condition": {
"type": "origins:ingredient",
"ingredient": {
"item": "slime_ball"
}
},
"bientity_condition": {
"type": "origins:and",
"conditions": [
{
"type": "origins:target_condition",
"condition": {
"type": "origins:entity_type",
"entity_type": "minecraft:slime"
}
},
{
"type": "origins:actor_condition",
"condition": {
"type": "origins:sneaking"
}
}
]
}
},
"sugar_consumption": {
"type": "origins:active_self",
"entity_action": {
"type": "origins:and",
"actions": [
{
"type": "origins:equipped_item_action",
"equipment_slot": "mainhand",
"action": {
"type": "origins:consume",
"amount": 1
}
},
{
"type": "origins:feed",
"food": 0.0,
"saturation": 0.1
},
{
"type": "origins:play_sound",
"sound": "minecraft:entity.player.burp"
},
{
"type": "origins:apply_effect",
"effect": {
"effect": "minecraft:speed",
"duration": 100,
"amplifier": 0,
"is_ambient": true,
"show_particles": false,
"show_icon": false
}
}
]
},
"cooldown": 3,
"hud_render": {
"should_render": false
},
"key": {
"key": "key.use",
"continuous": true
},
"condition": {
"type": "origins:equipped_item",
"equipment_slot": "mainhand",
"item_condition": {
"type": "origins:ingredient",
"ingredient": {
"item": "minecraft:sugar"
}
}
}
}
}
Loading

0 comments on commit e8126a6

Please sign in to comment.