Added Trowel
Fixed issue with wrench Organised tools into folders
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
{
|
||||
"display": {
|
||||
"icon": {
|
||||
"id": "minecraft:warped_fungus_on_a_stick",
|
||||
"id": "minecraft:carrot_on_a_stick",
|
||||
"components": {
|
||||
"minecraft:custom_model_data": {
|
||||
"strings": [
|
||||
"lzstools:wrench"
|
||||
"lzstools:wrench_default"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"title": "LZ's Build Things",
|
||||
"title": "LZ's Tools",
|
||||
"description": {
|
||||
"text": "Tools that you may find useful!"
|
||||
},
|
||||
"background": "minecraft:block/dirt",
|
||||
"background": "minecraft:block/deepslate_tiles",
|
||||
"show_toast": false,
|
||||
"announce_to_chat": false
|
||||
},
|
||||
|
32
data/lzstools/advancement/visible/trowel_diamond.json
Normal file
32
data/lzstools/advancement/visible/trowel_diamond.json
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"display": {
|
||||
"icon": {
|
||||
"id": "minecraft:carrot_on_a_stick",
|
||||
"components": {
|
||||
"minecraft:custom_model_data": {
|
||||
"strings": [
|
||||
"lzstools:trowel_diamond"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"title": {
|
||||
"text": "Trowel and error"
|
||||
},
|
||||
"description": {
|
||||
"text": "Craft a Diamond Trowel"
|
||||
},
|
||||
"show_toast": true,
|
||||
"announce_to_chat": false,
|
||||
"hidden": false
|
||||
},
|
||||
"parent": "lzstools:visible/trowel_iron",
|
||||
"criteria": {
|
||||
"": {
|
||||
"trigger": "minecraft:recipe_crafted",
|
||||
"conditions": {
|
||||
"recipe_id": "lzstools_trowel:diamond"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
32
data/lzstools/advancement/visible/trowel_iron.json
Normal file
32
data/lzstools/advancement/visible/trowel_iron.json
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"display": {
|
||||
"icon": {
|
||||
"id": "minecraft:carrot_on_a_stick",
|
||||
"components": {
|
||||
"minecraft:custom_model_data": {
|
||||
"strings": [
|
||||
"lzstools:trowel_iron"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"title": {
|
||||
"text": "It's a shovel for lil' you!"
|
||||
},
|
||||
"description": {
|
||||
"text": "Craft a Trowel"
|
||||
},
|
||||
"show_toast": true,
|
||||
"announce_to_chat": false,
|
||||
"hidden": false
|
||||
},
|
||||
"parent": "lzstools:visible/root",
|
||||
"criteria": {
|
||||
"": {
|
||||
"trigger": "minecraft:recipe_crafted",
|
||||
"conditions": {
|
||||
"recipe_id": "lzstools_trowel:iron"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,33 +1,32 @@
|
||||
{
|
||||
"display": {
|
||||
"icon": {
|
||||
"id": "minecraft:carrot_on_a_stick",
|
||||
"components": {
|
||||
"minecraft:custom_model_data": {
|
||||
"strings": [
|
||||
"lzstools:wrench",
|
||||
"lzstools:wrench_default"
|
||||
]
|
||||
"display": {
|
||||
"icon": {
|
||||
"id": "minecraft:carrot_on_a_stick",
|
||||
"components": {
|
||||
"minecraft:custom_model_data": {
|
||||
"strings": [
|
||||
"lzstools:wrench_default"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"title": {
|
||||
"text": "Pivot, PIVOT!"
|
||||
},
|
||||
"description": {
|
||||
"text": "Craft a Block Wrench"
|
||||
},
|
||||
"show_toast": true,
|
||||
"announce_to_chat": false,
|
||||
"hidden": false
|
||||
},
|
||||
"parent": "lzstools:visible/root",
|
||||
"criteria": {
|
||||
"": {
|
||||
"trigger": "minecraft:recipe_crafted",
|
||||
"conditions": {
|
||||
"recipe_id": "lzstools_wrench:wrench"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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/trowel_diamond.mcfunction
Normal file
1
data/lzstools/function/give/trowel_diamond.mcfunction
Normal file
@@ -0,0 +1 @@
|
||||
give @s minecraft:carrot_on_a_stick[minecraft:custom_name={"text":"Diamond Trowel","color":"aqua"},minecraft:custom_model_data={strings:["lzstools:trowel_diamond"]},minecraft:custom_data={"lzstools":["trowel","trowel_diamond"]}]
|
1
data/lzstools/function/give/trowel_iron.mcfunction
Normal file
1
data/lzstools/function/give/trowel_iron.mcfunction
Normal file
@@ -0,0 +1 @@
|
||||
give @s minecraft:carrot_on_a_stick[minecraft:custom_name={"text":"Iron Trowel","color":"aqua"},minecraft:custom_model_data={strings:["lzstools:trowel_iron"]},minecraft:custom_data={"lzstools":["trowel","trowel_iron"]}]
|
@@ -1 +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_default"]},minecraft:custom_data={lzstools:"wrench"},minecraft:unbreakable={},minecraft:enchantment_glint_override=false,minecraft:tooltip_display={hidden_components:["minecraft:unbreakable"]}]
|
||||
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_default"]},minecraft:custom_data={"lzstools":["wrench"]},minecraft:unbreakable={},minecraft:enchantment_glint_override=false,minecraft:tooltip_display={hidden_components:["minecraft:unbreakable"]}]
|
@@ -3,4 +3,15 @@ scoreboard objectives add lz_click_check minecraft.used:minecraft.carrot_on_a_st
|
||||
|
||||
# Wrench
|
||||
scoreboard objectives add lz_wrench_success dummy
|
||||
scoreboard objectives add lz_wrench_raycast dummy
|
||||
scoreboard objectives add lz_wrench_raycast dummy
|
||||
|
||||
# Trowel
|
||||
scoreboard objectives add lz_trowel_success dummy
|
||||
scoreboard objectives add lz_trowel_raycast dummy
|
||||
scoreboard objectives add lz_trowel_raycast_hit dummy
|
||||
scoreboard objectives add lz_trowel_block_length dummy
|
||||
scoreboard objectives add lz_chosen_block_check dummy
|
||||
scoreboard objectives add lz_trowel_unbreaking_check dummy
|
||||
scoreboard objectives add lz_trowel_unbreaking_chance dummy
|
||||
scoreboard objectives add lz_trowel_damage dummy
|
||||
scoreboard objectives add lz_trowel_max_damage dummy
|
@@ -2,5 +2,9 @@ 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
|
||||
execute if predicate lzstools:wrench/mainhand run function lzstools_wrench:wrench/rotate
|
||||
execute if predicate lzstools:wrench/offhand run function lzstools_wrench:wrench/offhand
|
||||
|
||||
# Trowel
|
||||
execute if predicate lzstools:trowel/mainhand run function lzstools_trowel:mainhand
|
||||
execute if predicate lzstools:trowel/offhand run function lzstools_trowel:offhand
|
@@ -1 +1,3 @@
|
||||
recipe give @s wrench:wrench
|
||||
recipe give @s lzstools_wrench:wrench
|
||||
recipe give @s lzstools_trowel:iron
|
||||
recipe give @s lzstools_trowel:diamond
|
17
data/lzstools/predicate/trowel/mainhand.json
Normal file
17
data/lzstools/predicate/trowel/mainhand.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"equipment": {
|
||||
"mainhand": {
|
||||
"predicates": {
|
||||
"minecraft:custom_data": {
|
||||
"lzstools": [
|
||||
"trowel"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
17
data/lzstools/predicate/trowel/offhand.json
Normal file
17
data/lzstools/predicate/trowel/offhand.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"equipment": {
|
||||
"offhand": {
|
||||
"predicates": {
|
||||
"minecraft:custom_data": {
|
||||
"lzstools": [
|
||||
"trowel"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
18
data/lzstools/predicate/unbreaking/mainhand/1.json
Normal file
18
data/lzstools/predicate/unbreaking/mainhand/1.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"equipment": {
|
||||
"mainhand": {
|
||||
"predicates": {
|
||||
"minecraft:enchantments": [
|
||||
{
|
||||
"enchantment": "minecraft:unbreaking",
|
||||
"levels": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
18
data/lzstools/predicate/unbreaking/mainhand/2.json
Normal file
18
data/lzstools/predicate/unbreaking/mainhand/2.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"equipment": {
|
||||
"mainhand": {
|
||||
"predicates": {
|
||||
"minecraft:enchantments": [
|
||||
{
|
||||
"enchantment": "minecraft:unbreaking",
|
||||
"levels": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
18
data/lzstools/predicate/unbreaking/mainhand/3.json
Normal file
18
data/lzstools/predicate/unbreaking/mainhand/3.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"equipment": {
|
||||
"mainhand": {
|
||||
"predicates": {
|
||||
"minecraft:enchantments": [
|
||||
{
|
||||
"enchantment": "minecraft:unbreaking",
|
||||
"levels": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
21
data/lzstools/predicate/unbreaking/mainhand/all.json
Normal file
21
data/lzstools/predicate/unbreaking/mainhand/all.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"equipment": {
|
||||
"mainhand": {
|
||||
"predicates": {
|
||||
"minecraft:enchantments": [
|
||||
{
|
||||
"enchantment": "minecraft:unbreaking",
|
||||
"levels": {
|
||||
"min": 1,
|
||||
"max": 3
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
18
data/lzstools/predicate/unbreaking/offhand/1.json
Normal file
18
data/lzstools/predicate/unbreaking/offhand/1.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"equipment": {
|
||||
"mainhand": {
|
||||
"predicates": {
|
||||
"minecraft:enchantments": [
|
||||
{
|
||||
"enchantment": "minecraft:unbreaking",
|
||||
"levels": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
18
data/lzstools/predicate/unbreaking/offhand/2.json
Normal file
18
data/lzstools/predicate/unbreaking/offhand/2.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"equipment": {
|
||||
"mainhand": {
|
||||
"predicates": {
|
||||
"minecraft:enchantments": [
|
||||
{
|
||||
"enchantment": "minecraft:unbreaking",
|
||||
"levels": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
18
data/lzstools/predicate/unbreaking/offhand/3.json
Normal file
18
data/lzstools/predicate/unbreaking/offhand/3.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"equipment": {
|
||||
"mainhand": {
|
||||
"predicates": {
|
||||
"minecraft:enchantments": [
|
||||
{
|
||||
"enchantment": "minecraft:unbreaking",
|
||||
"levels": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
21
data/lzstools/predicate/unbreaking/offhand/all.json
Normal file
21
data/lzstools/predicate/unbreaking/offhand/all.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"equipment": {
|
||||
"mainhand": {
|
||||
"predicates": {
|
||||
"minecraft:enchantments": [
|
||||
{
|
||||
"enchantment": "minecraft:unbreaking",
|
||||
"levels": {
|
||||
"min": 1,
|
||||
"max": 3
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,18 +1,17 @@
|
||||
{
|
||||
"condition": "minecraft:any_of",
|
||||
"terms": [
|
||||
{
|
||||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"equipment": {
|
||||
"mainhand": {
|
||||
"predicates": {
|
||||
"minecraft:custom_data": "{lzstools:wrench}"
|
||||
}
|
||||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"equipment": {
|
||||
"mainhand": {
|
||||
"predicates": {
|
||||
"minecraft:custom_data": {
|
||||
"lzstools": [
|
||||
"wrench"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,18 +1,17 @@
|
||||
{
|
||||
"condition": "minecraft:any_of",
|
||||
"terms": [
|
||||
{
|
||||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"equipment": {
|
||||
"offhand": {
|
||||
"predicates": {
|
||||
"minecraft:custom_data": "{lzstools:wrench}"
|
||||
}
|
||||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"equipment": {
|
||||
"offhand": {
|
||||
"predicates": {
|
||||
"minecraft:custom_data": {
|
||||
"lzstools": [
|
||||
"wrench"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
21
data/lzstools/tags/block/banners.json
Normal file
21
data/lzstools/tags/block/banners.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"replace": false,
|
||||
"values": [
|
||||
"minecraft:white_banner",
|
||||
"minecraft:orange_banner",
|
||||
"minecraft:magenta_banner",
|
||||
"minecraft:light_blue_banner",
|
||||
"minecraft:yellow_banner",
|
||||
"minecraft:lime_banner",
|
||||
"minecraft:pink_banner",
|
||||
"minecraft:gray_banner",
|
||||
"minecraft:light_gray_banner",
|
||||
"minecraft:cyan_banner",
|
||||
"minecraft:purple_banner",
|
||||
"minecraft:blue_banner",
|
||||
"minecraft:brown_banner",
|
||||
"minecraft:green_banner",
|
||||
"minecraft:red_banner",
|
||||
"minecraft:black_banner"
|
||||
]
|
||||
}
|
21
data/lzstools/tags/block/glazed_terracotta.json
Normal file
21
data/lzstools/tags/block/glazed_terracotta.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"replace": false,
|
||||
"values": [
|
||||
"minecraft:white_glazed_terracotta",
|
||||
"minecraft:orange_glazed_terracotta",
|
||||
"minecraft:magenta_glazed_terracotta",
|
||||
"minecraft:light_blue_glazed_terracotta",
|
||||
"minecraft:yellow_glazed_terracotta",
|
||||
"minecraft:lime_glazed_terracotta",
|
||||
"minecraft:pink_glazed_terracotta",
|
||||
"minecraft:gray_glazed_terracotta",
|
||||
"minecraft:light_gray_glazed_terracotta",
|
||||
"minecraft:cyan_glazed_terracotta",
|
||||
"minecraft:purple_glazed_terracotta",
|
||||
"minecraft:blue_glazed_terracotta",
|
||||
"minecraft:brown_glazed_terracotta",
|
||||
"minecraft:green_glazed_terracotta",
|
||||
"minecraft:red_glazed_terracotta",
|
||||
"minecraft:black_glazed_terracotta"
|
||||
]
|
||||
}
|
10
data/lzstools/tags/block/nesw.json
Normal file
10
data/lzstools/tags/block/nesw.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"replace": false,
|
||||
"values": [
|
||||
"minecraft:furnace",
|
||||
"minecraft:smoker",
|
||||
"minecraft:blast_furnace",
|
||||
"minecraft:carved_pumpkin",
|
||||
"minecraft:jack_o_lantern"
|
||||
]
|
||||
}
|
9
data/lzstools/tags/block/neswud.json
Normal file
9
data/lzstools/tags/block/neswud.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"replace": false,
|
||||
"values": [
|
||||
"minecraft:barrel",
|
||||
"minecraft:dispenser",
|
||||
"minecraft:dropper",
|
||||
"minecraft:observer"
|
||||
]
|
||||
}
|
27
data/lzstools/tags/block/partialbox.json
Normal file
27
data/lzstools/tags/block/partialbox.json
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"replace": false,
|
||||
"values": [
|
||||
"#minecraft:rails",
|
||||
"#minecraft:trapdoors",
|
||||
"#minecraft:fence_gates",
|
||||
"#minecraft:campfires",
|
||||
"#minecraft:all_signs",
|
||||
"#minecraft:anvil",
|
||||
"minecraft:hopper",
|
||||
"minecraft:repeater",
|
||||
"minecraft:comparator",
|
||||
"minecraft:calibrated_sculk_sensor",
|
||||
"#minecraft:slabs",
|
||||
"#minecraft:stairs",
|
||||
"minecraft:end_rod",
|
||||
"minecraft:chain",
|
||||
"minecraft:piston",
|
||||
"minecraft:sticky_piston",
|
||||
"minecraft:decorated_pot",
|
||||
"minecraft:lightning_rod",
|
||||
"minecraft:stonecutter",
|
||||
"minecraft:ender_chest",
|
||||
"minecraft:bell",
|
||||
"minecraft:grindstone"
|
||||
]
|
||||
}
|
6
data/lzstools/tags/block/unique.json
Normal file
6
data/lzstools/tags/block/unique.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"replace": false,
|
||||
"values": [
|
||||
"minecraft:crafter"
|
||||
]
|
||||
}
|
8
data/lzstools/tags/block/updates.json
Normal file
8
data/lzstools/tags/block/updates.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"replace": false,
|
||||
"values": [
|
||||
"minecraft:repeater",
|
||||
"minecraft:comparator",
|
||||
"minecraft:hopper"
|
||||
]
|
||||
}
|
14
data/lzstools/tags/block/xyz.json
Normal file
14
data/lzstools/tags/block/xyz.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"replace": false,
|
||||
"values": [
|
||||
"#minecraft:logs",
|
||||
"minecraft:quartz_pillar",
|
||||
"minecraft:purpur_pillar",
|
||||
"minecraft:hay_block",
|
||||
"minecraft:bone_block",
|
||||
"minecraft:basalt",
|
||||
"minecraft:polished_basalt",
|
||||
"minecraft:deepslate",
|
||||
"minecraft:muddy_mangrove_roots"
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user