-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from amcocan/dev
Adds Feature!
- Loading branch information
Showing
13 changed files
with
255 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# ======= God Gear ======= | ||
# Apply the modified repair cost. | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s player.cursor god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s weapon.offhand god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s armor.head god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s armor.body god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s armor.legs god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s armor.feet god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s hotbar.0 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s hotbar.1 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s hotbar.2 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s hotbar.3 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s hotbar.4 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s hotbar.5 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s hotbar.6 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s hotbar.7 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s hotbar.8 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.0 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.1 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.2 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.3 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.4 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.5 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.6 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.7 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.8 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.9 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.10 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.11 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.12 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.13 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.14 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.15 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.16 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.17 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.18 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.19 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.20 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.21 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.22 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.23 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.24 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.25 god_gear:repair_cost | ||
execute as @a[scores={anvil_check=1..}] run item modify entity @s inventory.26 god_gear:repair_cost | ||
# Reset scoreboard objective | ||
execute as @a[scores={anvil_check=1..}] run scoreboard players reset @s anvil_checker | ||
# Schedule function loop | ||
schedule function god_gear:loop 5t append |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# ======= God Gear ======= | ||
# Create scoreboard objective. | ||
scoreboard objectives add anvil_check minecraft.custom:minecraft.interact_with_anvil "Anvil Check" | ||
# Alert everyone that datapack loaded successfully. | ||
tellraw @a[tag=!no_alerts] [{"text":"| ", "color":"#ff003c"}, {"text":"Status: ", "color":"#868e96"}, {"text":"God_gear function initialized successfully.", "color":"#ced4da"}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
[ | ||
{ | ||
"function": "minecraft:filtered", | ||
"item_filter": { | ||
"components": { | ||
"minecraft:repair_cost": 1 | ||
} | ||
}, | ||
"modifier": { | ||
"function": "minecraft:set_components", | ||
"components": { | ||
"minecraft:repair_cost": 0 | ||
} | ||
} | ||
}, | ||
{ | ||
"function": "minecraft:filtered", | ||
"item_filter": { | ||
"components": { | ||
"minecraft:repair_cost": 3 | ||
} | ||
}, | ||
"modifier": { | ||
"function": "minecraft:set_components", | ||
"components": { | ||
"minecraft:repair_cost": 0 | ||
} | ||
} | ||
}, | ||
{ | ||
"function": "minecraft:filtered", | ||
"item_filter": { | ||
"components": { | ||
"minecraft:repair_cost": 7 | ||
} | ||
}, | ||
"modifier": { | ||
"function": "minecraft:set_components", | ||
"components": { | ||
"minecraft:repair_cost": 0 | ||
} | ||
} | ||
}, | ||
{ | ||
"function": "minecraft:filtered", | ||
"item_filter": { | ||
"components": { | ||
"minecraft:repair_cost": 15 | ||
} | ||
}, | ||
"modifier": { | ||
"function": "minecraft:set_components", | ||
"components": { | ||
"minecraft:repair_cost": 0 | ||
} | ||
} | ||
}, | ||
{ | ||
"function": "minecraft:filtered", | ||
"item_filter": { | ||
"components": { | ||
"minecraft:repair_cost": 31 | ||
} | ||
}, | ||
"modifier": { | ||
"function": "minecraft:set_components", | ||
"components": { | ||
"minecraft:repair_cost": 0 | ||
} | ||
} | ||
}, | ||
{ | ||
"function": "minecraft:filtered", | ||
"item_filter": { | ||
"components": { | ||
"minecraft:repair_cost": 63 | ||
} | ||
}, | ||
"modifier": { | ||
"function": "minecraft:set_components", | ||
"components": { | ||
"minecraft:repair_cost": 0 | ||
} | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# ======= Item Name Color ======= | ||
# Get the item name and store it. | ||
# data modify storage item_color:name ori_name set from entity @s SelectedItem.components.minecraft:item_name | ||
# data modify storage item_color:name ori_name set from entity @s SelectedItem.components.minecraft:custom_name | ||
# Parse and re-apply the item name. | ||
|
||
# Reset trigger. | ||
execute as @a[scores={item_color=2..}] run scoreboard players reset @s item_color |
Oops, something went wrong.