Created
August 2, 2011 00:06
-
-
Save Pwootage/1119286 to your computer and use it in GitHub Desktop.
Arrow puzzle noteblock->lightstone then trigger nearby memory blocks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pinv = player.getInventory() | |
redck = 4 | |
var ppos = player.getPosition(); | |
var px = Math.round(ppos.x); | |
var py = Math.round(ppos.y); | |
var pz = Math.round(ppos.z); | |
for each (var entity in player.getEntitiesWithinRange(50)) | |
{ | |
if(entity.classType == "Arrow") | |
{ | |
if(entity.isPlayersArrow && entity.inBlockID == 25) | |
{ | |
blockCoord = entity.inBlockCoords | |
world.setBlockID(blockCoord.x, blockCoord.y, blockCoord.z,89) | |
entity.isPlayersArrow = false | |
for (var i = blockCoord.x - redck; i < blockCoord.x + redck; i++) | |
{ | |
for (var j = blockCoord.y - redck; j < blockCoord.y + redck; j++) | |
{ | |
for (var k = blockCoord.z - redck; k < blockCoord.z + redck; k++) | |
{ | |
var id = world.getBlockID(i,j,k); | |
if (id == 108) | |
{ | |
world.triggerBlock(i,j,k); | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment