Added shovels and hoes.

This commit is contained in:
Brianna 2019-08-05 15:57:11 -04:00
parent e6097f6e99
commit a75886c2e7
3 changed files with 26 additions and 3 deletions

View File

@ -4,7 +4,7 @@ stages:
variables: variables:
name: "EpicEnchants" name: "EpicEnchants"
path: "/builds/$CI_PROJECT_PATH" path: "/builds/$CI_PROJECT_PATH"
version: "1_B4" version: "1_B5"
build: build:
stage: build stage: build

View File

@ -27,6 +27,10 @@ public class ItemGroup {
groupMap.putAll(PICKAXES, Arrays.asList(DIAMOND_PICKAXE, GOLDEN_PICKAXE, IRON_PICKAXE, STONE_PICKAXE, WOODEN_PICKAXE)); groupMap.putAll(PICKAXES, Arrays.asList(DIAMOND_PICKAXE, GOLDEN_PICKAXE, IRON_PICKAXE, STONE_PICKAXE, WOODEN_PICKAXE));
groupMap.putAll(HOES, Arrays.asList(DIAMOND_HOE, GOLDEN_HOE, IRON_HOE, STONE_HOE, WOODEN_HOE));
groupMap.putAll(SHOVELS, Arrays.asList(DIAMOND_SHOVEL, GOLDEN_SHOVEL, IRON_SHOVEL, STONE_SHOVEL, WOODEN_SHOVEL));
groupMap.putAll(SWORDS, Arrays.asList(DIAMOND_SWORD, GOLDEN_SWORD, IRON_SWORD, STONE_SWORD, WOODEN_SWORD)); groupMap.putAll(SWORDS, Arrays.asList(DIAMOND_SWORD, GOLDEN_SWORD, IRON_SWORD, STONE_SWORD, WOODEN_SWORD));
groupMap.put(BOWS, BOW); groupMap.put(BOWS, BOW);
@ -45,6 +49,10 @@ public class ItemGroup {
groupMap.putAll(PICKAXES, Arrays.asList(DIAMOND_PICKAXE, Material.valueOf("GOLD_PICKAXE"), IRON_PICKAXE, STONE_PICKAXE, Material.valueOf("WOOD_PICKAXE"))); groupMap.putAll(PICKAXES, Arrays.asList(DIAMOND_PICKAXE, Material.valueOf("GOLD_PICKAXE"), IRON_PICKAXE, STONE_PICKAXE, Material.valueOf("WOOD_PICKAXE")));
groupMap.putAll(HOES, Arrays.asList(DIAMOND_HOE, Material.valueOf("GOLD_HOE"), IRON_HOE, STONE_HOE, Material.valueOf("WOOD_HOE")));
groupMap.putAll(SHOVELS, Arrays.asList(DIAMOND_SHOVEL, Material.valueOf("GOLD_SHOVEL"), IRON_SHOVEL, STONE_SHOVEL, Material.valueOf("WOODEN_SHOVEL")));
groupMap.putAll(SWORDS, Arrays.asList(DIAMOND_SWORD, Material.valueOf("GOLD_SWORD"), IRON_SWORD, STONE_SWORD, Material.valueOf("WOOD_SWORD"))); groupMap.putAll(SWORDS, Arrays.asList(DIAMOND_SWORD, Material.valueOf("GOLD_SWORD"), IRON_SWORD, STONE_SWORD, Material.valueOf("WOOD_SWORD")));
groupMap.put(BOWS, BOW); groupMap.put(BOWS, BOW);
@ -113,9 +121,10 @@ public class ItemGroup {
public enum Group { public enum Group {
AXES, AXES,
HOES,
PICKAXES, PICKAXES,
SHOVELS, SHOVELS,
TOOLS(AXES, PICKAXES, SHOVELS), TOOLS(AXES, PICKAXES, HOES, SHOVELS),
SWORDS, SWORDS,
BOWS, BOWS,

View File

@ -25,4 +25,18 @@ effects:
trigger: ATTACK_PLAYER_MELEE trigger: ATTACK_PLAYER_MELEE
# What player should the effect be ran on: USER/OPPONENT. # What player should the effect be ran on: USER/OPPONENT.
who: USER who: USER
# Potion Effect that should be applied.
potion-type: INCREASE_DAMAGE
# Simultaneous
simultaneous:
POTION:
# What player should the effect be ran on: USER/OPPONENT.
who: USER
# Amount of EXP to add
potion-type: SLOW_DIGGING
# Duration of the Potion Effect in seconds.
duration: "3 * {level}"
# Chance that the Effect gets activated.
chance: "5 * {level}"
# Amplifier of 0 = SPEED 1 a Amplifier of 1 = SPEED 2, etc.
amplifier: "{level}"