#pls help imma have a heart attack
1 messages · Page 1 of 1 (latest)
on break:
if player is holding stick:
if event-block is wheat item and event-block is not ripe wheat plant:
cancel event
elif event-block is ripe wheat plant and player has 1 seed:
remove 1 seed from player
set event-block to wheat item
giveWheat(player)
function giveWheat(item, player):
cancel drops
chance of 40%:
give player 1 wheat
chance of 30%:
give player 2 wheat
chance of 30%:
give player 3 wheat
Try this and let me know if worked
that is not how parameters work, and dont spoon feed
I be vroomin like a car
#1 don't do what exo did,
#2 if you're using (p: player), you have to use {_p} in the function, you may not use player
#3 the part where you give the wheat to the player, you have to giveWheat(wheat, player)
#4 remove the cancel drops from the function and add it to the on break: part