Solved AFK Cactus Farms

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

Stef Classens

New Member
Sep 13, 2020
5
0
0
22
i'm trying to make a chunk hopper skript but i cant find a way to detect a cactus breaking because it hits a block (how an AFK cactus farm works) i tried on drop but that only detects drops by players and on physics also triggers when a cactus grows, on break and on mine only works when its done by a player. so tell me if you have any suggestions. thanks.

~Stef

Sorry for my bad english i'm dutch.
 
Code:
on item spawn:
    set {_chunk} to chunk at event-location   # to get the chunk for the hopper xd 
    if {ICC::%{_chunk}%} is set:
        if event-item is a cactus:
            if {ICC::%{_chunk}%::items::*} contains "cactus":
                set {_amount} to amount of item event-item
                add {_amount} to {ICC::%{_chunk}%::items::cactus}
a part of anonther skript ive made but should help you
 
Code:
on item spawn:
    set {_chunk} to chunk at event-location   # to get the chunk for the hopper xd
    if {ICC::%{_chunk}%} is set:
        if event-item is a cactus:
            if {ICC::%{_chunk}%::items::*} contains "cactus":
                set {_amount} to amount of item event-item
                add {_amount} to {ICC::%{_chunk}%::items::cactus}
a part of anonther skript ive made but should help you



Thanks!!
 
Status
Not open for further replies.