mirror of
https://github.com/songoda/EpicEnchants.git
synced 2024-12-23 01:27:43 +01:00
Added shovels and hoes.
This commit is contained in:
parent
e6097f6e99
commit
a75886c2e7
@ -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
|
||||||
|
@ -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,
|
||||||
|
@ -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}"
|
Loading…
Reference in New Issue
Block a user