Updated Namespace
Integrated Resourcepack
This commit is contained in:
10
data/lzstools/advancement/recipes.json
Normal file
10
data/lzstools/advancement/recipes.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"criteria": {
|
||||
"requirement": {
|
||||
"trigger": "minecraft:tick"
|
||||
}
|
||||
},
|
||||
"rewards": {
|
||||
"function": "lzstools:recipes"
|
||||
}
|
||||
}
|
26
data/lzstools/advancement/visible/root.json
Normal file
26
data/lzstools/advancement/visible/root.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"display": {
|
||||
"icon": {
|
||||
"id": "minecraft:warped_fungus_on_a_stick",
|
||||
"components": {
|
||||
"minecraft:custom_model_data": {
|
||||
"strings": [
|
||||
"lzstools:wrench"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"title": "LZ's Build Things",
|
||||
"description": {
|
||||
"text": "Tools that you may find useful!"
|
||||
},
|
||||
"background": "minecraft:block/dirt",
|
||||
"show_toast": false,
|
||||
"announce_to_chat": false
|
||||
},
|
||||
"criteria": {
|
||||
"tick": {
|
||||
"trigger": "minecraft:tick"
|
||||
}
|
||||
}
|
||||
}
|
33
data/lzstools/advancement/visible/wrench.json
Normal file
33
data/lzstools/advancement/visible/wrench.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"display": {
|
||||
"icon": {
|
||||
"id": "minecraft:carrot_on_a_stick",
|
||||
"components": {
|
||||
"minecraft:custom_model_data": {
|
||||
"strings": [
|
||||
"lzstools:wrench",
|
||||
"lzstools:wrench_default"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"title": {
|
||||
"text": "Pivot, PIVOT!"
|
||||
},
|
||||
"description": {
|
||||
"text": "Craft a Block Wrench"
|
||||
},
|
||||
"show_toast": true,
|
||||
"announce_to_chat": true,
|
||||
"hidden": false
|
||||
},
|
||||
"parent": "lzstools:visible/root",
|
||||
"criteria": {
|
||||
"": {
|
||||
"trigger": "minecraft:recipe_crafted",
|
||||
"conditions": {
|
||||
"recipe_id": "wrench:wrench"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
1
data/lzstools/function/give/wrench.mcfunction
Normal file
1
data/lzstools/function/give/wrench.mcfunction
Normal file
@@ -0,0 +1 @@
|
||||
give @s minecraft:carrot_on_a_stick[minecraft:custom_name={"text":"Rotator Wrench","color":"aqua"},minecraft:lore=["Default"],minecraft:custom_model_data={strings:["lzstools:wrench","lzstools:wrench_default"]},minecraft:custom_data={lzstools:"wrench"},minecraft:unbreakable={},minecraft:enchantment_glint_override=false,minecraft:tooltip_display={hidden_components:["minecraft:unbreakable"]}]
|
6
data/lzstools/function/load.mcfunction
Normal file
6
data/lzstools/function/load.mcfunction
Normal file
@@ -0,0 +1,6 @@
|
||||
# Click Check
|
||||
scoreboard objectives add lz_click_check minecraft.used:minecraft.carrot_on_a_stick
|
||||
|
||||
# Wrench
|
||||
scoreboard objectives add lz_wrench_success dummy
|
||||
scoreboard objectives add lz_wrench_raycast dummy
|
6
data/lzstools/function/player.mcfunction
Normal file
6
data/lzstools/function/player.mcfunction
Normal file
@@ -0,0 +1,6 @@
|
||||
scoreboard players set @s lz_click_check 0
|
||||
|
||||
|
||||
# Wrench
|
||||
execute if predicate lzstools:wrench/mainhand run function wrench:wrench/rotate
|
||||
execute if predicate lzstools:wrench/offhand run function wrench:wrench/offhand
|
1
data/lzstools/function/recipes.mcfunction
Normal file
1
data/lzstools/function/recipes.mcfunction
Normal file
@@ -0,0 +1 @@
|
||||
recipe give @s wrench:wrench
|
2
data/lzstools/function/tick.mcfunction
Normal file
2
data/lzstools/function/tick.mcfunction
Normal file
@@ -0,0 +1,2 @@
|
||||
# Click Check
|
||||
execute as @a if score @s lz_click_check matches 1.. run function lzstools:player
|
4
data/lzstools/function/uninstall.mcfunction
Normal file
4
data/lzstools/function/uninstall.mcfunction
Normal file
@@ -0,0 +1,4 @@
|
||||
# Uninstall
|
||||
scoreboard objectives remove lz_click_check
|
||||
scoreboard objectives remove lz_wrench_success
|
||||
scoreboard objectives remove lz_wrench_raycast
|
18
data/lzstools/predicate/wrench/mainhand.json
Normal file
18
data/lzstools/predicate/wrench/mainhand.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"condition": "minecraft:any_of",
|
||||
"terms": [
|
||||
{
|
||||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"equipment": {
|
||||
"mainhand": {
|
||||
"predicates": {
|
||||
"minecraft:custom_data": "{lzstools:wrench}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
18
data/lzstools/predicate/wrench/offhand.json
Normal file
18
data/lzstools/predicate/wrench/offhand.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"condition": "minecraft:any_of",
|
||||
"terms": [
|
||||
{
|
||||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"equipment": {
|
||||
"offhand": {
|
||||
"predicates": {
|
||||
"minecraft:custom_data": "{lzstools:wrench}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user