on rightclick with mushroom stew:
set {_unbreaking} to enchant level of unbreaking of player's tool
if {_unbreaking} is 1:
remove haste from player
apply haste to player for 10 seconds
if {_unbreaking} is 2:
remove haste from player
apply haste to player for 30 seconds
if {_unbreaking} is 3:
remove haste from player
apply haste 2 to player for 10 seconds
if {_unbreaking} is 4:
remove haste from player
apply haste 2 to player for 30 seconds
Proszę