Remove tick function, move to vtweaks feature

Resolves Anoxic Mob Removal Function Targeting Main Dimension (Overworld) #11
This commit is contained in:
oitsjustjose 2022-08-10 12:36:00 -05:00
commit 7a203c4d38
2 changed files with 16 additions and 41 deletions

View file

@ -1,41 +0,0 @@
schedule function kubejs:tick 1t
# Make all entities that require oxygen in anoxic environments drop NOTHING when killed.
execute in beyond_earth:glacio_orbit as @e[type=#beyond_earth:entities/oxygen] run data merge entity @s {DeathLootTable: "minecraft:empty"}
execute in beyond_earth:mars_orbit as @e[type=#beyond_earth:entities/oxygen] run data merge entity @s {DeathLootTable: "minecraft:empty"}
execute in beyond_earth:moon_orbit as @e[type=#beyond_earth:entities/oxygen] run data merge entity @s {DeathLootTable: "minecraft:empty"}
execute in beyond_earth:mercury_orbit as @e[type=#beyond_earth:entities/oxygen] run data merge entity @s {DeathLootTable: "minecraft:empty"}
execute in beyond_earth:earth_orbit as @e[type=#beyond_earth:entities/oxygen] run data merge entity @s {DeathLootTable: "minecraft:empty"}
execute in beyond_earth:glacio as @e[type=#beyond_earth:entities/oxygen] run data merge entity @s {DeathLootTable: "minecraft:empty"}
execute in beyond_earth:venus as @e[type=#beyond_earth:entities/oxygen] run data merge entity @s {DeathLootTable: "minecraft:empty"}
execute in beyond_earth:venus_orbit as @e[type=#beyond_earth:entities/oxygen] run data merge entity @s {DeathLootTable: "minecraft:empty"}
execute in beyond_earth:mars as @e[type=#beyond_earth:entities/oxygen] run data merge entity @s {DeathLootTable: "minecraft:empty"}
execute in beyond_earth:moon as @e[type=#beyond_earth:entities/oxygen] run data merge entity @s {DeathLootTable: "minecraft:empty"}
execute in beyond_earth:mercury as @e[type=#beyond_earth:entities/oxygen] run data merge entity @s {DeathLootTable: "minecraft:empty"}
# Move entities off-screen to prevent death particles / poof animation
execute in beyond_earth:glacio_orbit run tp @e[type=#beyond_earth:entities/oxygen] 0 -128 0
execute in beyond_earth:mars_orbit run tp @e[type=#beyond_earth:entities/oxygen] 0 -128 0
execute in beyond_earth:moon_orbit run tp @e[type=#beyond_earth:entities/oxygen] 0 -128 0
execute in beyond_earth:mercury_orbit run tp @e[type=#beyond_earth:entities/oxygen] 0 -128 0
execute in beyond_earth:earth_orbit run tp @e[type=#beyond_earth:entities/oxygen] 0 -128 0
execute in beyond_earth:glacio run tp @e[type=#beyond_earth:entities/oxygen] 0 -128 0
execute in beyond_earth:venus run tp @e[type=#beyond_earth:entities/oxygen] 0 -128 0
execute in beyond_earth:venus_orbit run tp @e[type=#beyond_earth:entities/oxygen] 0 -128 0
execute in beyond_earth:mars run tp @e[type=#beyond_earth:entities/oxygen] 0 -128 0
execute in beyond_earth:moon run tp @e[type=#beyond_earth:entities/oxygen] 0 -128 0
execute in beyond_earth:mercury run tp @e[type=#beyond_earth:entities/oxygen] 0 -128 0
# Kill all entities
execute in beyond_earth:glacio_orbit run kill @e[type=#beyond_earth:entities/oxygen]
execute in beyond_earth:mars_orbit run kill @e[type=#beyond_earth:entities/oxygen]
execute in beyond_earth:moon_orbit run kill @e[type=#beyond_earth:entities/oxygen]
execute in beyond_earth:mercury_orbit run kill @e[type=#beyond_earth:entities/oxygen]
execute in beyond_earth:earth_orbit run kill @e[type=#beyond_earth:entities/oxygen]
execute in beyond_earth:glacio run kill @e[type=#beyond_earth:entities/oxygen]
execute in beyond_earth:venus run kill @e[type=#beyond_earth:entities/oxygen]
execute in beyond_earth:venus_orbit run kill @e[type=#beyond_earth:entities/oxygen]
execute in beyond_earth:mars run kill @e[type=#beyond_earth:entities/oxygen]
execute in beyond_earth:moon run kill @e[type=#beyond_earth:entities/oxygen]
execute in beyond_earth:mercury run kill @e[type=#beyond_earth:entities/oxygen]

View file

@ -0,0 +1,16 @@
{
"entities": ["#beyond_earth:entities/oxygen"],
"dimensions": [
"beyond_earth:earth_orbit",
"beyond_earth:glacio",
"beyond_earth:glacio_orbit",
"beyond_earth:mars",
"beyond_earth:mars_orbit",
"beyond_earth:mercury",
"beyond_earth:mercury_orbit",
"beyond_earth:moon",
"beyond_earth:moon_orbit",
"beyond_earth:venus",
"beyond_earth:venus_orbit"
]
}