steal food.

This commit is contained in:
Brianna 2019-08-06 21:11:25 -04:00
parent b46f3206b6
commit b6f83f9528
2 changed files with 10 additions and 9 deletions

View File

@ -2,6 +2,7 @@ package com.songoda.epicenchants.effect.effects;
import com.songoda.epicenchants.effect.EffectExecutor;
import com.songoda.epicenchants.enums.EventType;
import org.bukkit.Bukkit;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;

View File

@ -21,12 +21,12 @@ description:
item-whitelist:
- "SWORDS"
STEAL_FOOD:
# The trigger that will fire this effect
trigger: ATTACK_PLAYER_MELEE
# How much food does it should steal
amount: 3
# At who this applies
who: OPPONENT
# Chance that this effect wil fire.
chance: "5*{level}"
# For a full list of effects, please visit: https://docs.songoda.com/epic-series/epicenchants/tutorials
effects:
STEAL_FOOD:
# The trigger that will fire this effect
trigger: ATTACK_PLAYER_MELEE
# How much food does it should steal
amount: 3
# Chance that this effect wil fire.
chance: "5*{level}"