Block placing not working

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
try
Code:
on place:
  if player is in world "hub":
    if event-block is not wool:
      cancel event
    else:
      if player has permission "vip":
        set {_block} to "%{woolcolor::%player%}% wool" parsed as a block
        if {_block} is set:
          set event-block to {_block}
          wait 3 seconds
          set event-block to air
        else:
          set event-block to white wool
          wait 3 seconds
          set event-block to air
      else:
        set event-block to white wool
        wait 3 seconds
        set event-block to air

command /woolcolor <text>:
  trigger:
    set {woolcolor::%player%} to arg-1
    send "Changed wool color to %arg-1%"
 
try
Code:
on place:
  if player is in world "hub":
    if event-block is not wool:
      cancel event
    else:
      if player has permission "vip":
        set {_block} to "%{woolcolor::%player%}% wool" parsed as a block
        if {_block} is set:
          set event-block to {_block}
          wait 3 seconds
          set event-block to air
        else:
          set event-block to white wool
          wait 3 seconds
          set event-block to air
      else:
        set event-block to white wool
        wait 3 seconds
        set event-block to air

command /woolcolor <text>:
  trigger:
    set {woolcolor::%player%} to arg-1
    send "Changed wool color to %arg-1%"
thanks, but it doesnt work
 
{woolcolor.%player%} is a text, not a block

use

set {woolcolor.%player%} to "%arg-1% wool" parsed as material
 
Status
Not open for further replies.