Merge branch 'master' into 'master'
Added alternative crafting recipe for dispenser. See merge request dragontamerfred/vanilla-tweaks!3master
commit
7871bf40c0
|
@ -19,6 +19,7 @@ Currently included:
|
|||
- 1 packed ice -> 9 ice
|
||||
- 3 glass + 1 popped chorus fruit -> 3 dragons breath
|
||||
- 8 kelp + 1 yellow dye -> 1 sponge
|
||||
- 1 dropper + 3 sticks + 3 string -> 1 dispenser
|
||||
|
||||
### Dropped seed planting
|
||||
Automatically plants seed dropped on tilled soil.
|
||||
|
|
|
@ -65,6 +65,13 @@ public class CraftingTweaks {
|
|||
spongeRecipe.setIngredient('K', Material.KELP);
|
||||
spongeRecipe.setIngredient('D', Material.YELLOW_DYE);
|
||||
|
||||
// Dispenser Alternative Recipe
|
||||
NamespacedKey dispenserKey = new NamespacedKey(plugin, "dispenser");
|
||||
ShapedRecipe dispenserRecipe = new ShapedRecipe(dispenserKey, new ItemStack(Material.DISPENSER));
|
||||
spongeRecipe.shape(" TS","TDS"," TS");
|
||||
spongeRecipe.setIngredient('T', Material.STICK);
|
||||
spongeRecipe.setIngredient('D', Material.DROPPER);
|
||||
spongeRecipe.setIngredient('S', Material.STRING);
|
||||
|
||||
|
||||
|
||||
|
@ -77,5 +84,6 @@ public class CraftingTweaks {
|
|||
if (config.CRAFTING_TWEAKS_ICE) plugin.getServer().addRecipe(iceRecipe);
|
||||
if (config.CRAFTING_TWEAKS_DRAGONS_BREATH) plugin.getServer().addRecipe(dragonBreathRecipe);
|
||||
if (config.CRAFTING_TWEAKS_SPONGE) plugin.getServer().addRecipe(spongeRecipe);
|
||||
if (config.CRAFTING_TWEAKS_DISPENSER) plugin.getServer().addRecipe((dispenserRecipe));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,6 +20,7 @@ public class config {
|
|||
public static boolean CRAFTING_TWEAKS_ICE;
|
||||
public static boolean CRAFTING_TWEAKS_DRAGONS_BREATH;
|
||||
public static boolean CRAFTING_TWEAKS_SPONGE;
|
||||
public static boolean CRAFTING_TWEAKS_DISPENSER;
|
||||
|
||||
public static boolean SEED_DROP_PLANTING_ENABLED;
|
||||
|
||||
|
@ -55,6 +56,7 @@ public class config {
|
|||
CRAFTING_TWEAKS_ICE = config.getBoolean("crafting-tweaks.ice");
|
||||
CRAFTING_TWEAKS_DRAGONS_BREATH = config.getBoolean("crafting-tweaks.dragons-breath");
|
||||
CRAFTING_TWEAKS_SPONGE = config.getBoolean("crafting-tweaks.sponge");
|
||||
CRAFTING_TWEAKS_DISPENSER = config.getBoolean("crafting-tweak.dispenser");
|
||||
|
||||
SEED_DROP_PLANTING_ENABLED = config.getBoolean("seed-drop-planting.enabled");
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ crafting-tweaks:
|
|||
ice: true
|
||||
dragons-breath: true
|
||||
sponge: true
|
||||
dispenser: true
|
||||
|
||||
seed-drop-planting:
|
||||
enabled: true
|
||||
|
|
Reference in New Issue