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!

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

Generator skript

Discussion in 'Requests' started by 2844, Nov 21, 2020.

  1. 2844

    2844 New Member

    Joined:
    Nov 21, 2020
    Messages:
    6
    Likes Received:
    0
    Category: gens

    Suggested name: gens

    Spigot/Skript Version: Skript: 2.5-MH Spigot: idk

    What I want:
    A skript that when u place a hay bale it spawns 1 wheat above the block every 80 ticks only when the player is online

    Ideas for commands: none

    Ideas for permissions: none

    When I'd like it by: Whenever it can be done
     
  2. PolduZ

    PolduZ Member

    Joined:
    Oct 2, 2020
    Messages:
    31
    Likes Received:
    2
    Code (Text):
    1. every 80 ticks in {world here}:
    2.     loop all players:
    3.         loop all blocks in radius {range} around loop-player:
    4.             if loop-block is {type of block}:
    5.             drop {amount} {item}
    NOT TESTED
    --- Double Post Merged, Nov 24, 2020, Original Post Date: Nov 24, 2020 ---
    fixed code:
    Code (Text):
    1. every 80 ticks in "{put world}":
    2.     loop all players:
    3.         loop all blocks in radius {put radius} around loop-player:
    4.             if loop-block is {put type}:
    5.                 drop {put amount} {put type} at loop-block's position
    examples:
    Code (Text):
    1. every 80 ticks in "fart land":
    2.     loop all players:
    3.         loop all blocks in radius 200 around loop-player:
    4.             if loop-block is brown wool:
    5.                 drop 1 dirt at loop-block's position
    6.             if loop-block is ice:
    7.                 drop 1 blue dye named "&1Ice Shard" at loop-block's position
    Code (Text):
    1. every 80 ticks in "log place":
    2.     loop all players:
    3.         loop all blocks in radius 50 around loop-player:
    4.             if loop-block is spruce log:
    5.                 drop 1 diamond at loop-block's position
    EDIT:
    you can still use things like:
    Code (Text):
    1. drop 1 coal above loop-block's position
     

Share This Page

Loading...