Added crafting recipe for sponge.

master
LuukFTF 2019-10-05 01:52:55 +02:00
parent e3db5f892c
commit dbf86b2b4a
4 changed files with 15 additions and 0 deletions

View File

@ -18,6 +18,7 @@ Currently included:
- 1 blue ice -> 9 packed ice - 1 blue ice -> 9 packed ice
- 1 packed ice -> 9 ice - 1 packed ice -> 9 ice
- 3 glass + 1 popped chorus fruit -> 3 dragons breath - 3 glass + 1 popped chorus fruit -> 3 dragons breath
- 8 kelp + 1 yellow dye -> 1 sponge
### Dropped seed planting ### Dropped seed planting
Automatically plants seed dropped on tilled soil. Automatically plants seed dropped on tilled soil.

View File

@ -58,6 +58,16 @@ public class CraftingTweaks {
dragonBreathRecipe.setIngredient('G', Material.GLASS); dragonBreathRecipe.setIngredient('G', Material.GLASS);
dragonBreathRecipe.setIngredient('C', Material.POPPED_CHORUS_FRUIT); 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 // Add recipes
if (config.CRAFTING_TWEAKS_BETTER_CHEST) plugin.getServer().addRecipe(chestRecipe); if (config.CRAFTING_TWEAKS_BETTER_CHEST) plugin.getServer().addRecipe(chestRecipe);
if (config.CRAFTING_TWEAKS_NAME_TAG) plugin.getServer().addRecipe(nametagRecipe); 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_PACKED_ICE) plugin.getServer().addRecipe(packedIceRecipe);
if (config.CRAFTING_TWEAKS_ICE) plugin.getServer().addRecipe(iceRecipe); if (config.CRAFTING_TWEAKS_ICE) plugin.getServer().addRecipe(iceRecipe);
if (config.CRAFTING_TWEAKS_DRAGONS_BREATH) plugin.getServer().addRecipe(dragonBreathRecipe); if (config.CRAFTING_TWEAKS_DRAGONS_BREATH) plugin.getServer().addRecipe(dragonBreathRecipe);
if (config.CRAFTING_TWEAKS_SPONGE) plugin.getServer().addRecipe(spongeRecipe);
} }
} }

View File

@ -18,6 +18,7 @@ public class config {
public static boolean CRAFTING_TWEAKS_PACKED_ICE; public static boolean CRAFTING_TWEAKS_PACKED_ICE;
public static boolean CRAFTING_TWEAKS_ICE; public static boolean CRAFTING_TWEAKS_ICE;
public static boolean CRAFTING_TWEAKS_DRAGONS_BREATH; public static boolean CRAFTING_TWEAKS_DRAGONS_BREATH;
public static boolean CRAFTING_TWEAKS_SPONGE;
public static boolean SEED_DROP_PLANTING_ENABLED; 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_PACKED_ICE = config.getBoolean("crafting-tweaks.packed-ice");
CRAFTING_TWEAKS_ICE = config.getBoolean("crafting-tweaks.ice"); CRAFTING_TWEAKS_ICE = config.getBoolean("crafting-tweaks.ice");
CRAFTING_TWEAKS_DRAGONS_BREATH = config.getBoolean("crafting-tweaks.dragons-breath"); 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"); SEED_DROP_PLANTING_ENABLED = config.getBoolean("seed-drop-planting.enabled");

View File

@ -10,6 +10,7 @@ crafting-tweaks:
packed-ice: true packed-ice: true
ice: true ice: true
dragons-breath: true dragons-breath: true
sponge: true
seed-drop-planting: seed-drop-planting:
enabled: true enabled: true