If you need to know check a server called Foodgens or look at this skript i tried to use but didnt work
------------ Version 1.0 ------------
------------ Made by Wolfeee_ (Nathan.#4380) ------------
#You may edit this skript to your liking!
on place of hay block:
set {gens::%location of event-block%} to uuid of player
if {gens::%player's uuid%} < 10:
add 1 to {gens::%player's uuid%}
while event-block is hay block:
wait 80 ticks
drop 1 wheat above location of event-block
else:
send "" to player
send "&bYou have reached your Gen Cap! &7%{gens::%player's uuid%}%&b/&710" to player
send "" to player
cancel event
command /gencap [<player>] [<text>] [<number>]:
permission: gencap.use
permission message: &cNope!
trigger:
if arg-1 is set:
if arg-2 is "reset":
set {gens::%arg-1's uuid%} to 0
send "&cYou have just reset %arg-1%&c's gen cap!" to player
command /gens:
trigger:
send "" to player
send "&bYou have used %{gens::%player's uuid%}%&7/&b10 gen space!" to player
send "" to player
command /sell:
trigger:
set {_amount} to amount of wheat in player's inventory
add {_amount} to {wheatdrops::%player's uuid%}
remove {_amount} of wheat item from player's inventory
send "&7You have just sold &a%{_amount}% &7wheat drops!" to player
send "&7Total Balance&f: &a%{wheatdrops::%player's uuid%}%"
command /balance:
trigger:
send "" to player
send "&bYou have &a%{wheatdrops::%player's uuid%}% &bwheat drops in your balance!" to player
send ""