#How can i check for a block above a block in a loop
1 messages · Page 1 of 1 (latest)
You said the line
while {machine::*} contains dispenser:
wait 2 seconds
loop {machine::*}:
# set {_input} to block 1 up of dispenser
# set {_name1} to name of block 1 up of dispenser
if name of loop-value is "&6&lOutput":
wait 1 seconds
set {_input} to block 1 up
set {_name1} to name of block 1 up
broadcast "This works"
broadcast "%{_input}%"
if {_name1} is "&9&lInput":
broadcast "&9Input found"
broadcast "%{_input}%"```
block above {_loc}
this is the code i have so far
Could stringify it
Blocks dont have names
I mean these
Skript doesnt know which dispenser block you’re referring to. It doesnt even know theres one there
There is, you just have to have a way to refer to the block you mean
Like a variable or expression
i need to figure that out