Vanilladeathchest

vanilladeathchest
import crafttweaker.event.PlayerLoggedInEvent;
import mods.contenttweaker.Commands;
import crafttweaker.player.IPlayer;
import crafttweaker.command.ICommand;
import crafttweaker.potions.IPotionEffect;
import crafttweaker.event.CommandEvent;
import crafttweaker.event.PlayerCraftedEvent;
import crafttweaker.item.IItemStack;
import mods.contenttweaker.World;
import mods.VanillaDeathChest;

vanilladeathchest click here vanilladeathchest
//This gives the initial levitation effect to the player when first logging into the server, as well as giving them their default game-stage
events.onPlayerLoggedIn(function(event as PlayerLoggedInEvent){
if(!event.player.hasAnyGameStages(“overworld”, “skyblock”)) {
event.player.addGameStage(“skyblock”);
event.player.addGameStage(“one”);
event.player.addPotionEffect(.makePotionEffect(1000000, 255, true, false));
}
});

//This adjusts the player’s gamestage when traveling between the overworld and skyblock dimensions
vanilladeathchest website vanilladeathchest
//The second and third are regular swaps of skyblock and overworld
//The first condition is in case the player is going to the overworld for the first time, since the starting stages are different depending on
events.onPlayerChangedDimension(function(event as crafttweaker.event.PlayerChangedDimensionEvent){
if (event.to == 0){
event.player.addGameStage(“overworld”);
event.player.removeGameStage(“skyblock”);
if (event.player.hasAnyGameStages(“one”)){
event.player.addGameStage(“two”);
event.player.removeGameStage(“one”);
}
vanilladeathchest here vanilladeathchest
}
else if (event.to == 4){
event.player.addGameStage(“skyblock”);
event.player.removeGameStage(“overworld”);
if (event.player.hasAnyGameStages(“two”)){
event.player.addGameStage(“one”);
event.player.removeGameStage(“two”);
}
}
}
vanilladeathchest website vanilladeathchest
);

//Adjusting the stage per the player’s progression
events.onPlayerCrafted(function(event as PlayerCraftedEvent){
if(.matches(event.output)) {
if(!event.player.hasAnyGameStages(“two”, “three”, “four”, “five”)) {
if(event.player.world.isRemote()) {
return;
}
event.player.addGameStage(“two”);
vanilladeathchest check here vanilladeathchest
event.player.removeGameStage(“one”);
event.player.sendChat(“You’re settling down, advanced to stage two”);
return;
}

}
});

events.onPlayerCrafted(function(event as PlayerCraftedEvent){
if(.matches(event.output)) {
vanilladeathchest read more vanilladeathchest
if(!event.player.hasAnyGameStages(“three”)) {
if(event.player.world.isRemote()) {
return;
}
event.player.addGameStage(“three”);
event.player.removeGameStage(“two”);
event.player.sendChat(“You made an iron pickaxe, advanced to stage three”);
return;
}

vanilladeathchest read more vanilladeathchest
}
});

events.onPlayerCrafted(function(event as PlayerCraftedEvent){
if(.matches(event.output)) {
if(!event.player.hasAnyGameStages(“three”)) {
if(event.player.world.isRemote()) {
return;
}
event.player.addGameStage(“three”);
vanilladeathchest get more info vanilladeathchest
event.player.removeGameStage(“two”);
event.player.sendChat(“You made a diamond pickaxe, advanced to stage four”);
return;
}

}
});

//This adds or removes the levitation effect to the void dimension, to create the feeling of weightlessness
events.onCommand(function(event as CommandEvent) {
vanilladeathchest check here vanilladeathchest
val command = event.command;
print(command.name);

for parameter in event.parameters
print(“t” ~ parameter);

if(isNull(command) || (command.name != “island”) || (event.parameters.length == 0)) return;

if(event.commandSender instanceof IPlayer) {
val player as IPlayer = event.commandSender;
vanilladeathchest here vanilladeathchest
val subCommand = event.parameters[0];
if (subCommand == “create”) {
player.clearActivePotions();
//player.sendChat(“You were cleared of effects”);
}
else if (subCommand == “spawn”) {
player.addPotionEffect(.makePotionEffect(1000000, 255, true, false));
//player.sendChat(“You were given effects”);
}
else if (subCommand == “home”) {
vanilladeathchest more info vanilladeathchest
player.clearActivePotions();
//player.sendChat(“You were cleared of effects, because you went home”);
}

}
});

//Staging ex nihilo & ex compressum to skyblock only
mods.ItemStages.stageModItems(“skyblock”, “exnihilocreatio”);
mods.recipestages.Recipes.setRecipeStageByMod(“skyblock”, “exnihilocreatio”);
vanilladeathchest here vanilladeathchest
mods.ItemStages.stageModItems(“skyblock”, “excompressum”);
mods.recipestages.Recipes.setRecipeStageByMod(“skyblock”, “excompressum”);

//Death Token per stage

//Stage 1
VanillaDeathChest.setUnlockerRegistryName(“one”, “minecraft:stone_shovel”);
VanillaDeathChest.setDefenseEntityRegistryName(“one”, “playerskins:playermob”);

//Stage 2
vanilladeathchest check here vanilladeathchest
VanillaDeathChest.setUnlockerRegistryName(“two”, “minecraft:iron_shovel”);
VanillaDeathChest.setDefenseEntityRegistryName(“two”, “minecraft:skeleton”);

//Stage 3
VanillaDeathChest.setUnlockerRegistryName(“three”, “minecraft:diamond_shovel”);
VanillaDeathChest.setDefenseEntityRegistryName(“three”, “primitivemobs:skeleton_warrior”);

//Stage 4

vanilladeathchest more info vanilladeathchest
//stage 5

/*
mods.recipestages.Recipes.addShapeless(“Death Token1”, “one”, ,[]);
mods.recipestages.Recipes.addShapeless(“Death Token2”, “two”, ,[]);
mods.recipestages.Recipes.addShapeless(“Death Token3”, “three”, ,[]);
mods.recipestages.Recipes.addShapeless(“Death Token4”, “four”, ,[]);*/
vanilladeathchest

Tags: vanilladeathchest, www bcfakes com

Leave a Comment