Skip to content

Commit

Permalink
containers support for collector pylon
Browse files Browse the repository at this point in the history
  • Loading branch information
LTHCTheMaster committed Jul 15, 2022
1 parent 93302e8 commit caebc88
Show file tree
Hide file tree
Showing 17 changed files with 41 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
execute if entity @s[tag=lthc.mage.pylons.aero] run loot spawn ~ ~1 ~ loot lthc.mage:item/components/essences/aero
execute if entity @s[tag=lthc.mage.pylons.end] run loot spawn ~ ~1 ~ loot lthc.mage:item/components/essences/end
execute if entity @s[tag=lthc.mage.pylons.fungus] run function lthc.mage:components/essences/gen/fungus
execute if entity @s[tag=lthc.mage.pylons.hydro] run function lthc.mage:components/essences/gen/hydro
execute if entity @s[tag=lthc.mage.pylons.thermo] run loot spawn ~ ~1 ~ loot lthc.mage:item/components/essences/thermo
execute if entity @s[tag=lthc.mage.pylons.thermo2] run function lthc.mage:components/essences/gen/thermo
execute if entity @s[tag=lthc.mage.pylons.phyto] run function lthc.mage:components/essences/gen/phyto
scoreboard players set #is_there lthc.mage.data 0
execute store success score #is_there lthc.mage.data if block ~ ~1 ~ #lthc.mage:containers
execute if score #is_there lthc.mage.data matches 0 run function lthc.mage:components/essences/supports/natural
execute if score #is_there lthc.mage.data matches 1 run function lthc.mage:components/essences/supports/containers

function lthc.mage:components/essences/effects
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
loot insert ~ ~1 ~ loot lthc.mage:item/components/essences/fungus
execute if predicate lthc.mage:luck/3 unless predicate lthc.mage:boost/daytime run loot insert ~ ~1 ~ loot lthc.mage:item/components/essences/fungus
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
loot insert ~ ~1 ~ loot lthc.mage:item/components/essences/hydro
execute if predicate lthc.mage:luck/3 if predicate lthc.mage:boost/rainy_thundery run loot insert ~ ~1 ~ loot lthc.mage:item/components/essences/hydro
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
loot insert ~ ~1 ~ loot lthc.mage:item/components/essences/phyto
execute if predicate lthc.mage:luck/3 if predicate lthc.mage:boost/daytime run loot insert ~ ~1 ~ loot lthc.mage:item/components/essences/phyto
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
loot insert ~ ~1 ~ loot lthc.mage:item/components/essences/thermo
execute if predicate lthc.mage:luck/3 if predicate lthc.mage:components/essences/thermo2 run loot insert ~ ~1 ~ loot lthc.mage:item/components/essences/thermo
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
execute if entity @s[tag=lthc.mage.pylons.aero] unless predicate lthc.mage:luck/8 run loot insert ~ ~1 ~ loot lthc.mage:item/components/essences/aero
execute if entity @s[tag=lthc.mage.pylons.end] unless predicate lthc.mage:luck/8 run loot insert ~ ~1 ~ loot lthc.mage:item/components/essences/end
execute if entity @s[tag=lthc.mage.pylons.fungus] unless predicate lthc.mage:luck/8 run function lthc.mage:components/essences/gen/containers/fungus
execute if entity @s[tag=lthc.mage.pylons.hydro] unless predicate lthc.mage:luck/8 run function lthc.mage:components/essences/gen/containers/hydro
execute if entity @s[tag=lthc.mage.pylons.thermo] unless predicate lthc.mage:luck/8 run loot insert ~ ~1 ~ loot lthc.mage:item/components/essences/thermo
execute if entity @s[tag=lthc.mage.pylons.thermo2] unless predicate lthc.mage:luck/8 run function lthc.mage:components/essences/gen/containers/thermo
execute if entity @s[tag=lthc.mage.pylons.phyto] unless predicate lthc.mage:luck/8 run function lthc.mage:components/essences/gen/containers/phyto
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
execute if entity @s[tag=lthc.mage.pylons.aero] unless predicate lthc.mage:luck/8 run loot spawn ~ ~1 ~ loot lthc.mage:item/components/essences/aero
execute if entity @s[tag=lthc.mage.pylons.end] unless predicate lthc.mage:luck/8 run loot spawn ~ ~1 ~ loot lthc.mage:item/components/essences/end
execute if entity @s[tag=lthc.mage.pylons.fungus] unless predicate lthc.mage:luck/8 run function lthc.mage:components/essences/gen/natural/fungus
execute if entity @s[tag=lthc.mage.pylons.hydro] unless predicate lthc.mage:luck/8 run function lthc.mage:components/essences/gen/natural/hydro
execute if entity @s[tag=lthc.mage.pylons.thermo] unless predicate lthc.mage:luck/8 run loot spawn ~ ~1 ~ loot lthc.mage:item/components/essences/thermo
execute if entity @s[tag=lthc.mage.pylons.thermo2] unless predicate lthc.mage:luck/8 run function lthc.mage:components/essences/gen/natural/thermo
execute if entity @s[tag=lthc.mage.pylons.phyto] unless predicate lthc.mage:luck/8 run function lthc.mage:components/essences/gen/natural/phyto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
execute as @e[type=glow_item_frame,tag=lthc.mage.pylon.function] at @s run function lthc.mage:components/essences/find_which
execute as @e[tag=lthc.mage.pylon.function] at @s run function lthc.mage:components/essences/find_which
function lthc.mage:events/events_manager
scoreboard players add @e[type=glow_item_frame,tag=lthc.mage.mining_ritual_placed] lthc.mage.data 1

Expand Down
14 changes: 14 additions & 0 deletions Datapack/data/lthc.mage/tags/blocks/containers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"values": [
"hopper",
"chest",
"trapped_chest",
"barrel",
"dispenser",
"dropper",
"furnace",
"smoker",
"blast_furnace",
"#shulker_boxes"
]
}

0 comments on commit caebc88

Please sign in to comment.