Making a cuboid with 2 variables.

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

Computerize

Member
Oct 10, 2019
38
0
0
23
This is the code I am using:

Code:
every second:
  loop blocks between block at {Wood.1} and block at {Wood.2}:
    set loop-block to jungle wood bark block

Here is what happens:
https://gyazo.com/4ad849d30acae72353079b6ff8ab61c8
Here is what I want to happen:
93121fbf8c5aff19ca9bf8504f53e60b.png

https://gyazo.com/93121fbf8c5aff19ca9bf8504f53e60b

I can't use /fill as it doesn't work from console as it doesn't have an option for worlds.
 
Your best bet would be to hook into Fawe api (skript-mirror) and use the methods provided in it for efficient block setting.
 
Your best bet would be to hook into Fawe api (skript-mirror) and use the methods provided in it for efficient block setting.
Do you know if there's anyway to check if a player is in the world "example" and sudo them as if they were OP (all permissions) to do /example
 
code_language.skript:
world of player is "world"
if player is op:
    make player execute command "example"
else:
    op player
    make player execute command "example"
    deop player
 
This is the code I am using:

Code:
every second:
  loop blocks between block at {Wood.1} and block at {Wood.2}:
    set loop-block to jungle wood bark block

Here is what happens:
https://gyazo.com/4ad849d30acae72353079b6ff8ab61c8
Here is what I want to happen:
93121fbf8c5aff19ca9bf8504f53e60b.png

https://gyazo.com/93121fbf8c5aff19ca9bf8504f53e60b

I can't use /fill as it doesn't work from console as it doesn't have an option for worlds.

code_language.skript:
loop all blocks within {Wood.1} and {Wood.2}:
Parameters you have in this loop:
code_language.skript:
loop-block, location of loop-block, type of loop-block, (x,y,z) coord of loop-block
[doublepost=1588754150,1588753967][/doublepost]
code_language.skript:
loop all blocks within {Wood.1} and {Wood.2}:
Parameters you have in this loop:
code_language.skript:
loop-block, location of loop-block, type of loop-block, (x,y,z) coord of loop-block
This is the real cuboid, while using "between" you're telling skript to set the block that is inside region of the distance between two blocks
 
Status
Not open for further replies.