-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
388 additions
and
27 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
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
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
43 changes: 43 additions & 0 deletions
43
data/anc/functions/custom_enchantments/soul_binding/clear.mcfunction
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,43 @@ | ||
execute unless data entity @s Inventory[{Slot:103b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s armor.head with air | ||
execute unless data entity @s Inventory[{Slot:102b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s armor.chest with air | ||
execute unless data entity @s Inventory[{Slot:101b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s armor.legs with air | ||
execute unless data entity @s Inventory[{Slot:100b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s armor.feet with air | ||
|
||
execute unless data entity @s Inventory[{Slot:-106b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s weapon.mainhand with air | ||
|
||
execute unless data entity @s Inventory[{Slot:0b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.0 with air | ||
execute unless data entity @s Inventory[{Slot:1b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.1 with air | ||
execute unless data entity @s Inventory[{Slot:2b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.2 with air | ||
execute unless data entity @s Inventory[{Slot:3b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.3 with air | ||
execute unless data entity @s Inventory[{Slot:4b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.4 with air | ||
execute unless data entity @s Inventory[{Slot:5b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.5 with air | ||
execute unless data entity @s Inventory[{Slot:6b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.6 with air | ||
execute unless data entity @s Inventory[{Slot:7b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.7 with air | ||
execute unless data entity @s Inventory[{Slot:8b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.8 with air | ||
execute unless data entity @s Inventory[{Slot:9b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.9 with air | ||
execute unless data entity @s Inventory[{Slot:10b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.10 with air | ||
execute unless data entity @s Inventory[{Slot:11b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.11 with air | ||
execute unless data entity @s Inventory[{Slot:12b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.12 with air | ||
execute unless data entity @s Inventory[{Slot:13b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.13 with air | ||
execute unless data entity @s Inventory[{Slot:14b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.14 with air | ||
execute unless data entity @s Inventory[{Slot:15b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.15 with air | ||
execute unless data entity @s Inventory[{Slot:16b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.16 with air | ||
execute unless data entity @s Inventory[{Slot:17b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.17 with air | ||
execute unless data entity @s Inventory[{Slot:18b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.18 with air | ||
execute unless data entity @s Inventory[{Slot:19b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.19 with air | ||
execute unless data entity @s Inventory[{Slot:20b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.20 with air | ||
execute unless data entity @s Inventory[{Slot:21b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.21 with air | ||
execute unless data entity @s Inventory[{Slot:22b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.22 with air | ||
execute unless data entity @s Inventory[{Slot:23b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.23 with air | ||
execute unless data entity @s Inventory[{Slot:24b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.24 with air | ||
execute unless data entity @s Inventory[{Slot:25b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.25 with air | ||
execute unless data entity @s Inventory[{Slot:26b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.26 with air | ||
execute unless data entity @s Inventory[{Slot:27b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.27 with air | ||
execute unless data entity @s Inventory[{Slot:28b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.28 with air | ||
execute unless data entity @s Inventory[{Slot:29b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.29 with air | ||
execute unless data entity @s Inventory[{Slot:30b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.30 with air | ||
execute unless data entity @s Inventory[{Slot:31b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.31 with air | ||
execute unless data entity @s Inventory[{Slot:32b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.32 with air | ||
execute unless data entity @s Inventory[{Slot:33b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.33 with air | ||
execute unless data entity @s Inventory[{Slot:34b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.34 with air | ||
execute unless data entity @s Inventory[{Slot:35b}].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace entity @s container.35 with air |
14 changes: 14 additions & 0 deletions
14
data/anc/functions/custom_enchantments/soul_binding/drop.mcfunction
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,14 @@ | ||
execute store result score #inoverworld ancValue if predicate anc:inoverworld | ||
|
||
data remove storage anc:temp ItemsTemp | ||
data modify storage anc:temp ItemsTemp set from entity @s Inventory | ||
function anc:custom_enchantments/soul_binding/clear | ||
|
||
execute if score #inoverworld ancValue matches 1 run setblock ~ 319 ~ shulker_box | ||
execute unless score #inoverworld ancValue matches 1 run setblock ~ 255 ~ shulker_box | ||
|
||
execute if score #inoverworld ancValue matches 1 run function anc:custom_enchantments/soul_binding/drop/319 | ||
execute unless score #inoverworld ancValue matches 1 run function anc:custom_enchantments/soul_binding/drop/255 | ||
|
||
execute if score #inoverworld ancValue matches 1 run setblock ~ 319 ~ air | ||
execute unless score #inoverworld ancValue matches 1 run setblock ~ 255 ~ air |
8 changes: 8 additions & 0 deletions
8
data/anc/functions/custom_enchantments/soul_binding/drop/255.mcfunction
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 @@ | ||
data remove storage anc:temp ItemsTemp[0].Slot | ||
loot replace block ~ 255 ~ container.0 loot anc:gui/empty | ||
data modify block ~ 255 ~ Items[0] set from storage anc:temp ItemsTemp[0] | ||
execute unless data block ~ 255 ~ Items[0].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run loot spawn ~ ~ ~ mine ~ 255 ~ tnt{drop_content:1b} | ||
execute if data block ~ 255 ~ Items[0].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace block ~ 255 ~ container.0 with air | ||
data remove storage anc:temp ItemsTemp[0] | ||
execute store result score $soulBinding ancValue run data get storage anc:temp ItemsTemp | ||
execute if score $soulBinding ancValue matches 1.. run function anc:custom_enchantments/soul_binding/drop/255 |
8 changes: 8 additions & 0 deletions
8
data/anc/functions/custom_enchantments/soul_binding/drop/319.mcfunction
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 @@ | ||
data remove storage anc:temp ItemsTemp[0].Slot | ||
loot replace block ~ 319 ~ container.0 loot anc:gui/empty | ||
data modify block ~ 319 ~ Items[0] set from storage anc:temp ItemsTemp[0] | ||
execute unless data block ~ 319 ~ Items[0].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run loot spawn ~ ~ ~ mine ~ 319 ~ tnt{drop_content:1b} | ||
execute if data block ~ 319 ~ Items[0].tag.ancCustomEnchantments[{id:"anc:soul_binding"}] run item replace block ~ 319 ~ container.0 with air | ||
data remove storage anc:temp ItemsTemp[0] | ||
execute store result score $soulBinding ancValue run data get storage anc:temp ItemsTemp | ||
execute if score $soulBinding ancValue matches 1.. run function anc:custom_enchantments/soul_binding/drop/319 |
1 change: 1 addition & 0 deletions
1
data/anc/functions/custom_enchantments/soul_binding/soul_binding.mcfunction
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 @@ | ||
execute if score $ancKeepInventory ancConfig matches 0 as @s at @s run function anc:custom_enchantments/soul_binding/drop |
2 changes: 1 addition & 1 deletion
2
...tom_enchantments/sucking_blood.mcfunction → ...ts/sucking_blood/sucking_blood.mcfunction
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
effect give @s instant_health 1 0 true | ||
effect give @s instant_health 1 1 true | ||
advancement revoke @s only anc:custom_enchantments/sucking_blood |
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,2 @@ | ||
function #anc:death | ||
scoreboard players reset @s ancPlayerDeath |
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 |
---|---|---|
@@ -1 +1 @@ | ||
tellraw @s {"translate": "Please install the correct resource pack","with":[{"text": "0.6.4","color": "gold","bold": true}]} | ||
tellraw @s {"translate": "Please install the correct resource pack","with":[{"text": "0.6.5","color": "gold","bold": true}]} |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
tellraw @a {"translate":"anc.trader.coming","with":[{"nbt":"Pos","entity":"@s","color":"green"}],"color": "gold"} | ||
execute as @a at @s run playsound minecraft:trader.coming player @s | ||
execute if score $ancReminderVoice ancConfig matches 1 as @a at @s run playsound minecraft:trader.coming player @s | ||
tag @s add ancWanderingTrader |
2 changes: 2 additions & 0 deletions
2
data/anc/functions/items/command_book/keep_inventory/off.mcfunction
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,2 @@ | ||
scoreboard players set $ancKeepInventory ancConfig 0 | ||
function anc:items/command_book/reload |
2 changes: 2 additions & 0 deletions
2
data/anc/functions/items/command_book/keep_inventory/on.mcfunction
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,2 @@ | ||
scoreboard players set $ancKeepInventory ancConfig 1 | ||
function anc:items/command_book/reload |
Oops, something went wrong.