#can we make argument as block type?

1 messages · Page 1 of 1 (latest)

upper folio
#

i have a code
command /block <text> <text> <text>:
executable by: console and players
trigger:
if arg-2 is "layer1":
set {gblock::1} to "%arg-3% block"
send "layer 1 is set to &e%arg-3%" to all players

loop blocks within {EZBLOCK::area1} and {EZBLOCK::area2}:
if loop-block is not air or sand or concrete powder or red sand:
set loop-block to {gblock::1}

there is no error but when i place the block at the area
example i set arg-3 as diamond it doesnt change the "set loop-block to {gblock::1}" to diamond block instead when i place it the event just cancelled.. can someone help maybe i did something wrong?

ripe edge
#

itemtype

upper folio
# ripe edge itemtype

if im not bother you, can you explain more? i just add the {gblock::1} as item type or block data, but when i place the block at the area it still doesnt let me to place it (event cancelled)

ripe edge
#

Your item is a string at the moment

#

Just use itemtype for the argument type and remove the quotes