From 7a203c4d386f13457f28c8b2ab9a82ad2db645d5 Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Wed, 10 Aug 2022 12:36:00 -0500 Subject: [PATCH] Remove tick function, move to vtweaks feature Resolves Anoxic Mob Removal Function Targeting Main Dimension (Overworld) #11 --- kubejs/data/kubejs/functions/tick.mcfunction | 41 ------------------- .../data/vtweaks/culled_entities/oxygen.json | 16 ++++++++ 2 files changed, 16 insertions(+), 41 deletions(-) delete mode 100644 kubejs/data/kubejs/functions/tick.mcfunction create mode 100644 kubejs/data/vtweaks/culled_entities/oxygen.json diff --git a/kubejs/data/kubejs/functions/tick.mcfunction b/kubejs/data/kubejs/functions/tick.mcfunction deleted file mode 100644 index fa1f3c8..0000000 --- a/kubejs/data/kubejs/functions/tick.mcfunction +++ /dev/null @@ -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] \ No newline at end of file diff --git a/kubejs/data/vtweaks/culled_entities/oxygen.json b/kubejs/data/vtweaks/culled_entities/oxygen.json new file mode 100644 index 0000000..5ca6b6a --- /dev/null +++ b/kubejs/data/vtweaks/culled_entities/oxygen.json @@ -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" + ] +}