Set {_Block} Targeted Block Error

  • 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.

InTheVan

Member
Sep 16, 2017
4
0
0
21
command /gen1 <text>:
trigger:
if player has permission "gen.admin":
if arg 1 is "upgrade":
if targeted block is cobblestone:
set {_block} to targeted block:
if player's level is larger than 59:
reduce the player's level by 60
if {vip.%Block%} is true:
set {_block} {vip.%Block%} to false
set {_block} {vip2.%Block%} to true
send "&aGenerator has been upgraded"

Im trying to make it upgrade aka change a block value from "{vip.%Block%}" to "{vip2.%Block%}" and its saying this. Please help me define {_block} as targeted block or a new method to do this.

https://gyazo.com/a1683442f68c5e0d916dc81058a4632f
 
command /gen1 <text>:
trigger:
if player has permission "gen.admin":
if arg 1 is "upgrade":
if targeted block is cobblestone:
set {_block} to targeted block:
if player's level is larger than 59:
reduce the player's level by 60
if {vip.%Block%} is true:
set {_block} {vip.%Block%} to false
set {_block} {vip2.%Block%} to true
send "&aGenerator has been upgraded"

Im trying to make it upgrade aka change a block value from "{vip.%Block%}" to "{vip2.%Block%}" and its saying this. Please help me define {_block} as targeted block or a new method to do this.

https://gyazo.com/a1683442f68c5e0d916dc81058a4632f
code_language.skript:
set {_block} to target block
 
code_language.skript:
set {_block} to target block
Ok that worked thanks, but now im running into another issue, https://gyazo.com/8d51002f3298f4968d24f5f8719823ad

command /gen10 <text>:
trigger:
if player has permission "gen.admin":
if arg 1 is "upgrade":
if targeted block is cobblestone:
set {_block} to target block
if player's level is larger than 59:
reduce the player's level by 60
set {_block} to diamond ore
if {vip.%Block%} is true:
set {vip.%Block%} to false
set {vip2.%Block%} to true
send "&aGenerator has been upgraded"
else:
send "&8&l(&5&lDivine&7&lCrystals&8&l) &7You need to have atleast 60 levels to upgrade your generator!"
stop
 
This?
code_language.skript:
command /gen10 <text>:
    trigger:
        if player has permission "gen.admin":
            if arg 1 is "upgrade":
                if targeted block is cobblestone:
                    set {_block} to target block
                    if player's level is larger than 59:
                        reduce the player's level by 60
                        set {_block} to diamond ore
                        if {vip.%{_block}%} is true:
                            set {vip.%{_block}%} to false
                            set {vip2.%{_block}%} to true
                            message "&aGenerator has been upgraded"
                        else:
                            message "&8&l(&5&lDivine&7&lCrystals&8&l) &7You need to have atleast 60 levels to upgrade your generator!"
 
This?
code_language.skript:
command /gen10 <text>:
    trigger:
        if player has permission "gen.admin":
            if arg 1 is "upgrade":
                if targeted block is cobblestone:
                    set {_block} to target block
                    if player's level is larger than 59:
                        reduce the player's level by 60
                        set {_block} to diamond ore
                        if {vip.%{_block}%} is true:
                            set {vip.%{_block}%} to false
                            set {vip2.%{_block}%} to true
                            message "&aGenerator has been upgraded"
                        else:
                            message "&8&l(&5&lDivine&7&lCrystals&8&l) &7You need to have atleast 60 levels to upgrade your generator!"
Thank you so so so much! I spend hours trying to do this
 
Status
Not open for further replies.