Last active
April 30, 2025 14:10
-
-
Save home-gihub/39d1c8f1e61cd7cb65cd74147127a3d0 to your computer and use it in GitHub Desktop.
Redstone from Temu lol
This file contains hidden or 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
// Redstone.nas | |
// Redstone in na2! | |
#onJoin | |
set Redstone.dustid 29 | |
set Redstone.pdustid 21 | |
set Redstone.powerblockid 41 | |
set Redstone.torchid 42 | |
clickevent sync register #Redstone.SendBlockUpdates|{click.x}|{click.y}|{click.z} | |
quit | |
#Redstone.PowerUpdate | |
// power +X block | |
setadd runArg1 1 | |
setblockid Redstone.Block {runArg1} {runArg2} {runArg3} | |
if Redstone.Block|=|Redstone.dustid placeblock {Redstone.pdustid} {runArg1} {runArg2} {runArg3} | |
call #Redstone.PowerUpdate|{runArg1}|{runArg2}|{runArg3} | |
// power -X block | |
setsub runArg1 2 | |
setblockid Redstone.Block {runArg1} {runArg2} {runArg3} | |
if Redstone.Block|=|Redstone.dustid placeblock {Redstone.pdustid} {runArg1} {runArg2} {runArg3} | |
call #Redstone.PowerUpdate|{runArg1}|{runArg2}|{runArg3} | |
// reset X | |
setadd runArg1 1 | |
// power +Z block | |
setadd runArg3 1 | |
setblockid Redstone.Block {runArg1} {runArg2} {runArg3} | |
if Redstone.Block|=|Redstone.dustid placeblock {Redstone.pdustid} {runArg1} {runArg2} {runArg3} | |
call #Redstone.PowerUpdate|{runArg1}|{runArg2}|{runArg3} | |
// power -Z block | |
setsub runArg3 2 | |
setblockid Redstone.Block {runArg1} {runArg2} {runArg3} | |
if Redstone.Block|=|Redstone.dustid placeblock {Redstone.pdustid} {runArg1} {runArg2} {runArg3} | |
call #Redstone.PowerUpdate|{runArg1}|{runArg2}|{runArg3} | |
quit | |
#Redstone.SendBlockUpdates | |
setblockid Redstone.Block {runArg1} {runArg2} {runArg3} | |
if Redstone.Block|=|Redstone.powerblockid call #Redstone.PowerUpdate|{runArg1}|{runArg2}|{runArg3} | |
quit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment