On break

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

grayson9352

Member
Nov 5, 2019
2
0
0
45
On break:
cancel event
set event-block to air
drop {number} block
add {number} to {number}


Just so you know number is 6 it can’t understand line 4 help
 
On break:
cancel event
set event-block to air
drop {number} block
add {number} to {number}


Just so you know number is 6 it can’t understand line 4 help
Try `{number} of event-block`
 
As TP said, you need to deal with the block before changing it to air.
In your code you are changing event block to air, then trying to drop event block, which equals air.
In this case you are probably best to pop it into a variable, and using `type of`

ex:
code_language.skript:
on break:
    cancel event
    set {_b} to type of event-block
    set event-block to air
    drop {number} of {_b} at location of event-block
 
Status
Not open for further replies.