Custom tick func for Anoxic Environments

This commit is contained in:
oitsjustjose 2022-08-09 10:04:31 -05:00
commit 69af6effbc
3 changed files with 111 additions and 1 deletions

View file

@ -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"
]
}

View file

@ -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]

View file

@ -5,6 +5,7 @@
"confetti_creepers:tick",
"confetti_creepers:check_trigger",
"confetti_creepers:give_effects",
"#load:_private/load"
"#load:_private/load",
"kubejs:tick"
]
}