Hi, how can i get this to set a random crop in the inventory? After 5 seconds, it will fill the whole inv with the crop. I want to add 1 crop to the slot at a time, and not fill up the inv.
https://gyazo.com/828df4f3f45325831d4d3c5e3749540a
Thanks!
~Matt
Code:
https://gyazo.com/828df4f3f45325831d4d3c5e3749540a
Thanks!
~Matt
Code:
Code:
on inventory click:
if "%event.getView().getTitle()%" = "&c&lAuto farming":
cancel event
if index of event-slot is 45:
if {autofarm::time::%player%} >= 1:
set {farm::%Player%} to true
send "&a&lAutofarmer started!"
while {farm::%Player%} is true:
if {custom::prefix::%Player%} = "&9[&bOutcast&9]":
set {cast} to random element out of carrots, wheat and potato
set {var} to -1
loop 44 times:
add 1 to {var}
set slot {var} of player's current inventory to {cast}
wait 5 seconds