1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Cancel drops from blocks

Discussion in 'Skript' started by Nikola, Mar 22, 2020.

Thread Status:
Not open for further replies.
  1. Nikola

    Nikola Member

    Joined:
    Jul 10, 2019
    Messages:
    38
    Likes Received:
    1
    Hi, I am making a farm skript for my server, and my idea is to use custom plants. I have made schematic files with WorldEdit (I have stacked 2 or more sunflower plants (only one block) on top of each other, and saved that build as schematic). I want to block item drops (sunflowers), because when one block is broken, it updates all blocks above that one block and there are sunflower drops. If you can't understand well what I am talking about, look at this picture:
    Screenshot_1.png
    Thats 2 plant block stacked on top of each other.

    How can I cancel sunflower drops?

    SKRIPT ADDONS INSTALLED:
    SkStuff, Skript-Mirror, SkRayFall, SkQuery, SharpSk, Ersatz.
    Skript version (1.12.2 / 2.4.1)
     
    #1 Nikola, Mar 22, 2020
    Last edited: Mar 22, 2020
  2. Lego_freak1999

    Lego_freak1999 Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    664
    Likes Received:
    45
    On item spawn:
     
  3. Nikola

    Nikola Member

    Joined:
    Jul 10, 2019
    Messages:
    38
    Likes Received:
    1
    Thanks for answering, but doesn't work. No errors, it loads perfectly, but sunflower drops appear as before.
    --- Double Post Merged, Mar 22, 2020, Original Post Date: Mar 22, 2020 ---
    Fixed my problem with this code:
    Code (Text):
    1. loop dropped items in radius 3 of event-location:
    2.    delete loop-value
    This may not be the perfect solution to everyone, since players may be able to drop items in that area. In my case, players can't drop items at farm region, and this works for me.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...