Merge branch 'master' into 'master'
Added crafting recipe for sponge. See merge request dragontamerfred/vanilla-tweaks!2master
commit
586fd9122d
|
@ -18,6 +18,7 @@ Currently included:
|
|||
- 1 blue ice -> 9 packed ice
|
||||
- 1 packed ice -> 9 ice
|
||||
- 3 glass + 1 popped chorus fruit -> 3 dragons breath
|
||||
- 8 kelp + 1 yellow dye -> 1 sponge
|
||||
|
||||
### Dropped seed planting
|
||||
Automatically plants seed dropped on tilled soil.
|
||||
|
|
|
@ -58,6 +58,16 @@ public class CraftingTweaks {
|
|||
dragonBreathRecipe.setIngredient('G', Material.GLASS);
|
||||
dragonBreathRecipe.setIngredient('C', Material.POPPED_CHORUS_FRUIT);
|
||||
|
||||
// Sponge Block
|
||||
NamespacedKey spongeKey = new NamespacedKey(plugin, "sponge");
|
||||
ShapedRecipe spongeRecipe = new ShapedRecipe(spongeKey, new ItemStack(Material.SPONGE));
|
||||
spongeRecipe.shape("KKK","KDK","KKK");
|
||||
spongeRecipe.setIngredient('K', Material.KELP);
|
||||
spongeRecipe.setIngredient('D', Material.YELLOW_DYE);
|
||||
|
||||
|
||||
|
||||
|
||||
// Add recipes
|
||||
if (config.CRAFTING_TWEAKS_BETTER_CHEST) plugin.getServer().addRecipe(chestRecipe);
|
||||
if (config.CRAFTING_TWEAKS_NAME_TAG) plugin.getServer().addRecipe(nametagRecipe);
|
||||
|
@ -66,5 +76,6 @@ public class CraftingTweaks {
|
|||
if (config.CRAFTING_TWEAKS_PACKED_ICE) plugin.getServer().addRecipe(packedIceRecipe);
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,6 +18,7 @@ public class config {
|
|||
public static boolean CRAFTING_TWEAKS_PACKED_ICE;
|
||||
public static boolean CRAFTING_TWEAKS_ICE;
|
||||
public static boolean CRAFTING_TWEAKS_DRAGONS_BREATH;
|
||||
public static boolean CRAFTING_TWEAKS_SPONGE;
|
||||
|
||||
public static boolean SEED_DROP_PLANTING_ENABLED;
|
||||
|
||||
|
@ -50,6 +51,7 @@ public class config {
|
|||
CRAFTING_TWEAKS_PACKED_ICE = config.getBoolean("crafting-tweaks.packed-ice");
|
||||
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");
|
||||
|
||||
SEED_DROP_PLANTING_ENABLED = config.getBoolean("seed-drop-planting.enabled");
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@ crafting-tweaks:
|
|||
packed-ice: true
|
||||
ice: true
|
||||
dragons-breath: true
|
||||
sponge: true
|
||||
|
||||
seed-drop-planting:
|
||||
enabled: true
|
||||
|
|
Reference in New Issue