I am working on making a simple brick furnace skript, but it is returning errors
The error it is returning says that it doesn't understand the effect "wait {_w} seconds". Is this error caused by the Function having a wait?
code_language.skript:
function smelt(p: player):
set {_i} to {_p}'s tool
{_i} is an ore
send "test" to {_p}
set {_a} to amount of {_p}'s tool
if {_i} is iron ore:
remove {_a} of {_i} from {_p}
send "%{_a}%" to {_p}
set {_w} to 0.5*{_a}
send "%{_w}%" to {_p}
wait {_w} seconds
give {_p} {_a} of iron ingots
The error it is returning says that it doesn't understand the effect "wait {_w} seconds". Is this error caused by the Function having a wait?