###Enables contracts###
execute if entity @s[predicate=nitk:contract] run function nitk:contract_enable

###Anounces daily resources###
execute if entity @s[tag=nitInform] run tellraw @s[tag=nitInform] [{"text":"[۩]","color":"green","bold":true},{"text":": ","color":"white","bold":false},{"text":"Resources have been transported to your town's hoppers.","color":"white","bold":false}]
tag @s remove nitInform

###Special held items###
execute if predicate nitco:tyranny_locator run function nitco:recurs/tyranny_locator

###Keeps the final advancement from being achieved until the last moment###
advancement revoke @s[advancements={nitk:nitk/tyrant_defeat=false}] only nitk:nitk/enter_nether to-nether

###Clears Lamp Post items periodically###
clear @s oak_fence{nitk_post:1b}
clear @s oak_fence{nitk_post:2b}
clear @s cobblestone_wall{nitk_post:3b}
clear @s brick_wall{nitk_post:4b}
clear @s stone_brick_wall{nitk_post:5b}
clear @s sandstone_wall{nitk_post:6b}
clear @s nether_brick_wall{nitk_post:7b}
clear @s torch{nitk_light:1b}
clear @s lantern{nitk_light:2b}
clear @s redstone_lamp{nitk_light:3b}
clear @s candle{nitk_light:4b}
clear @s campfire{nitk_light:5b}
clear @s glowstone{nitk_light:6b}
clear @s sea_lantern{nitk_light:7b}