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

AllenPlayz

Member
May 12, 2021
3
0
1
54
Category: gens

Suggested name: gens

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 and when you place a dried kelp block it spawns dried kelp every 80 seconds when the player is online.

Ideas for commands: /gens, /sell, /balance (I want another command for the balance i want /bal too)

Ideas for permissions: gens.view, gens.sell, gens.bal

When I'd like it by: Whenever it can be done
 
Code:
on place of haybale:
  Set {_loc} to location of block above event-block
  add {_loc} to {HayLocs.%player%::*}

on place of dried kelp block:
  Set {_loc} to location of block above event-block
  add {_loc} to {KelpLocs.%player%::*}

on mine of dried kelp block:
  Set {_loc} to location of block above event-block
  remove {_loc} from {KelpLocs.%player%::*}

on mine of hay bale block:
  Set {_loc} to location of block above event-block
  remove {_loc} from {HayLocs.%player%::*}

every 80 ticks:
  loop all players:
    loop {HayLocs.%loop-player%::*}:
      drop 1 wheat at {HayLocs.%loop-player%::%loop-number%}
    loop {KelpLocs.%loop-player%::*}:
      drop 1 dried kelp block at {KelpLocs.%loop-player%::%loop-number%}

I think that this will work :emoji_slight_smile:
Im sorry, but i dont know what to do with any of the commands, as they aren't needed for you described.