Moving blocks?

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

penqs

Member
Mar 24, 2021
2
0
1
Hello!
I'm trying to make a conveyor. What I need to figure out is how to move a block.
One thing i've tried is setting {barrel} to the location of the barrel, and then adding 1 to barrel. but It didn't work.
I don't know if this is simple, I'm sure it's not.
It could go something like this:
Code:
on place of barrel:
    set {barrel} to event-block's location
    move event-block by 1

I don't know though. That's why i'm posting here
 
You can try something like this:

on place of barrel:
cancel event
set {_barrel} to 1 block in front of event-block's location
set block at {_barrel} to barrel
 
Status
Not open for further replies.