on load: set {maxAmount} to 10 on damage: if attacker is a player: set {_} to number of all enchanted golden apples in attacker's inventory if {_} is more than {maxAmount}: remove ({_}-{maxAmount}) of enchanted golden apple from the attacker's inventory drop ({_}-{maxAmount}) of enchanted golden apple to attacker's enderchest send "&cMaksymalnie mozesz miec przy sobie %{maxAmount}% koxów! %({_}-{maxAmount})% zostalo wyrzuconych z twojego inventory." to attacker