#loader contenttweaker import mods.contenttweaker.VanillaFactory; import mods.contenttweaker.Item; import mods.contenttweaker.IItemRightClick; import mods.contenttweaker.Commands; import mods.contenttweaker.ItemFood; import mods.contenttweaker.IItemFoodEaten; import mods.contenttweaker.MutableItemStack; import mods.contenttweaker.Hand; import mods.contenttweaker.World; import mods.contenttweaker.IItemUpdate; import mods.contenttweaker.Player; import crafttweaker.player.IPlayer; var creeponiacallstone = VanillaFactory.createItem("creeponia_callstone"); creeponiacallstone.maxStackSize = 1; creeponiacallstone.itemRightClick = function(stack, world, player, hand) { if(world.remote) { return "FAIL"; } // check if player is in spatial storage if(player.getDimension() != 805) { player.sendChat("Enter the right dimension"); return "FAIL"; } Commands.call("pillar-spawn creeponia_dungeon", player, world, true, true); stack.shrink(1); return "PASS"; }; creeponiacallstone.register(); var deeplandscallstone = VanillaFactory.createItem("deeplands_callstone"); deeplandscallstone.maxStackSize = 1; deeplandscallstone.itemRightClick = function(stack, world, player, hand) { if(world.remote) { return "FAIL"; } // check if player is in spatial storage if(player.getDimension() != 807) { player.sendChat("Enter the right dimension"); return "FAIL"; } Commands.call("pillar-spawn deeplands_dungeon", player, world, true, true); stack.shrink(1); return "PASS"; }; deeplandscallstone.register(); var crysteviacallstone = VanillaFactory.createItem("crystevia_callstone"); crysteviacallstone.maxStackSize = 1; crysteviacallstone.itemRightClick = function(stack, world, player, hand) { if(world.remote) { return "FAIL"; } // check if player is in spatial storage if(player.getDimension() != 806) { player.sendChat("Enter the right dimension"); return "FAIL"; } Commands.call("pillar-spawn crystevia_dungeon", player, world, true, true); stack.shrink(1); return "PASS"; }; crysteviacallstone.register(); var irominecallstone = VanillaFactory.createItem("iromine_callstone"); irominecallstone.maxStackSize = 1; irominecallstone.itemRightClick = function(stack, world, player, hand) { if(world.remote) { return "FAIL"; } // check if player is in spatial storage if(player.getDimension() != 813) { player.sendChat("Enter the right dimension"); return "FAIL"; } Commands.call("pillar-spawn iromine_dungeon", player, world, true, true); stack.shrink(1); return "PASS"; }; irominecallstone.register(); var boreancallstone = VanillaFactory.createItem("borean_callstone"); boreancallstone.maxStackSize = 1; boreancallstone.itemRightClick = function(stack, world, player, hand) { if(world.remote) { return "FAIL"; } // check if player is in spatial storage if(player.getDimension() != 814) { player.sendChat("Enter the right dimension"); return "FAIL"; } Commands.call("pillar-spawn borean_dungeon", player, world, true, true); stack.shrink(1); return "PASS"; }; boreancallstone.register(); var lunaluscallstone = VanillaFactory.createItem("lunalus_callstone"); lunaluscallstone.maxStackSize = 1; lunaluscallstone.itemRightClick = function(stack, world, player, hand) { if(world.remote) { return "FAIL"; } // check if player is in spatial storage if(player.getDimension() != 816) { player.sendChat("Enter the right dimension"); return "FAIL"; } Commands.call("pillar-spawn lunalus_dungeon", player, world, true, true); stack.shrink(1); return "PASS"; }; lunaluscallstone.register(); var wildwoodcallstone = VanillaFactory.createItem("wildwood_callstone"); wildwoodcallstone.maxStackSize = 1; wildwoodcallstone.itemRightClick = function(stack, world, player, hand) { if(world.remote) { return "FAIL"; } // check if player is in spatial storage if(player.getDimension() != 421) { player.sendChat("Enter the right dimension"); return "FAIL"; } Commands.call("pillar-spawn wildwood_dungeon", player, world, true, true); stack.shrink(1); return "PASS"; }; wildwoodcallstone.register(); var skytherncallstone = VanillaFactory.createItem("skythern_callstone"); skytherncallstone.maxStackSize = 1; skytherncallstone.itemRightClick = function(stack, world, player, hand) { if(world.remote) { return "FAIL"; } // check if player is in spatial storage if(player.getDimension() != 423) { player.sendChat("Enter the right dimension"); return "FAIL"; } Commands.call("pillar-spawn skythern_dungeon", player, world, true, true); stack.shrink(1); return "PASS"; }; skytherncallstone.register(); var tuliteflower = VanillaFactory.createItem("tulite_flower"); tuliteflower.maxStackSize = 1; tuliteflower.itemRightClick = function(stack, world, player, hand) { if(world.remote) { return "FAIL"; } // check if player is in spatial storage if(player.getDimension() != 423) { player.sendChat("Use in skythern"); return "FAIL"; } // obtain position under player var pos = player.position.asPosition3f(); // check if player is standing on beacon var posChange = player.position.asPosition3f(); posChange.y = pos.y - 1; var blockPosBelowPlayer = posChange.asBlockPos(); var blockBelow = world.getBlockState(blockPosBelowPlayer); print(blockBelow.commandString); if(blockBelow != ) { player.sendChat("Stand on a purpur block"); return "FAIL"; } // check if player is standing on tier 1 beacon var posbeacon1 = player.position.asPosition3f(); posbeacon1.y = pos.y - 1; posbeacon1.x = pos.x - 2; posbeacon1.z = pos.z - 1; var blockposbeacon1 = posbeacon1.asBlockPos(); var blockBelow1 = world.getBlockState(blockposbeacon1); if(blockBelow1 != ) { player.sendChat("Compose the right shape out of purpur, the key is in the white sky"); return "FAIL"; } var posbeacon2 = player.position.asPosition3f(); posbeacon2.y = pos.y - 1; posbeacon2.x = pos.x - 2; posbeacon2.z = pos.z + 1; var blockposbeacon2 = posbeacon2.asBlockPos(); var blockBelow2 = world.getBlockState(blockposbeacon2); if(blockBelow2 != ) { player.sendChat("Compose the right shape out of purpur, the key is in the white sky"); return "FAIL"; } var posbeacon3 = player.position.asPosition3f(); posbeacon3.y = pos.y - 1; posbeacon3.x = pos.x + 2; posbeacon3.z = pos.z - 1; var blockposbeacon3 = posbeacon3.asBlockPos(); var blockBelow3 = world.getBlockState(blockposbeacon3); if(blockBelow3 != ) { player.sendChat("Compose the right shape out of purpur, the key is in the white sky"); return "FAIL"; } var posbeacon4 = player.position.asPosition3f(); posbeacon4.y = pos.y - 1; posbeacon4.x = pos.x + 2; posbeacon4.z = pos.z + 1; var blockposbeacon4 = posbeacon4.asBlockPos(); var blockBelow4 = world.getBlockState(blockposbeacon4); if(blockBelow4 != ) { player.sendChat("Compose the right shape out of purpur, the key is in the white sky"); return "FAIL"; } var posbeacon5 = player.position.asPosition3f(); posbeacon5.y = pos.y - 1; posbeacon5.x = pos.x + 1; posbeacon5.z = pos.z + 2; var blockposbeacon5 = posbeacon5.asBlockPos(); var blockBelow5 = world.getBlockState(blockposbeacon5); if(blockBelow5 != ) { player.sendChat("Compose the right shape out of purpur, the key is in the white sky"); return "FAIL"; } var posbeacon6 = player.position.asPosition3f(); posbeacon6.y = pos.y - 1; posbeacon6.x = pos.x - 1; posbeacon6.z = pos.z + 2; var blockposbeacon6 = posbeacon6.asBlockPos(); var blockBelow6 = world.getBlockState(blockposbeacon6); if(blockBelow6 != ) { player.sendChat("Compose the right shape out of purpur, the key is in the white sky"); return "FAIL"; } var posbeacon7 = player.position.asPosition3f(); posbeacon7.y = pos.y - 1; posbeacon7.x = pos.x + 1; posbeacon7.z = pos.z - 2; var blockposbeacon7 = posbeacon7.asBlockPos(); var blockBelow7 = world.getBlockState(blockposbeacon7); if(blockBelow7 != ) { player.sendChat("Compose the right shape out of purpur, the key is in the white sky"); return "FAIL"; } var posbeacon8 = player.position.asPosition3f(); posbeacon8.y = pos.y - 1; posbeacon8.x = pos.x - 1; posbeacon8.z = pos.z - 2; var blockposbeacon8 = posbeacon8.asBlockPos(); var blockBelow8 = world.getBlockState(blockposbeacon8); if(blockBelow8 != ) { player.sendChat("Compose the right shape out of purpur, the key is in the white sky"); return "FAIL"; } var posbeacon9 = player.position.asPosition3f(); posbeacon9.y = pos.y - 2; posbeacon9.x = pos.x; posbeacon9.z = pos.z; var blockposbeacon9 = posbeacon9.asBlockPos(); var blockBelow9 = world.getBlockState(blockposbeacon9); if(blockBelow9 != ) { player.sendChat("Compose the right shape out of purpur, the key is in the white sky"); return "FAIL"; } var posbeacon10 = player.position.asPosition3f(); posbeacon10.y = pos.y - 2; posbeacon10.x = pos.x + 1; posbeacon10.z = pos.z; var blockposbeacon10 = posbeacon10.asBlockPos(); var blockBelow10 = world.getBlockState(blockposbeacon10); if(blockBelow10 != ) { player.sendChat("Compose the right shape out of purpur, the key is in the white sky"); return "FAIL"; } var posbeacon11 = player.position.asPosition3f(); posbeacon11.y = pos.y - 2; posbeacon11.x = pos.x + 2; posbeacon11.z = pos.z; var blockposbeacon11 = posbeacon11.asBlockPos(); var blockBelow11 = world.getBlockState(blockposbeacon11); if(blockBelow11 != ) { player.sendChat("Compose the right shape out of purpur, the key is in the white sky"); return "FAIL"; } var posbeacon12 = player.position.asPosition3f(); posbeacon12.y = pos.y - 2; posbeacon12.x = pos.x - 1; posbeacon12.z = pos.z; var blockposbeacon12 = posbeacon12.asBlockPos(); var blockBelow12 = world.getBlockState(blockposbeacon12); if(blockBelow12 != ) { player.sendChat("Compose the right shape out of purpur, the key is in the white sky"); return "FAIL"; } var posbeacon13 = player.position.asPosition3f(); posbeacon13.y = pos.y - 2; posbeacon13.x = pos.x - 2; posbeacon13.z = pos.z; var blockposbeacon13 = posbeacon13.asBlockPos(); var blockBelow13 = world.getBlockState(blockposbeacon13); if(blockBelow13 != ) { player.sendChat("Compose the right shape out of purpur, the key is in the white sky"); return "FAIL"; } var posbeacon14 = player.position.asPosition3f(); posbeacon14.y = pos.y - 2; posbeacon14.x = pos.x; posbeacon14.z = pos.z + 1; var blockposbeacon14 = posbeacon14.asBlockPos(); var blockBelow14 = world.getBlockState(blockposbeacon14); if(blockBelow14 != ) { player.sendChat("Compose the right shape out of purpur, the key is in the white sky"); return "FAIL"; } var posbeacon15 = player.position.asPosition3f(); posbeacon15.y = pos.y - 2; posbeacon15.x = pos.x; posbeacon15.z = pos.z + 2; var blockposbeacon15 = posbeacon15.asBlockPos(); var blockBelow15 = world.getBlockState(blockposbeacon15); if(blockBelow15 != ) { player.sendChat("Compose the right shape out of purpur, the key is in the white sky"); return "FAIL"; } var posbeacon16 = player.position.asPosition3f(); posbeacon16.y = pos.y - 2; posbeacon16.x = pos.x; posbeacon16.z = pos.z - 1; var blockposbeacon16 = posbeacon16.asBlockPos(); var blockBelow16 = world.getBlockState(blockposbeacon16); if(blockBelow16 != ) { player.sendChat("Compose the right shape out of purpur, the key is in the white sky"); return "FAIL"; } var posbeacon17 = player.position.asPosition3f(); posbeacon17.y = pos.y - 2; posbeacon17.x = pos.x; posbeacon17.z = pos.z - 2; var blockposbeacon17 = posbeacon17.asBlockPos(); var blockBelow17 = world.getBlockState(blockposbeacon17); if(blockBelow17 != ) { player.sendChat("Compose the right shape out of purpur, the key is in the white sky"); return "FAIL"; } Commands.call("give @p contenttweaker:astral_lizardite", player, world, true, true); return "PASS"; }; tuliteflower.register(); var immortalliscallstone = VanillaFactory.createItem("immortallis_callstone"); immortalliscallstone.maxStackSize = 1; immortalliscallstone.itemRightClick = function(stack, world, player, hand) { if(world.remote) { return "FAIL"; } // check if player is in spatial storage if(player.getDimension() != 7) { player.sendChat("Enter the twilight forest"); return "FAIL"; } Commands.call("pillar-spawn immortallis_dungeon", player, world, true, true); stack.shrink(1); return "PASS"; }; immortalliscallstone.register(); var horrificcallstone = VanillaFactory.createItem("horrific_callstone"); horrificcallstone.maxStackSize = 1; horrificcallstone.itemRightClick = function(stack, world, player, hand) { if(world.remote) { return "FAIL"; } // check if player is in spatial storage if(player.getDimension() != 20) { player.sendChat("Enter the betweenlands"); return "FAIL"; } Commands.call("pillar-spawn casa_degli_orrori", player, world, true, true); stack.shrink(1); return "PASS"; }; horrificcallstone.register(); var harbingercallstone = VanillaFactory.createItem("harbinger_callstone"); harbingercallstone.maxStackSize = 1; harbingercallstone.itemRightClick = function(stack, world, player, hand) { if(world.remote) { return "FAIL"; } // check if player is in spatial storage if(player.getDimension() != 7) { player.sendChat("Enter the twilight forest"); return "FAIL"; } Commands.call("pillar-spawn harbinger_castle", player, world, true, true); stack.shrink(1); return "PASS"; }; harbingercallstone.register(); var dreamcallstone = VanillaFactory.createItem("dream_callstone"); dreamcallstone.maxStackSize = 1; dreamcallstone.itemRightClick = function(stack, world, player, hand) { if(world.remote) { return "FAIL"; } // check if player is in spatial storage if(player.getDimension() != 427) { player.sendChat("You gotta be in vethea"); return "FAIL"; } Commands.call("pillar-spawn vethea_dungeon", player, world, true, true); stack.shrink(1); return "PASS"; }; dreamcallstone.register(); var nightmarecallstone = VanillaFactory.createItem("nightmare_callstone"); nightmarecallstone.maxStackSize = 1; nightmarecallstone.itemRightClick = function(stack, world, player, hand) { if(world.remote) { return "FAIL"; } // check if player is in spatial storage if(player.getDimension() != 427) { player.sendChat("You gotta be in vethea"); return "FAIL"; } Commands.call("pillar-spawn nighmare_dungeon", player, world, true, true); stack.shrink(1); return "PASS"; }; nightmarecallstone.register(); var sacredcallstone = VanillaFactory.createItem("sacred_callstone"); sacredcallstone.maxStackSize = 1; sacredcallstone.itemRightClick = function(stack, world, player, hand) { if(world.remote) { return "FAIL"; } // check if player is in spatial storage if(player.getDimension() != 4) { player.sendChat("You gotta be in the aether"); return "FAIL"; } Commands.call("pillar-spawn recursion_temple_final", player, world, true, true); stack.shrink(1); return "PASS"; }; sacredcallstone.register(); var callofthehaunted = VanillaFactory.createItem("call_of_the_haunted"); callofthehaunted.maxStackSize = 1; callofthehaunted.itemRightClick = function(stack, world, player, hand) { if(world.remote) { return "FAIL"; } // check if player is in spatial storage if(player.getDimension() != 7) { player.sendChat("You gotta be in the twilight forest"); return "FAIL"; } Commands.call("pillar-spawn ghost_disk_dungeon", player, world, true, true); stack.shrink(1); return "PASS"; }; callofthehaunted.register(); var recursionprisonkey = VanillaFactory.createItem("recursion_prison_key"); recursionprisonkey.maxStackSize = 1; recursionprisonkey.itemRightClick = function(stack, world, player, hand) { if(world.remote) { return "FAIL"; } // check if player is in spatial storage if(player.getDimension() != 0) { player.sendChat("You gotta be in the overworld"); return "FAIL"; } Commands.call("pillar-spawn recursion_prison_arena", player, world, true, true); Commands.call("give @p contenttweaker:recursive_tesseract", player, world, true, true); stack.shrink(1); return "PASS"; }; recursionprisonkey.register(); var stickycallstone = VanillaFactory.createItem("sticky_callstone"); stickycallstone.maxStackSize = 1; stickycallstone.itemRightClick = function(stack, world, player, hand) { if(world.remote) { return "FAIL"; } // check if player is in spatial storage if(player.getDimension() != 50) { player.sendChat("You gotta be in the abyssal wasteland"); return "FAIL"; } Commands.call("pillar-spawn big_bouncy_castle", player, world, true, true); Commands.call("summon Slime ~ ~10 ~ {Size:100,ActiveEffects:[{Id:10,Amplifier:4,Duration:999999},{Id:6,Amplifier:250,Duration:999999}],HandItems:[{Count:1,id:\"contenttweaker:big_slime\"},{}],HandDropChances:[1.0f,0.0f],Health:3000f}", player, world, true, true); player.sendChat("Kill it!"); stack.shrink(1); return "PASS"; }; stickycallstone.register(); //summon Slime ~ ~ ~ {Size:100,ActiveEffects:[{Id:10,Amplifier:3,Duration:999999}],HandItems:[{Count:1,id:"contenttweaker:big_slime"},{}],HandDropChances:[1.0f,0.0f]} var runickey = VanillaFactory.createItem("runic_key"); runickey.maxStackSize = 1; runickey.itemRightClick = function(stack, world, player, hand) { if(world.remote) { return "FAIL"; } Commands.call("summon aoa3:clunkhead ~5 ~10 ~ {HandItems:[{Count:1,id:\"contenttweaker:clunky_chunky_brick\"},{}],HandDropChances:[1.0f,0.0f]}", player, world, true, true); Commands.call("summon aoa3:clunkhead ~-5 ~10 ~ {HandItems:[{Count:1,id:\"contenttweaker:clunky_chunky_brick\"},{}],HandDropChances:[1.0f,0.0f]}", player, world, true, true); Commands.call("summon aoa3:clunkhead ~ ~10 ~5 {HandItems:[{Count:1,id:\"contenttweaker:clunky_chunky_brick\"},{}],HandDropChances:[1.0f,0.0f]}", player, world, true, true); Commands.call("summon aoa3:clunkhead ~ ~10 ~-5 {HandItems:[{Count:1,id:\"contenttweaker:clunky_chunky_brick\"},{}],HandDropChances:[1.0f,0.0f]}", player, world, true, true); player.sendChat("Kill them all!"); stack.shrink(1); return "PASS"; }; runickey.register(); var secretweapon = VanillaFactory.createItem("secret_weapon"); secretweapon.maxStackSize = 1; secretweapon.itemRightClick = function(stack, world, player, hand) { if(world.remote) { return "FAIL"; } Commands.call("summon mightyenderchicken:ent_enderchicken ~ ~30 ~ {HandItems:[{Count:1,id:\"contenttweaker:recursive_feather\"},{}],HandDropChances:[1.0f,0.0f],Attributes:[{Name:generic.maxHealth, Base:2000.0}],Health:2000f}", player, world, true, true); player.sendChat("Kill them all!"); stack.shrink(1); return "PASS"; }; secretweapon.register(); var arcaneprisonkey = VanillaFactory.createItem("arcane_prison_key"); arcaneprisonkey.maxStackSize = 1; arcaneprisonkey.itemRightClick = function(stack, world, player, hand) { if(world.remote) { return "FAIL"; } // check if player is in spatial storage if(player.getDimension() != 426) { player.sendChat("You gotta be in arcana"); return "FAIL"; } Commands.call("summon divinerpg:death_hound ~ ~1 ~ {HandItems:[{Count:1,id:\"contenttweaker:sympan_spirit\"},{}],HandDropChances:[1.0f,0.0f],Attributes:[{Name:generic.maxHealth, Base:20000.0},{Name:generic.attackDamage, Base:10000.0}],Health:20000f}", player, world, true, true); player.sendChat("Kill it!"); stack.shrink(1); return "PASS"; }; arcaneprisonkey.register(); // /summon divinerpg:death_hound ~ ~10 ~-5 {HandItems:[{Count:1,id:\"contenttweaker:sympan_spirit\"},{}],HandDropChances:[1.0f,0.0f],Attributes:[{Name:generic.maxHealth, Base:20000.0},{Name:generic.attackDamage, Base:10000.0}],Health:20000f}