forked from SlimefunGuguProject/Networks
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from Sefiraat/feature/netheo
Netheo
- Loading branch information
Showing
6 changed files
with
131 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
104 changes: 104 additions & 0 deletions
104
src/main/java/io/github/sefiraat/networks/slimefun/NetheoPlants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
package io.github.sefiraat.networks.slimefun; | ||
|
||
import dev.sefiraat.netheopoiesis.api.items.DoNothingSeed; | ||
import dev.sefiraat.netheopoiesis.api.items.HarvestableSeed; | ||
import dev.sefiraat.netheopoiesis.api.plant.Growth; | ||
import dev.sefiraat.netheopoiesis.api.plant.GrowthStages; | ||
import dev.sefiraat.netheopoiesis.api.plant.Placements; | ||
import dev.sefiraat.netheopoiesis.implementation.Stacks; | ||
import dev.sefiraat.netheopoiesis.utils.Skulls; | ||
import dev.sefiraat.netheopoiesis.utils.Theme; | ||
import io.github.sefiraat.networks.Networks; | ||
import io.github.sefiraat.networks.utils.StackUtils; | ||
import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack; | ||
import io.github.thebusybiscuit.slimefun4.implementation.SlimefunItems; | ||
import lombok.experimental.UtilityClass; | ||
|
||
@UtilityClass | ||
public class NetheoPlants { | ||
|
||
// Stacks | ||
public static final SlimefunItemStack STONE_CHUNK_SEED = Theme.themedSeed( | ||
"NTW_STONE_CHUNK_SEED", | ||
Skulls.SEED_PURPLE.getPlayerHead(), | ||
Theme.SEED, | ||
"Stone Chunk Seed", | ||
new String[]{"This seed, when fully grown, will", "provide Stone Chunks when", "harvested."}, | ||
Stacks.getCanBePlacedOnLore("Nether Grass (or better)") | ||
); | ||
|
||
public static final SlimefunItemStack SYNTHETIC_SEED = Theme.themedSeed( | ||
"NTW_SYNTHETIC_SEED", | ||
Skulls.SEED_ORANGE.getPlayerHead(), | ||
Theme.SEED, | ||
"Synthetic Seed", | ||
new String[]{"This seed does nothing."}, | ||
Stacks.getCanBePlacedOnLore("Nether Grass (or better)") | ||
); | ||
|
||
public static final SlimefunItemStack SYNTHETIC_EMERALD_SEED = Theme.themedSeed( | ||
"NTW_SYNTHETIC_EMERALD_SEED", | ||
Skulls.SEED_GREEN.getPlayerHead(), | ||
Theme.SEED, | ||
"Synthetic Emerald Seed", | ||
new String[]{"This seed, when fully grown, will", "provide Synthetic Emeralds when", "harvested."}, | ||
Stacks.getCanBePlacedOnLore("Voracious Dirt (or better)") | ||
); | ||
|
||
public static final SlimefunItemStack SYNTHETIC_DIAMOND_SEED = Theme.themedSeed( | ||
"NTW_SYNTHETIC_DIAMOND_SEED", | ||
Skulls.SEED_GREEN.getPlayerHead(), | ||
Theme.SEED, | ||
"Synthetic Diamond Seed", | ||
new String[]{"This seed, when fully grown, will", "provide Synthetic Diamonds when", "harvested."}, | ||
Stacks.getCanBePlacedOnLore("Voracious Dirt (or better)") | ||
); | ||
|
||
public static final SlimefunItemStack FRAGMENTED_SEED = Theme.themedSeed( | ||
"NTW_FRAGMENTED_SEED", | ||
Skulls.SEED_GREEN.getPlayerHead(), | ||
Theme.SEED, | ||
"Fragmented Seed", | ||
new String[]{"This seed, when fully grown, will", "provide Synthetic Emerald Shards when", "harvested."}, | ||
Stacks.getCanBePlacedOnLore("Voracious Dirt (or better)") | ||
); | ||
|
||
public static void setup() { | ||
|
||
final Networks plugin = Networks.getInstance(); | ||
|
||
new HarvestableSeed(STONE_CHUNK_SEED) | ||
.setHarvestingResult(SlimefunItems.STONE_CHUNK) | ||
.setGrowth(new Growth(GrowthStages.FUNGAL_PURPLE, Placements.NETHER_GRASS_AND_UP, 5, 0.05)) | ||
.addBreedingPair(Stacks.STONEY_SEED.getItemId(), Stacks.METALLIC_SEED.getItemId(), 0.2, 0.1) | ||
.addFlavourProfile(0, 0, 0, 0, 0) | ||
.tryRegister(plugin); | ||
|
||
new DoNothingSeed(SYNTHETIC_SEED) | ||
.setGrowth(new Growth(GrowthStages.SPIKEY_ORANGE, Placements.NETHER_GRASS_AND_UP, 0, 0.001)) | ||
.addBreedingPair(Stacks.COBBLED_SEED.getItemId(), Stacks.LEARNED_SEED.getItemId(), 0.01, 0) | ||
.addFlavourProfile(0, 0, 5, 0, 0) | ||
.tryRegister(plugin); | ||
|
||
new HarvestableSeed(SYNTHETIC_EMERALD_SEED) | ||
.setHarvestingResult(SlimefunItems.SYNTHETIC_EMERALD) | ||
.setGrowth(new Growth(GrowthStages.VINEY_GREEN, Placements.VORACIOUS_AND_UP, 20, 0.05)) | ||
.addBreedingPair(SYNTHETIC_SEED.getItemId(), Stacks.VALUABLE_SEED.getItemId(), 0.01, 0.001) | ||
.addFlavourProfile(0, 15, 0, 0, 0) | ||
.tryRegister(plugin); | ||
|
||
new HarvestableSeed(SYNTHETIC_DIAMOND_SEED) | ||
.setHarvestingResult(SlimefunItems.SYNTHETIC_DIAMOND) | ||
.setGrowth(new Growth(GrowthStages.VINEY_BLUE, Placements.VORACIOUS_AND_UP, 20, 0.05)) | ||
.addBreedingPair(SYNTHETIC_SEED.getItemId(), Stacks.PERFECTION_SEED.getItemId(), 0.01, 0.001) | ||
.addFlavourProfile(15, 0, 0, 0, 0) | ||
.tryRegister(plugin); | ||
|
||
new HarvestableSeed(FRAGMENTED_SEED) | ||
.setHarvestingResult(StackUtils.getAsQuantity(NetworksSlimefunItemStacks.SYNTHETIC_EMERALD_SHARD, 9)) | ||
.setGrowth(new Growth(GrowthStages.VINEY_GREEN, Placements.VORACIOUS_AND_UP, 10, 0.005)) | ||
.addBreedingPair(SYNTHETIC_SEED.getItemId(), Stacks.PERFECTION_SEED.getItemId(), 0.01, 0.001) | ||
.addFlavourProfile(10, 0, 0, 0, 0) | ||
.tryRegister(plugin); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters