make player see block as 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 community!

    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!

BolaPlayz

Member
Aug 29, 2023
3
0
1
Hi, I am trying to give any player with permission "xray.use" to use command /xray
I know how, but the problem when i make the xray work, I get errors

command /xray <text>:
permission: xray.use
permission message: "&cYou need <black>[<white>V<black>I<red>P<aqua>++<black>] to use this command !"
usage: "&a/xray [<red>on&a/<red>off&a]"
trigger:
if arg-1 is "on":
make player see sand as glass
send "&aXray is on!"
else if arg-1 is "off":
make player see sand as sand
send "&aXray is off!"

here, i get errors in line 7 and 10, The error say: Can't understand this condition/effect: make player see sand as glass, Anybody got an solution for this?
 
Hi, I am trying to give any player with permission "xray.use" to use command /xray
I know how, but the problem when i make the xray work, I get errors

command /xray <text>:
permission: xray.use
permission message: "&cYou need <black>[<white>V<black>I<red>P<aqua>++<black>] to use this command !"
usage: "&a/xray [<red>on&a/<red>off&a]"
trigger:
if arg-1 is "on":
make player see sand as glass
send "&aXray is on!"
else if arg-1 is "off":
make player see sand as sand
send "&aXray is off!"

here, i get errors in line 7 and 10, The error say: Can't understand this condition/effect: make player see sand as glass, Anybody got an solution for this?
I'm guessing your issue is that you're using improper syntax. Firstly, you need to make sure you have SkQuery. Next, you'll need to figure out how to best use the 'make player see' effect for an x-ray command (It may only work for targeted blocks so you may have to come up with a different solution that uses that effect).