Crop Hopper

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

TrickDev

Member
Sep 16, 2019
3
0
0
Im trying to make a crop hopper.
Code:
on place hopper:
    if name of player's held item is colored "&d&lChunk Hopper":
        add event-block's location to {chunkhoppers::*}
on break hopper:
    if {chunkhoppers::*} contains event-block's location:
        remove event-block's location from {chunkhoppers::*}
every second:
    loop {chunkhoppers::*}:
        loop dropped items in radius 16 around loop-value where [chunk of dropped item input = chunk at loop-value]:
            if loop-item is wheat item:
                add loop-item to loop-variable's inventory
                delete loop-item
I have this but Im really bad and I just want the hopper to pick up all blocks in the chunk its in
 
Status
Not open for further replies.