Skip to content

Commit

Permalink
Fixed stray items in Reliquary Outpost
Browse files Browse the repository at this point in the history
  • Loading branch information
Zungrysoft committed Jun 7, 2021
1 parent 0b2f2bf commit 868be83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ summon minecraft:area_effect_cloud -6 193 -6 {Duration:99999999,CustomName:"\"te

#Add in the bonus chest
#setblock 6 193 6 chest[facing=north]{Items: [{Slot: 11b, id: "minecraft:written_book", Count: 1b, tag: {pages: ['{"text":"Search high and low for treasure!"}','{"text":"§lEvoker Changes:§r\\n-Evoker now has 80 health. (40 hearts.)\\n-Vexes now have 6 health. (3 hearts.)\\n-Vexes die instantly if no Evokers are alive within 25 blocks."}'], title: "The Cultists' Refuge", author: "ZungryWare", resolved: 1b}},{Slot: 15b, id: "minecraft:potion", Count: 1b, tag: {Potion: "minecraft:water_breathing"}}]}
setblock 6 193 6 chest[facing=north]{Items: [{Slot: 11b, id: "minecraft:written_book", Count: 1b, tag: {pages: ['{"text":"The Illager Masonry Cult has built an outpost on these old ruins. It serves as a harbor for traveling cultists between raiding villages. The natural beasts above and below the waters will tear you up if you are not careful."}','{"text":"Tread lightly and avoid the towers unless you want to come face to face with the cult leaders."}'], title: "The Masonry Headquarters", author: "ZungryWare", resolved: 1b}},{Slot: 15b, id: "minecraft:potion", Count: 1b, tag: {Potion: "minecraft:water_breathing"}}]}
setblock 6 193 6 chest[facing=north]{Items: [{Slot: 11b, id: "minecraft:written_book", Count: 1b, tag: {pages: ['{"text":"The Illager Masonry Cult has built an outpost on these old ruins. It serves as a harbor for traveling cultists between raiding villages. The natural beasts above and below the waters will tear you up if you are not careful."}','{"text":"Tread lightly and avoid the towers unless you want to come face to face with the cult leaders."}'], title: "The Masonry Headquarters", author: "ZungryWare", resolved: 1b}},{Slot: 15b, id: "minecraft:splash_potion", Count: 1b, tag: {Potion: "minecraft:water_breathing"}}]}

say Building Ruins...

Expand All @@ -22,6 +22,9 @@ scoreboard players set underwater_treasure_count value 0
execute as @e[type=area_effect_cloud,name="underwater_treasure",sort=random] at @s run function tid:misc/underwater_treasure
execute as @e[type=area_effect_cloud,name="underwater_ruin_treasure"] at @s run function tid:misc/water_ruin_chest

#Kill any stray items
schedule function tid:misc/jungle_kill_items 5t replace

#If somehow, no evokers were generated, put one in a random spot so the player can kill it for the advancement
execute unless entity @e[type=evoker] run function tid:misc/safety_evoker

Expand Down
2 changes: 2 additions & 0 deletions data/tid/functions/misc/jungle_kill_items.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#Kill all items not near players in jungle
execute as @e[type=item,predicate=tid:in_layer_jungle] at @s unless entity @a[distance=0..12] run kill @s

0 comments on commit 868be83

Please sign in to comment.