All Apples Give Poison when Eaten
api.giveItem(myId, "Apple", 1);
onPlayerFinishChargingItem = (playerId, used, itemName, duration) => { if (itemName === "Apple" && used === true){ api.applyEffect(playerId, "Poisoned", 4000, {inbuiltLevel: 1}) } }