Generator skript

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

2844

New Member
Nov 21, 2020
6
0
1
24
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
 
Code:
every 80 ticks in {world here}:
    loop all players:
        loop all blocks in radius {range} around loop-player:
            if loop-block is {type of block}:
            drop {amount} {item}

NOT TESTED
[doublepost=1606230372,1606229828][/doublepost]fixed code:
Code:
every 80 ticks in "{put world}":
    loop all players:
        loop all blocks in radius {put radius} around loop-player:
            if loop-block is {put type}:
                drop {put amount} {put type} at loop-block's position
examples:
Code:
every 80 ticks in "fart land":
    loop all players:
        loop all blocks in radius 200 around loop-player:
            if loop-block is brown wool:
                drop 1 dirt at loop-block's position
            if loop-block is ice:
                drop 1 blue dye named "&1Ice Shard" at loop-block's position
Code:
every 80 ticks in "log place":
    loop all players:
        loop all blocks in radius 50 around loop-player:
            if loop-block is spruce log:
                drop 1 diamond at loop-block's position

EDIT:
you can still use things like:
Code:
drop 1 coal above loop-block's position