changing keybinds
This commit is contained in:
698
build/resources/main/data/aspects/powers/bonemeal.json
Normal file
698
build/resources/main/data/aspects/powers/bonemeal.json
Normal file
@@ -0,0 +1,698 @@
|
||||
{
|
||||
"name": "Natural Growth",
|
||||
"description": "When you sneak and press the use button, you can grow the block you are looking at.",
|
||||
"badges": [
|
||||
{
|
||||
"sprite": "aspects:textures/gui/badge/check.png",
|
||||
"text": "Positive"
|
||||
}
|
||||
],
|
||||
"type": "origins:multiple",
|
||||
"bonemeal":
|
||||
{
|
||||
"type": "origins:action_on_block_use",
|
||||
"block_action":
|
||||
{
|
||||
"type": "origins:bonemeal",
|
||||
"effects": true
|
||||
},
|
||||
"condition":
|
||||
{
|
||||
"type": "origins:sneaking"
|
||||
}
|
||||
},
|
||||
"nether_wart":
|
||||
{
|
||||
"type": "origins:action_on_block_use",
|
||||
"block_action":
|
||||
{
|
||||
"type": "origins:if_else",
|
||||
"condition":
|
||||
{
|
||||
"type": "origins:and",
|
||||
"conditions":
|
||||
[
|
||||
{
|
||||
"type": "origins:block",
|
||||
"block": "nether_wart"
|
||||
},
|
||||
{
|
||||
"type": "origins:block_state",
|
||||
"property": "age",
|
||||
"comparison": "==",
|
||||
"compare_to": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"if_action":
|
||||
{
|
||||
"type": "origins:and",
|
||||
"actions":
|
||||
[
|
||||
{
|
||||
"type": "origins:execute_command",
|
||||
"command": "setblock ~ ~ ~ minecraft:nether_wart[age=3]",
|
||||
"permission_level": 4
|
||||
},
|
||||
{
|
||||
"type": "origins:execute_command",
|
||||
"command": "particle minecraft:composter ~ ~ ~ .3 .3 .3 0 10 normal",
|
||||
"permission_level": 4
|
||||
},
|
||||
{
|
||||
"type": "origins:execute_command",
|
||||
"command": "playsound minecraft:item.bone_meal.use player @a[distance=..32] ~ ~ ~ .5 1",
|
||||
"permission_level": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"else_action":
|
||||
{
|
||||
"type": "origins:if_else",
|
||||
"condition":
|
||||
{
|
||||
"type": "origins:and",
|
||||
"conditions":
|
||||
[
|
||||
{
|
||||
"type": "origins:block",
|
||||
"block": "nether_wart"
|
||||
},
|
||||
{
|
||||
"type": "origins:block_state",
|
||||
"property": "age",
|
||||
"comparison": "==",
|
||||
"compare_to": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"if_action":
|
||||
{
|
||||
"type": "origins:and",
|
||||
"actions":
|
||||
[
|
||||
{
|
||||
"type": "origins:execute_command",
|
||||
"command": "setblock ~ ~ ~ minecraft:nether_wart[age=3]",
|
||||
"permission_level": 4
|
||||
},
|
||||
{
|
||||
"type": "origins:execute_command",
|
||||
"command": "particle minecraft:composter ~ ~ ~ .3 .3 .3 0 10 normal",
|
||||
"permission_level": 4
|
||||
},
|
||||
{
|
||||
"type": "origins:execute_command",
|
||||
"command": "playsound minecraft:item.bone_meal.use player @a[distance=..32] ~ ~ ~ .5 1",
|
||||
"permission_level": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"else_action":
|
||||
{
|
||||
"type": "origins:if_else",
|
||||
"condition":
|
||||
{
|
||||
"type": "origins:and",
|
||||
"conditions":
|
||||
[
|
||||
{
|
||||
"type": "origins:block",
|
||||
"block": "nether_wart"
|
||||
},
|
||||
{
|
||||
"type": "origins:block_state",
|
||||
"property": "age",
|
||||
"comparison": "==",
|
||||
"compare_to": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"if_action":
|
||||
{
|
||||
"type": "origins:and",
|
||||
"actions":
|
||||
[
|
||||
{
|
||||
"type": "origins:execute_command",
|
||||
"command": "setblock ~ ~ ~ minecraft:nether_wart[age=1]",
|
||||
"permission_level": 4
|
||||
},
|
||||
{
|
||||
"type": "origins:execute_command",
|
||||
"command": "particle minecraft:composter ~ ~ ~ .3 .3 .3 0 10 normal",
|
||||
"permission_level": 4
|
||||
},
|
||||
{
|
||||
"type": "origins:execute_command",
|
||||
"command": "playsound minecraft:item.bone_meal.use player @a[distance=..32] ~ ~ ~ .5 1",
|
||||
"permission_level": 4
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"block_condition":
|
||||
{
|
||||
"type": "origins:block",
|
||||
"block": "nether_wart"
|
||||
},
|
||||
"condition":
|
||||
{
|
||||
"type": "origins:sneaking"
|
||||
}
|
||||
},
|
||||
"sugarcane":
|
||||
{
|
||||
"type": "origins:action_on_block_use",
|
||||
"block_action":
|
||||
{
|
||||
"type": "origins:and",
|
||||
"actions":
|
||||
[
|
||||
{
|
||||
"type": "origins:execute_command",
|
||||
"command": "particle minecraft:composter ~ ~ ~ .3 .3 .3 0 10 normal",
|
||||
"permission_level": 4
|
||||
},
|
||||
{
|
||||
"type": "origins:execute_command",
|
||||
"command": "playsound minecraft:item.bone_meal.use player @a[distance=..32] ~ ~ ~ .5 1",
|
||||
"permission_level": 4
|
||||
},
|
||||
{
|
||||
"type": "origins:offset",
|
||||
"action":
|
||||
{
|
||||
"type": "origins:set_block",
|
||||
"block": "sugar_cane"
|
||||
},
|
||||
"y": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"block_condition":
|
||||
{
|
||||
"type": "origins:and",
|
||||
"conditions":
|
||||
[
|
||||
{
|
||||
"type": "origins:block",
|
||||
"block": "sugar_cane"
|
||||
},
|
||||
{
|
||||
"type": "origins:offset",
|
||||
"condition":
|
||||
{
|
||||
"type": "origins:block",
|
||||
"block": "air"
|
||||
},
|
||||
"y": 1
|
||||
},
|
||||
{
|
||||
"type": "origins:offset",
|
||||
"condition":
|
||||
{
|
||||
"inverted": true,
|
||||
"type": "origins:block",
|
||||
"block": "sugar_cane"
|
||||
},
|
||||
"y": -2
|
||||
}
|
||||
]
|
||||
},
|
||||
"condition":
|
||||
{
|
||||
"type": "origins:sneaking"
|
||||
}
|
||||
},
|
||||
"cactus":
|
||||
{
|
||||
"type": "origins:action_on_block_use",
|
||||
"block_action":
|
||||
{
|
||||
"type": "origins:and",
|
||||
"actions":
|
||||
[
|
||||
{
|
||||
"type": "origins:execute_command",
|
||||
"command": "particle minecraft:composter ~ ~ ~ .3 .3 .3 0 10 normal",
|
||||
"permission_level": 4
|
||||
},
|
||||
{
|
||||
"type": "origins:execute_command",
|
||||
"command": "playsound minecraft:item.bone_meal.use player @a[distance=..32] ~ ~ ~ .5 1",
|
||||
"permission_level": 4
|
||||
},
|
||||
{
|
||||
"type": "origins:offset",
|
||||
"action":
|
||||
{
|
||||
"type": "origins:set_block",
|
||||
"block": "cactus"
|
||||
},
|
||||
"y": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"block_condition":
|
||||
{
|
||||
"type": "origins:and",
|
||||
"conditions":
|
||||
[
|
||||
{
|
||||
"type": "origins:block",
|
||||
"block": "cactus"
|
||||
},
|
||||
{
|
||||
"type": "origins:offset",
|
||||
"condition":
|
||||
{
|
||||
"type": "origins:block",
|
||||
"block": "air"
|
||||
},
|
||||
"y": 1
|
||||
},
|
||||
{
|
||||
"type": "origins:offset",
|
||||
"condition":
|
||||
{
|
||||
"inverted": true,
|
||||
"type": "origins:block",
|
||||
"block": "cactus"
|
||||
},
|
||||
"y": -2
|
||||
}
|
||||
]
|
||||
},
|
||||
"condition":
|
||||
{
|
||||
"type": "origins:sneaking"
|
||||
}
|
||||
},
|
||||
"pumpkin":
|
||||
{
|
||||
"type": "origins:action_on_block_use",
|
||||
"block_action":
|
||||
{
|
||||
"type": "origins:and",
|
||||
"actions":
|
||||
[
|
||||
{
|
||||
"type": "origins:execute_command",
|
||||
"command": "particle minecraft:composter ~ ~ ~ .3 .3 .3 0 10 normal",
|
||||
"permission_level": 4
|
||||
},
|
||||
{
|
||||
"type": "origins:execute_command",
|
||||
"command": "playsound minecraft:item.bone_meal.use player @a[distance=..32] ~ ~ ~ .5 1",
|
||||
"permission_level": 4
|
||||
},
|
||||
{
|
||||
"type": "origins:choice",
|
||||
"actions":
|
||||
[
|
||||
{
|
||||
"weight": 1,
|
||||
"element":
|
||||
{
|
||||
"type": "origins:offset",
|
||||
"action":
|
||||
{
|
||||
"type": "origins:if_else",
|
||||
"condition":
|
||||
{
|
||||
"type": "origins:and",
|
||||
"conditions":
|
||||
[
|
||||
{
|
||||
"type": "origins:block",
|
||||
"block": "air"
|
||||
},
|
||||
{
|
||||
"type": "origins:offset",
|
||||
"condition":
|
||||
{
|
||||
"type": "origins:in_tag",
|
||||
"tag": "minecraft:dirt"
|
||||
},
|
||||
"y": -1
|
||||
}
|
||||
]
|
||||
},
|
||||
"if_action":
|
||||
{
|
||||
"type": "origins:set_block",
|
||||
"block": "pumpkin"
|
||||
}
|
||||
},
|
||||
"x": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"weight": 1,
|
||||
"element":
|
||||
{
|
||||
"type": "origins:offset",
|
||||
"action":
|
||||
{
|
||||
"type": "origins:if_else",
|
||||
"condition":
|
||||
{
|
||||
"type": "origins:and",
|
||||
"conditions":
|
||||
[
|
||||
{
|
||||
"type": "origins:block",
|
||||
"block": "air"
|
||||
},
|
||||
{
|
||||
"type": "origins:offset",
|
||||
"condition":
|
||||
{
|
||||
"type": "origins:in_tag",
|
||||
"tag": "minecraft:dirt"
|
||||
},
|
||||
"y": -1
|
||||
}
|
||||
]
|
||||
},
|
||||
"if_action":
|
||||
{
|
||||
"type": "origins:set_block",
|
||||
"block": "pumpkin"
|
||||
}
|
||||
},
|
||||
"x": -1
|
||||
}
|
||||
},
|
||||
{
|
||||
"weight": 1,
|
||||
"element":
|
||||
{
|
||||
"type": "origins:offset",
|
||||
"action":
|
||||
{
|
||||
"type": "origins:if_else",
|
||||
"condition":
|
||||
{
|
||||
"type": "origins:and",
|
||||
"conditions":
|
||||
[
|
||||
{
|
||||
"type": "origins:block",
|
||||
"block": "air"
|
||||
},
|
||||
{
|
||||
"type": "origins:offset",
|
||||
"condition":
|
||||
{
|
||||
"type": "origins:in_tag",
|
||||
"tag": "minecraft:dirt"
|
||||
},
|
||||
"y": -1
|
||||
}
|
||||
]
|
||||
},
|
||||
"if_action":
|
||||
{
|
||||
"type": "origins:set_block",
|
||||
"block": "pumpkin"
|
||||
}
|
||||
},
|
||||
"z": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"weight": 1,
|
||||
"element":
|
||||
{
|
||||
"type": "origins:offset",
|
||||
"action":
|
||||
{
|
||||
"type": "origins:if_else",
|
||||
"condition":
|
||||
{
|
||||
"type": "origins:and",
|
||||
"conditions":
|
||||
[
|
||||
{
|
||||
"type": "origins:block",
|
||||
"block": "air"
|
||||
},
|
||||
{
|
||||
"type": "origins:offset",
|
||||
"condition":
|
||||
{
|
||||
"type": "origins:in_tag",
|
||||
"tag": "minecraft:dirt"
|
||||
},
|
||||
"y": -1
|
||||
}
|
||||
]
|
||||
},
|
||||
"if_action":
|
||||
{
|
||||
"type": "origins:set_block",
|
||||
"block": "pumpkin"
|
||||
}
|
||||
},
|
||||
"z": -1
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"block_condition":
|
||||
{
|
||||
"type": "origins:and",
|
||||
"conditions":
|
||||
[
|
||||
{
|
||||
"type": "origins:block",
|
||||
"block": "pumpkin_stem"
|
||||
},
|
||||
{
|
||||
"type": "origins:block_state",
|
||||
"property": "age",
|
||||
"comparison": "==",
|
||||
"compare_to": 7
|
||||
},
|
||||
{
|
||||
"type": "origins:adjacent",
|
||||
"adjacent_condition":
|
||||
{
|
||||
"type": "origins:block",
|
||||
"block": "pumpkin"
|
||||
},
|
||||
"comparison": "==",
|
||||
"compare_to": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"melon":
|
||||
{
|
||||
"type": "origins:action_on_block_use",
|
||||
"block_action":
|
||||
{
|
||||
"type": "origins:and",
|
||||
"actions":
|
||||
[
|
||||
{
|
||||
"type": "origins:execute_command",
|
||||
"command": "particle minecraft:composter ~ ~ ~ .3 .3 .3 0 10 normal",
|
||||
"permission_level": 4
|
||||
},
|
||||
{
|
||||
"type": "origins:execute_command",
|
||||
"command": "playsound minecraft:item.bone_meal.use player @a[distance=..32] ~ ~ ~ .5 1",
|
||||
"permission_level": 4
|
||||
},
|
||||
{
|
||||
"type": "origins:choice",
|
||||
"actions":
|
||||
[
|
||||
{
|
||||
"weight": 1,
|
||||
"element":
|
||||
{
|
||||
"type": "origins:offset",
|
||||
"action":
|
||||
{
|
||||
"type": "origins:if_else",
|
||||
"condition":
|
||||
{
|
||||
"type": "origins:and",
|
||||
"conditions":
|
||||
[
|
||||
{
|
||||
"type": "origins:block",
|
||||
"block": "air"
|
||||
},
|
||||
{
|
||||
"type": "origins:offset",
|
||||
"condition":
|
||||
{
|
||||
"type": "origins:in_tag",
|
||||
"tag": "minecraft:dirt"
|
||||
},
|
||||
"y": -1
|
||||
}
|
||||
]
|
||||
},
|
||||
"if_action":
|
||||
{
|
||||
"type": "origins:set_block",
|
||||
"block": "melon"
|
||||
}
|
||||
},
|
||||
"x": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"weight": 1,
|
||||
"element":
|
||||
{
|
||||
"type": "origins:offset",
|
||||
"action":
|
||||
{
|
||||
"type": "origins:if_else",
|
||||
"condition":
|
||||
{
|
||||
"type": "origins:and",
|
||||
"conditions":
|
||||
[
|
||||
{
|
||||
"type": "origins:block",
|
||||
"block": "air"
|
||||
},
|
||||
{
|
||||
"type": "origins:offset",
|
||||
"condition":
|
||||
{
|
||||
"type": "origins:in_tag",
|
||||
"tag": "minecraft:dirt"
|
||||
},
|
||||
"y": -1
|
||||
}
|
||||
]
|
||||
},
|
||||
"if_action":
|
||||
{
|
||||
"type": "origins:set_block",
|
||||
"block": "melon"
|
||||
}
|
||||
},
|
||||
"x": -1
|
||||
}
|
||||
},
|
||||
{
|
||||
"weight": 1,
|
||||
"element":
|
||||
{
|
||||
"type": "origins:offset",
|
||||
"action":
|
||||
{
|
||||
"type": "origins:if_else",
|
||||
"condition":
|
||||
{
|
||||
"type": "origins:and",
|
||||
"conditions":
|
||||
[
|
||||
{
|
||||
"type": "origins:block",
|
||||
"block": "air"
|
||||
},
|
||||
{
|
||||
"type": "origins:offset",
|
||||
"condition":
|
||||
{
|
||||
"type": "origins:in_tag",
|
||||
"tag": "minecraft:dirt"
|
||||
},
|
||||
"y": -1
|
||||
}
|
||||
]
|
||||
},
|
||||
"if_action":
|
||||
{
|
||||
"type": "origins:set_block",
|
||||
"block": "melon"
|
||||
}
|
||||
},
|
||||
"z": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"weight": 1,
|
||||
"element":
|
||||
{
|
||||
"type": "origins:offset",
|
||||
"action":
|
||||
{
|
||||
"type": "origins:if_else",
|
||||
"condition":
|
||||
{
|
||||
"type": "origins:and",
|
||||
"conditions":
|
||||
[
|
||||
{
|
||||
"type": "origins:block",
|
||||
"block": "air"
|
||||
},
|
||||
{
|
||||
"type": "origins:offset",
|
||||
"condition":
|
||||
{
|
||||
"type": "origins:in_tag",
|
||||
"tag": "minecraft:dirt"
|
||||
},
|
||||
"y": -1
|
||||
}
|
||||
]
|
||||
},
|
||||
"if_action":
|
||||
{
|
||||
"type": "origins:set_block",
|
||||
"block": "melon"
|
||||
}
|
||||
},
|
||||
"z": -1
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"block_condition":
|
||||
{
|
||||
"type": "origins:and",
|
||||
"conditions":
|
||||
[
|
||||
{
|
||||
"type": "origins:block",
|
||||
"block": "melon_stem"
|
||||
},
|
||||
{
|
||||
"type": "origins:block_state",
|
||||
"property": "age",
|
||||
"comparison": "==",
|
||||
"compare_to": 7
|
||||
},
|
||||
{
|
||||
"type": "origins:adjacent",
|
||||
"adjacent_condition":
|
||||
{
|
||||
"type": "origins:block",
|
||||
"block": "melon"
|
||||
},
|
||||
"comparison": "==",
|
||||
"compare_to": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user