#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();