update
This commit is contained in:
@@ -1977,3 +1977,233 @@ trinity_fabrial.register();
|
||||
|
||||
|
||||
|
||||
|
||||
var summonsofragnarok = VanillaFactory.createItem("summons_of_ragnarok");
|
||||
summonsofragnarok.maxStackSize = 1;
|
||||
summonsofragnarok.itemRightClick = function(stack, world, player, hand) {
|
||||
if(world.remote) {
|
||||
return "FAIL";
|
||||
}
|
||||
|
||||
// counter for fails or successes
|
||||
var matchGen = 0 as int;
|
||||
|
||||
// player position
|
||||
var playerPos = player.position.asPosition3f();
|
||||
playerPos.x = playerPos.x;
|
||||
playerPos.y = playerPos.y - 1;
|
||||
playerPos.z = playerPos.z;
|
||||
|
||||
if(player.getDimension() != 426) {
|
||||
player.sendChat("用诸神黄昏印记填补迷道撕裂器在秘界留下的中央5x5区域");
|
||||
return "FAIL";
|
||||
}
|
||||
player.sendChat("用诸神黄昏印记填补迷道撕裂器在秘界留下的中央5x5区域");
|
||||
|
||||
|
||||
if (getBlockMatchAtPosition("contenttweaker:ragnarok_sigil", playerPos, [0,0,0], world) == 0){
|
||||
player.sendChat("缺失诸神黄昏印记:[0,0,0]");
|
||||
return "FAIL";
|
||||
}
|
||||
|
||||
if (getBlockMatchAtPosition("contenttweaker:ragnarok_sigil", playerPos, [1,0,0], world) == 0){
|
||||
player.sendChat("缺失诸神黄昏印记:[1,0,0]");
|
||||
return "FAIL";
|
||||
}
|
||||
if (getBlockMatchAtPosition("contenttweaker:ragnarok_sigil", playerPos, [-1,0,0], world) == 0){
|
||||
player.sendChat("缺失诸神黄昏印记:[-1,0,0]");
|
||||
return "FAIL";
|
||||
}
|
||||
if (getBlockMatchAtPosition("contenttweaker:ragnarok_sigil", playerPos, [0,0,1], world) == 0){
|
||||
player.sendChat("缺失诸神黄昏印记:[0,0,1]");
|
||||
return "FAIL";
|
||||
}
|
||||
if (getBlockMatchAtPosition("contenttweaker:ragnarok_sigil", playerPos, [0,0,-1], world) == 0){
|
||||
player.sendChat("缺失诸神黄昏印记:[0,0,-1]");
|
||||
return "FAIL";
|
||||
}
|
||||
|
||||
if (getBlockMatchAtPosition("contenttweaker:ragnarok_sigil", playerPos, [2,0,0], world) == 0){
|
||||
player.sendChat("缺失诸神黄昏印记:[2,0,0]");
|
||||
return "FAIL";
|
||||
}
|
||||
if (getBlockMatchAtPosition("contenttweaker:ragnarok_sigil", playerPos, [-2,0,0], world) == 0){
|
||||
player.sendChat("缺失诸神黄昏印记:[-2,0,0]");
|
||||
return "FAIL";
|
||||
}
|
||||
if (getBlockMatchAtPosition("contenttweaker:ragnarok_sigil", playerPos, [0,0,2], world) == 0){
|
||||
player.sendChat("缺失诸神黄昏印记:[0,0,2]");
|
||||
return "FAIL";
|
||||
}
|
||||
if (getBlockMatchAtPosition("contenttweaker:ragnarok_sigil", playerPos, [0,0,-2], world) == 0){
|
||||
player.sendChat("缺失诸神黄昏印记:[0,0,-2]");
|
||||
return "FAIL";
|
||||
}
|
||||
|
||||
if (getBlockMatchAtPosition("contenttweaker:ragnarok_sigil", playerPos, [1,0,1], world) == 0){
|
||||
player.sendChat("缺失诸神黄昏印记:[1,0,1]");
|
||||
return "FAIL";
|
||||
}
|
||||
if (getBlockMatchAtPosition("contenttweaker:ragnarok_sigil", playerPos, [-1,0,1], world) == 0){
|
||||
player.sendChat("缺失诸神黄昏印记:[-1,0,1]");
|
||||
return "FAIL";
|
||||
}
|
||||
if (getBlockMatchAtPosition("contenttweaker:ragnarok_sigil", playerPos, [1,0,-1], world) == 0){
|
||||
player.sendChat("缺失诸神黄昏印记:[1,0,-1]");
|
||||
return "FAIL";
|
||||
}
|
||||
if (getBlockMatchAtPosition("contenttweaker:ragnarok_sigil", playerPos, [-1,0,-1], world) == 0){
|
||||
player.sendChat("缺失诸神黄昏印记:[-1,0,-1]");
|
||||
return "FAIL";
|
||||
}
|
||||
|
||||
if (getBlockMatchAtPosition("contenttweaker:ragnarok_sigil", playerPos, [2,0,2], world) == 0){
|
||||
player.sendChat("缺失诸神黄昏印记:[2,0,2]");
|
||||
return "FAIL";
|
||||
}
|
||||
if (getBlockMatchAtPosition("contenttweaker:ragnarok_sigil", playerPos, [-2,0,2], world) == 0){
|
||||
player.sendChat("缺失诸神黄昏印记:[-2,0,2]");
|
||||
return "FAIL";
|
||||
}
|
||||
if (getBlockMatchAtPosition("contenttweaker:ragnarok_sigil", playerPos, [2,0,-2], world) == 0){
|
||||
player.sendChat("缺失诸神黄昏印记:[2,0,-2]");
|
||||
return "FAIL";
|
||||
}
|
||||
if (getBlockMatchAtPosition("contenttweaker:ragnarok_sigil", playerPos, [-2,0,-2], world) == 0){
|
||||
player.sendChat("缺失诸神黄昏印记:[-2,0,-2]");
|
||||
return "FAIL";
|
||||
}
|
||||
|
||||
if (getBlockMatchAtPosition("contenttweaker:ragnarok_sigil", playerPos, [1,0,2], world) == 0){
|
||||
player.sendChat("缺失诸神黄昏印记:[1,0,2]");
|
||||
return "FAIL";
|
||||
}
|
||||
if (getBlockMatchAtPosition("contenttweaker:ragnarok_sigil", playerPos, [-1,0,2], world) == 0){
|
||||
player.sendChat("缺失诸神黄昏印记:[-1,0,2]");
|
||||
return "FAIL";
|
||||
}
|
||||
if (getBlockMatchAtPosition("contenttweaker:ragnarok_sigil", playerPos, [1,0,-2], world) == 0){
|
||||
player.sendChat("缺失诸神黄昏印记:[1,0,-2]");
|
||||
return "FAIL";
|
||||
}
|
||||
if (getBlockMatchAtPosition("contenttweaker:ragnarok_sigil", playerPos, [-1,0,-2], world) == 0){
|
||||
player.sendChat("缺失诸神黄昏印记:[-1,0,-2]");
|
||||
return "FAIL";
|
||||
}
|
||||
|
||||
if (getBlockMatchAtPosition("contenttweaker:ragnarok_sigil", playerPos, [2,0,1], world) == 0){
|
||||
player.sendChat("缺失诸神黄昏印记:[2,0,1]");
|
||||
return "FAIL";
|
||||
}
|
||||
if (getBlockMatchAtPosition("contenttweaker:ragnarok_sigil", playerPos, [-2,0,1], world) == 0){
|
||||
player.sendChat("缺失诸神黄昏印记:[-2,0,1]");
|
||||
return "FAIL";
|
||||
}
|
||||
if (getBlockMatchAtPosition("contenttweaker:ragnarok_sigil", playerPos, [2,0,-1], world) == 0){
|
||||
player.sendChat("缺失诸神黄昏印记:[2,0,-1]");
|
||||
return "FAIL";
|
||||
}
|
||||
if (getBlockMatchAtPosition("contenttweaker:ragnarok_sigil", playerPos, [-2,0,-1], world) == 0){
|
||||
player.sendChat("缺失诸神黄昏印记:[-2,0,-1]");
|
||||
return "FAIL";
|
||||
}
|
||||
|
||||
if (getBlockMatchAtPosition("contenttweaker:yggdrasil_wood", playerPos, [3,0,0], world) == 0){
|
||||
player.sendChat("缺失世界树之木:[3,0,0]");
|
||||
return "FAIL";
|
||||
}
|
||||
if (getBlockMatchAtPosition("contenttweaker:yggdrasil_wood", playerPos, [-3,0,0], world) == 0){
|
||||
player.sendChat("缺失世界树之木:[-3,0,0]");
|
||||
return "FAIL";
|
||||
}
|
||||
if (getBlockMatchAtPosition("contenttweaker:yggdrasil_wood", playerPos, [0,0,3], world) == 0){
|
||||
player.sendChat("缺失世界树之木:[0,0,3]");
|
||||
return "FAIL";
|
||||
}
|
||||
if (getBlockMatchAtPosition("contenttweaker:yggdrasil_wood", playerPos, [0,0,-3], world) == 0){
|
||||
player.sendChat("缺失世界树之木:[0,0,-3]");
|
||||
return "FAIL";
|
||||
}
|
||||
|
||||
if (getBlockMatchAtPosition("contenttweaker:yggdrasil_wood", playerPos, [4,0,0], world) == 0){
|
||||
player.sendChat("缺失世界树之木:[4,0,0]");
|
||||
return "FAIL";
|
||||
}
|
||||
if (getBlockMatchAtPosition("contenttweaker:yggdrasil_wood", playerPos, [-4,0,0], world) == 0){
|
||||
player.sendChat("缺失世界树之木:[-4,0,0]");
|
||||
return "FAIL";
|
||||
}
|
||||
if (getBlockMatchAtPosition("contenttweaker:yggdrasil_wood", playerPos, [0,0,4], world) == 0){
|
||||
player.sendChat("缺失世界树之木:[0,0,4]");
|
||||
return "FAIL";
|
||||
}
|
||||
if (getBlockMatchAtPosition("contenttweaker:yggdrasil_wood", playerPos, [0,0,-4], world) == 0){
|
||||
player.sendChat("缺失世界树之木:[0,0,-4]");
|
||||
return "FAIL";
|
||||
}
|
||||
|
||||
|
||||
Commands.call("/summon divinerpg:rainbour ~10 ~3 ~ {CustomName:\"尼德霍格\",Invulnerable:1,PersistenceRequired:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:999999},{Id:24,Amplifier:0,Duration:999999}],Passengers:[{id:\"minecraft:villager\",CustomName:\"拉塔托斯克\",Invulnerable:1,PersistenceRequired:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:999999},{Id:24,Amplifier:0,Duration:999999}],Offers:{Recipes:[{buy:{id:\"botania:infinitefruit\",Count:1},sell:{id:\"contenttweaker:breath_of_ragnarok\",Count:1},rewardExp:0b,maxUses:9999999}]}}]}", player, world, false, true);
|
||||
stack.shrink(1);
|
||||
return "PASS";
|
||||
|
||||
};
|
||||
summonsofragnarok.register();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//summon villager ~ ~3 ~ {Invulnerable:1, CustomName:"Loki",Offers:{Recipes:[{buy:{id:"botania:lokiring",Count:1},sell:{id:"contenttweaker:gratitude_of_loki",Count:1},rewardExp:0b,maxUses:9999999}]},Profession:2,Career:1,CareerLevel:3,ActiveEffects:[{Id:14,Amplifier:0,Duration:999999},{Id:24,Amplifier:0,Duration:999999}]}
|
||||
|
||||
|
||||
|
||||
|
||||
var summonsofthetwilithero = VanillaFactory.createItem("summons_of_the_twilit_hero");
|
||||
summonsofthetwilithero.maxStackSize = 1;
|
||||
summonsofthetwilithero.itemRightClick = function(stack, world, player, hand) {
|
||||
if(world.remote) {
|
||||
return "FAIL";
|
||||
}
|
||||
|
||||
// counter for fails or successes
|
||||
var matchGen = 0 as int;
|
||||
|
||||
// player position
|
||||
var playerPos = player.position.asPosition3f();
|
||||
playerPos.x = playerPos.x;
|
||||
playerPos.y = playerPos.y - 1;
|
||||
playerPos.z = playerPos.z;
|
||||
|
||||
if(player.getDimension() != 7) {
|
||||
player.sendChat("将黄昏召唤石结构顶部中心的传送门方块替换为暮光自由法器,然后站在上面");
|
||||
return "FAIL";
|
||||
}
|
||||
|
||||
if (getBlockMatchAtPosition("contenttweaker:twilit_freedom_fabrial", playerPos, [0,0,0], world) == 0){
|
||||
player.sendChat("将黄昏召唤石结构顶部中心的传送门方块替换为暮光自由法器,然后站在上面");
|
||||
return "FAIL";
|
||||
}
|
||||
|
||||
if (getBlockMatchAtPosition("twilightforest:auroralized_glass", playerPos, [0,-1,0], world) == 0){
|
||||
player.sendChat("将黄昏召唤石结构顶部中心的传送门方块替换为暮光自由法器,然后站在上面");
|
||||
return "FAIL";
|
||||
}
|
||||
if (getBlockMatchAtPosition("twilightforest:auroralized_glass", playerPos, [0,-2,0], world) == 0){
|
||||
player.sendChat("将黄昏召唤石结构顶部中心的传送门方块替换为暮光自由法器,然后站在上面");
|
||||
return "FAIL";
|
||||
}
|
||||
if (getBlockMatchAtPosition("twilightforest:auroralized_glass", playerPos, [0,-3,0], world) == 0){
|
||||
player.sendChat("将黄昏召唤石结构顶部中心的传送门方块替换为暮光自由法器,然后站在上面");
|
||||
return "FAIL";
|
||||
}
|
||||
|
||||
|
||||
Commands.call("fill ~-5 ~-5 ~-5 ~5 ~1 ~5 contenttweaker:crepuscular_portal_block 0 replace twilightforest:auroralized_glass", player, world, false, true);
|
||||
|
||||
|
||||
stack.shrink(1);
|
||||
return "PASS";
|
||||
|
||||
};
|
||||
summonsofthetwilithero.register();
|
||||
Reference in New Issue
Block a user