Solved set {x.cord} to x-cord of exploded block

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

Status
Not open for further replies.

TimCom228

Member
Dec 26, 2019
31
0
6
I need to do something like this
Code:
on explode:
  loop exploded blocks:
    loop-block is gold block
    set {x.cord} to the event-block's x-coordinate
    set {y.cord} to the event-block's y-coordinate
    set {z.cord} to the event-block's z-coordinate
    make console execute command "/rg remove -w world ps%{x.cord}-0.5%x%{y.cord}-0.5%y%{z.cord}-0.5%z"
Please help.
 
I need to do something like this
Code:
on explode:
  loop exploded blocks:
    loop-block is gold block
    set {x.cord} to the event-block's x-coordinate
    set {y.cord} to the event-block's y-coordinate
    set {z.cord} to the event-block's z-coordinate
    make console execute command "/rg remove -w world ps%{x.cord}-0.5%x%{y.cord}-0.5%y%{z.cord}-0.5%z"
Please help.

Code:
on explode:
  loop exploded blocks:
    loop-block is gold block
    set {_x.cord} to x-coord of loop-block
    set {_y.cord} to y-coord of loop-block
    set {_z.cord} to z-coord of loop-block
    make console execute command "/rg remove -w world ps%{_x.cord}-0.5%x%{_y.cord}-0.5%y%{_z.cord}-0.5%z"
 
Code:
on explode:
  loop exploded blocks:
    loop-block is gold block
    set {_x.cord} to x-coord of loop-block
    set {_y.cord} to y-coord of loop-block
    set {_z.cord} to z-coord of loop-block
    make console execute command "/rg remove -w world ps%{_x.cord}-0.5%x%{_y.cord}-0.5%y%{_z.cord}-0.5%z"

does not work
 
Instead of does not work maybe show the error instead?
The plugin itself does not throw an error and reloads the script perfectly. But strange messages from bukkit appear in the console.
[doublepost=1584173713,1584173518][/doublepost]Skreenshot
 

Attachments

  • Снимфіааааааааааок.PNG
    Снимфіааааааааааок.PNG
    81.5 KB · Views: 257
Status
Not open for further replies.