This commit is contained in:
sainagh
2023-09-06 13:53:58 -07:00
parent 92e3a04cb4
commit 4e605c4f81
655 changed files with 125048 additions and 13546 deletions
+29 -2
View File
@@ -63,9 +63,15 @@ markofthesamurai.itemRightClick = function(stack, world, player, hand) {
val OminousMatches = checkBiomesAtPositions(OminousBiomeName, playerpos, OminousBiomeLocations, world) as int;
val VolcanicMatches = checkBiomesAtPositions(VolcanicBiomeName, playerpos, VolcanicBiomeLocations, world) as int;
player.sendChat("Use the arcane terraformer to create a plus sign of Ominous Woods biome!");
player.sendChat("Use the arcane terraformer to create a plus sign of Ominous Woods biome blocks surrounded by volcanic biome (not volcanic barren)");
player.sendChat("Stand in the center and use this item!");
player.sendChat(" - - - ");
player.sendChat("Scanning 3x3 area around you");
player.sendChat("Ominous Woods : " ~ OminousMatches ~ " out of 5");
player.sendChat("Volcanic : " ~ VolcanicMatches ~ " out of 4");
if((OminousMatches+VolcanicMatches) == 9) {
Commands.call("give @p contenttweaker:sword_shield", player, world, true, true);
stack.shrink(1);
@@ -143,7 +149,9 @@ terraformassiflora.itemRightClick = function(stack, world, player, hand) {
val NumberOfMatches = MysteriumMatches + NuclearWastelandMatches + StorageBiomeMatches + CrystalChasmsMatches + BlackVoidMatches + TwilightStreamMatches + AlienForestMatches + ThornlandsMatches + IromineMatches + StormlandMatches + BogMatches + TaintedLandsMatches as int;
player.sendChat("Scanning 5x5 area around you");
player.sendChat("Biome Ritual: " ~ NumberOfMatches ~ " out of 25");
if((MysteriumMatches) == 2) {
player.sendChat("Mysterium : " ~ MysteriumMatches ~ " out of 2");
@@ -232,4 +240,23 @@ terraformassiflora.itemRightClick = function(stack, world, player, hand) {
return "PASS";
};
terraformassiflora.register();
terraformassiflora.register();
var biomechecker = VanillaFactory.createItem("biome_checker");
biomechecker.maxStackSize = 1;
biomechecker.itemRightClick = function(stack, world, player, hand) {
if(world.remote) {
return "FAIL";
}
// obtain position under player
val playerpos = player.position as crafttweaker.util.Position3f;
// send biome name in chat
player.sendChat("Biome : " ~ world.getBiome(playerpos).name ~ " ");
return "PASS";
};
biomechecker.register();