Thanks, but what I'm trying to do is whenever a player steps on a block that has netherrack below it they get ignited and this isn't working.
code_language.skript:
on any move:
set block below the player to {trap}
if block below "%{trap}%" is netherack:
ignite the player for 2 seconds
Okay, so, like, the "on any movement" event will most likely lag your server because of how many times it's going to get called; however, there may not be another way to do what you're looking to do (at least not that
I know).
code_language.skript:
set block below the player to {trap}
Okay, so first off, you're
setting the block below the player to a variable, meaning that the block below the player will turn into whatever is in {trap}.
We'd want something of this sort:
code_language.skript:
set {_trap} to block below block below the player
Block below the player refers to the block the player is standing on- we want the block below that one. In addition, we can use
local variables, where they are only accessible in the single event instance.
code_language.skript:
if block below "%{trap}%" is netherack:
In this condition, you're comparing a string with a block type, which is always going to return false. Since {_trap} is already of the type block type, we could just compare it to netherrack by itself:
So, something like this may work:
code_language.skript:
on any movement:
set {_trap} to block below block below player
if {_trap} is netherrack:
send "test"