Here is one of my friends script for generators
# █████╗ ██╗ ███████╗██╗ ██╗
#██╔══██╗██║ ██╔════╝╚██╗██╔╝
#███████║██║ █████╗ ╚███╔╝
#██╔══██║██║ ██╔══╝ ██╔██╗
#██║ ██║███████╗███████╗██╔╝╚██╗
#╚═╝ ╚═╝╚══════╝╚══════╝╚═╝ ╚═╝
Options:
Prefix: &7[&bSERVERNAME&7] # Put in your server name :)
# IN SECONDS
CoalGenTime: 5
IronGenTime: 10
GoldGenTime: 15
DiamondGenTime: 20
NetheriteGenTime: 25
SandGenTime: 5
MagmaBlockGenTime: 5
SlimeGenTime: 5
LapisGenTime: 5
# Instructions:
# Stand at location of the generators and type /generators set (coal/iron/gold/diamond/netherite)
# Repeat this command for each generator location.
# Edit the Prefix and Generator Times in the OPTIONS: above this message
# Done! Enjoy :)
# Note if you edited something type (/sk reload generator)
#█▀▄ █▀█ █▄ █ ▀█▀ █▀▀ █▀▄ █ ▀█▀ █▀█ ▄▀█ █▀ ▀█▀ █ █ █▀▀ █▀█ █▀▀
#█▄▀ █▄█ █ ▀█ █ ██▄ █▄▀ █ █ █▀▀ █▀█ ▄█ █ █▀█ ██▄ █▀▄ ██▄
command /generators [<text>] [<text>]:
permission: op
trigger:
if arg 1 is not set:
send "{@Prefix} &7>> &b&lFormat&7: &c/generators &7(&chelp/set&7)"
if arg 1 is "help":
send "&0&m-------------------------------"
send " &6&lGenerators &7by AlexWarrior"
send "&0"
send "&b&lCommands:"
send "&c/generators &7(&chelp/set&7)"
send "&0&m-------------------------------"
if arg 1 is "set":
if arg 2 is "coal":
set {CoalGenSpot} to player's location
send "&cCOAL Generator Location Set &7%{CoalGenSpot}%&7)"
if arg 2 is "iron":
set {IronGenSpot} to player's location
send "&cIRON Generator Location Set &7%{IronGenSpot}%&7)"
if arg 2 is "gold":
set {GoldGenSpot} to player's location
send "&cGOLD Generator Location Set &7%{GoldGenSpot}%&7)"
if arg 2 is "diamond":
set {DiamondGenSpot} to player's location
send "&cDIAMOND Generator Location Set &7%{DiamondGenSpot}%&7)"
if arg 2 is "netherite":
set {NetheriteGenSpot} to player's location
send "&cNETHERITE Generator Location Set &7%{NetheriteGenSpot}%&7)"
if arg 2 is "sand":
set {SandGenSpot} to player's location
send "&cSAND Generator Location Set &7%{SandGenSpot}%&7)"
if arg 2 is "magma":
set {MagmaBlockGenSpot} to player's location
send "&cMAGMA Generator Location Set &7%{MagmaBlockGenSpot}%&7)"
if arg 2 is "lapis":
set {LapisGenSpot} to player's location
send "&cLAPIS Generator Location Set &7%{LapisGenSpot}%&7)"
if arg 2 is not set:
send "{@Prefix} &7>> &b&lFormat&7: &c/generators set &7(&ccoal/iron/gold/diamond/netherite/sand/magma/lapis&7)"
every {@CoalGenTime} seconds:
drop a coal at {CoalGenSpot}'s position
every {@IronGenTime} seconds:
drop a iron ingot at {IronGenSpot}'s position
every {@GoldGenTime} seconds:
drop a gold ingot at {GoldGenSpot}'s position
every {@DiamondGenTime} seconds:
drop a diamond at {DiamondGenSpot}'s position
every {@NetheriteGenTime} seconds:
drop a netherite ingot at {NetheriteGenSpot}'s position
every {@SandGenTime} seconds:
drop a sand at {SandGenSpot}'s position
every {@MagmaBlockGenTime} seconds:
drop a sand at {MagmaBlockGenSpot}'s position
every {@SlimeGenTime} seconds:
drop a sand at {SandGenSpot}'s position
every {@LapisGenTime} seconds:
drop a sand at {LapisGenSpot}'s position