filler

Poison Apple

All Apples Give Poison when Eaten

← Back to main

Code Block:


api.giveItem(myId, "Apple", 1);
      

World Code:


onPlayerFinishChargingItem = (playerId, used, itemName, duration) => {
  if (itemName === "Apple" && used === true){
    api.applyEffect(playerId, "Poisoned", 4000, {inbuiltLevel: 1})
  }
}