I have tried to make a generator for a farming server it has 0 errors but:
- The message saying how many you have when you place one down is stuck at 0
- You can place over 20 generators
- The wheat wont spawn at all
I would be grateful if anyone could solve any of my problems (btw this is my first every post idk everything)
- The message saying how many you have when you place one down is stuck at 0
- You can place over 20 generators
- The wheat wont spawn at all
I would be grateful if anyone could solve any of my problems (btw this is my first every post idk everything)
Code:
on join:
set {genlimit::%player%} to 20
set {gens::%player%} to 0
on place:
if event-block is a hay_block:
if name of player's tool is "&e&lWheat":
if {gens::%player%} >= {genlimit::%player%}:
send "&6&lGen &*>> &cYou cannot place over %{genlimit::%player%}% Generators!"
else:
add 1 to {gen::%player%}
set location of event-block to {_loc}
add 2 to the y-coordinate of {_loc}
add {_loc} to {wheatgen::*}
send "&6&lGen &8>> &aYou have succefully placed generator %{gens::%player%}%"
every 7 seconds:
drop 1 wheat at {wheatgen::*}