Added Hammer
Added Unbreaking tag Renamed rayloop to loop
This commit is contained in:
32
data/lzstools/advancement/visible/hammer.json
Normal file
32
data/lzstools/advancement/visible/hammer.json
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"display": {
|
||||
"icon": {
|
||||
"id": "minecraft:iron_pickaxe",
|
||||
"components": {
|
||||
"minecraft:custom_model_data": {
|
||||
"strings": [
|
||||
"lzstools:hammer"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"title": {
|
||||
"text": "Hammering out the details"
|
||||
},
|
||||
"description": {
|
||||
"text": "Craft a Hammer"
|
||||
},
|
||||
"show_toast": true,
|
||||
"announce_to_chat": false,
|
||||
"hidden": false
|
||||
},
|
||||
"parent": "lzstools:visible/root",
|
||||
"criteria": {
|
||||
"": {
|
||||
"trigger": "minecraft:recipe_crafted",
|
||||
"conditions": {
|
||||
"recipe_id": "lzstools_hammer:hammer"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,6 +1,5 @@
|
||||
scoreboard players set @s lzt_click_check 0
|
||||
|
||||
|
||||
# Wrench
|
||||
execute if predicate lzstools:wrench/mainhand run function lzstools_wrench:wrench/rotate
|
||||
execute if predicate lzstools:wrench/offhand run function lzstools_wrench:wrench/offhand
|
4
data/lzstools/function/check_hammer.mcfunction
Normal file
4
data/lzstools/function/check_hammer.mcfunction
Normal file
@@ -0,0 +1,4 @@
|
||||
scoreboard players set @s lzt_hammer_check 0
|
||||
|
||||
# Hammer
|
||||
execute if predicate lzstools:hammer/mainhand run function lzstools_hammer:mainhand
|
1
data/lzstools/function/give/hammer.mcfunction
Normal file
1
data/lzstools/function/give/hammer.mcfunction
Normal file
@@ -0,0 +1 @@
|
||||
give @s minecraft:iron_pickaxe[minecraft:custom_name={"text":"Hammer","color":"aqua"},minecraft:custom_model_data={strings:["lzstools:hammer"]},minecraft:custom_data={"lzstools":["hammer"]},minecraft:max_damage=1800]
|
@@ -9,9 +9,21 @@ scoreboard objectives add lzt_wrench_raycast dummy
|
||||
scoreboard objectives add lzt_trowel_success dummy
|
||||
scoreboard objectives add lzt_trowel_raycast dummy
|
||||
scoreboard objectives add lzt_trowel_raycast_hit dummy
|
||||
scoreboard objectives add lzt_trowel_block_check dummy
|
||||
scoreboard objectives add lzt_trowel_block_length dummy
|
||||
scoreboard objectives add lzt_chosen_block_check dummy
|
||||
scoreboard objectives add lzt_trowel_unbreaking_check dummy
|
||||
scoreboard objectives add lzt_trowel_unbreaking_chance dummy
|
||||
scoreboard objectives add lzt_trowel_damage dummy
|
||||
scoreboard objectives add lzt_trowel_max_damage dummy
|
||||
scoreboard objectives add lzt_trowel_max_damage dummy
|
||||
|
||||
# Hammer
|
||||
scoreboard objectives add lzt_hammer_check minecraft.used:minecraft.iron_pickaxe
|
||||
scoreboard objectives add lzt_hammer_success dummy
|
||||
scoreboard objectives add lzt_hammer_raycast dummy
|
||||
scoreboard objectives add lzt_hammer_raycast_hit dummy
|
||||
scoreboard objectives add lzt_hammer_side_raycast dummy
|
||||
scoreboard objectives add lzt_hammer_side_raycast_hit dummy
|
||||
scoreboard objectives add lzt_hammer_unbreaking_check dummy
|
||||
scoreboard objectives add lzt_hammer_unbreaking_chance dummy
|
||||
scoreboard objectives add lzt_hammer_damage dummy
|
||||
scoreboard objectives add lzt_hammer_max_damage dummy
|
@@ -1,3 +1,4 @@
|
||||
recipe give @s lzstools_wrench:wrench
|
||||
recipe give @s lzstools_trowel:iron
|
||||
recipe give @s lzstools_trowel:diamond
|
||||
recipe give @s lzstools_trowel:diamond
|
||||
recipe give @s lzstools_hammer:hammer
|
@@ -1,2 +1,5 @@
|
||||
# Click Check
|
||||
execute as @a if score @s lzt_click_check matches 1.. run function lzstools:player
|
||||
execute as @a if score @s lzt_click_check matches 1.. run function lzstools:check_click
|
||||
|
||||
# Hammer Click Check
|
||||
execute as @a if score @s lzt_hammer_check matches 1.. run function lzstools:check_hammer
|
17
data/lzstools/predicate/hammer/mainhand.json
Normal file
17
data/lzstools/predicate/hammer/mainhand.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"condition": "minecraft:entity_properties",
|
||||
"entity": "this",
|
||||
"predicate": {
|
||||
"equipment": {
|
||||
"mainhand": {
|
||||
"predicates": {
|
||||
"minecraft:custom_data": {
|
||||
"lzstools": [
|
||||
"hammer"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
18
data/lzstools/tags/block/unbreakable.json
Normal file
18
data/lzstools/tags/block/unbreakable.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{"replace":false,"values":[
|
||||
"minecraft:bedrock",
|
||||
"minecraft:structure_block",
|
||||
"minecraft:structure_void",
|
||||
"minecraft:jigsaw",
|
||||
"minecraft:command_block",
|
||||
"minecraft:chain_command_block",
|
||||
"minecraft:repeating_command_block",
|
||||
"minecraft:test_instance_block",
|
||||
"minecraft:test_block",
|
||||
"minecraft:light",
|
||||
"minecraft:end_portal",
|
||||
"minecraft:end_portal_frame",
|
||||
"minecraft:nether_portal",
|
||||
"minecraft:reinforced_deepslate",
|
||||
"minecraft:water",
|
||||
"minecraft:lava"
|
||||
]}
|
Reference in New Issue
Block a user