diff --git a/kubejs/data/beyond_earth/tags/entity_types/entities/oxygen.json b/kubejs/data/beyond_earth/tags/entity_types/entities/oxygen.json new file mode 100644 index 0000000..c139163 --- /dev/null +++ b/kubejs/data/beyond_earth/tags/entity_types/entities/oxygen.json @@ -0,0 +1,68 @@ +{ + "replace": false, + "values": [ + "creeperoverhaul:badlands_creeper", + "creeperoverhaul:bamboo_creeper", + "creeperoverhaul:beach_creeper", + "creeperoverhaul:cave_creeper", + "creeperoverhaul:dark_oak_creeper", + "creeperoverhaul:desert_creeper", + "creeperoverhaul:dripstone_creeper", + "creeperoverhaul:hills_creeper", + "creeperoverhaul:jungle_creeper", + "creeperoverhaul:mushroom_creeper", + "creeperoverhaul:savannah_creeper", + "creeperoverhaul:snowy_creeper", + "creeperoverhaul:spruce_creeper", + "creeperoverhaul:swamp_creeper", + "crittersandcompanions:dragonfly", + "crittersandcompanions:dumbo_octopus", + "crittersandcompanions:ferret", + "crittersandcompanions:koi_fish", + "crittersandcompanions:leaf_insect", + "crittersandcompanions:otter", + "crittersandcompanions:red_panda", + "crittersandcompanions:sea_bunny", + "ecologics:camel", + "ecologics:coconut_crab", + "ecologics:penguin", + "ecologics:squirrel", + "infernalexp:ascus_bomb", + "infernalexp:basalt_giant", + "infernalexp:blackstone_dwarf", + "infernalexp:blindsight", + "infernalexp:embody", + "infernalexp:glowsilk_moth", + "infernalexp:glowsquito", + "infernalexp:infernal_painting", + "infernalexp:shroomloin", + "infernalexp:throwable_brick", + "infernalexp:throwable_fire_charge", + "infernalexp:throwable_magma_cream", + "infernalexp:throwable_nether_brick", + "infernalexp:voline", + "infernalexp:warpbeetle", + "naturalist:bear", + "naturalist:bluejay", + "naturalist:butterfly", + "naturalist:canary", + "naturalist:cardinal", + "naturalist:caterpillar", + "naturalist:coral_snake", + "naturalist:deer", + "naturalist:firefly", + "naturalist:rattlesnake", + "naturalist:robin", + "naturalist:snail", + "naturalist:snake", + "savage_and_ravage:creepie", + "savage_and_ravage:executioner", + "savage_and_ravage:griefer", + "savage_and_ravage:iceologer", + "savage_and_ravage:skeleton_villager", + "savage_and_ravage:trickster", + "thermal:basalz", + "thermal:blitz", + "thermal:blizz" + ] +} diff --git a/kubejs/data/kubejs/functions/tick.mcfunction b/kubejs/data/kubejs/functions/tick.mcfunction new file mode 100644 index 0000000..fa1f3c8 --- /dev/null +++ b/kubejs/data/kubejs/functions/tick.mcfunction @@ -0,0 +1,41 @@ +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/minecraft/tags/functions/load.json b/kubejs/data/minecraft/tags/functions/load.json index b136eec..7c372d3 100644 --- a/kubejs/data/minecraft/tags/functions/load.json +++ b/kubejs/data/minecraft/tags/functions/load.json @@ -5,6 +5,7 @@ "confetti_creepers:tick", "confetti_creepers:check_trigger", "confetti_creepers:give_effects", - "#load:_private/load" + "#load:_private/load", + "kubejs:tick" ] }