-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
51fa122
commit 407370e
Showing
16 changed files
with
172 additions
and
123 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
21 changes: 19 additions & 2 deletions
21
src/main/java/therealeststu/dtbop/genfeature/DTBOPGenFeatures.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 |
---|---|---|
@@ -1,19 +1,36 @@ | ||
package therealeststu.dtbop.genfeature; | ||
|
||
import biomesoplenty.api.biome.BOPBiomes; | ||
import biomesoplenty.init.ModBiomes; | ||
import com.ferreusveritas.dynamictrees.api.registry.IRegistry; | ||
import com.ferreusveritas.dynamictrees.systems.genfeatures.GenFeature; | ||
import com.ferreusveritas.dynamictrees.systems.genfeatures.VinesGenFeature; | ||
import com.ferreusveritas.dynamictrees.systems.genfeatures.config.ConfiguredGenFeature; | ||
import com.ferreusveritas.dynamictrees.trees.Species; | ||
import com.ferreusveritas.dynamictrees.util.SafeChunkBounds; | ||
import net.minecraft.block.BlockState; | ||
import net.minecraft.util.ResourceLocation; | ||
import net.minecraft.util.math.BlockPos; | ||
import net.minecraft.world.IWorld; | ||
import net.minecraft.world.biome.Biome; | ||
import therealeststu.dtbop.DynamicTreesBOP; | ||
|
||
import java.util.List; | ||
import java.util.Objects; | ||
|
||
public class DTBOPGenFeatures { | ||
|
||
public static final GenFeature ALT_LEAVES = new AlternativeLeavesGenFeature(new ResourceLocation(DynamicTreesBOP.MOD_ID, "alt_leaves")); | ||
public static final GenFeature EXTRA_FLARE_BOTTOM = new ExtraBottomFlareGenFeature(new ResourceLocation(DynamicTreesBOP.MOD_ID, "extra_bottom_flare")); | ||
public static final GenFeature VINES_2 = new VinesGenFeature(new ResourceLocation(DynamicTreesBOP.MOD_ID, "vines_2")); //a second vines gen feature so we can have multiple vine types in the same tree | ||
public static final GenFeature VINES_DEEP_BAYOU = new VinesGenFeature(new ResourceLocation(DynamicTreesBOP.MOD_ID, "vines_deep_bayou")){ | ||
@Override public boolean postGeneration(ConfiguredGenFeature<?> configuredGenFeature, IWorld world, BlockPos rootPos, Species species, Biome biome, int radius, List<BlockPos> endPoints, SafeChunkBounds safeBounds, BlockState initialDirtState, Float seasonValue, Float seasonFruitProductionFactor) { | ||
if (!Objects.requireNonNull(world.getBiome(rootPos).getRegistryName()).toString().equals("biomesoplenty:deep_bayou")) return false; | ||
return super.postGeneration(configuredGenFeature, world, rootPos, species, biome, radius, endPoints, safeBounds, initialDirtState, seasonValue, seasonFruitProductionFactor); | ||
} | ||
}; //vines that only appear in | ||
|
||
public static void register(final IRegistry<GenFeature> registry) { | ||
registry.registerAll(ALT_LEAVES, EXTRA_FLARE_BOTTOM, VINES_2); | ||
registry.registerAll(ALT_LEAVES, EXTRA_FLARE_BOTTOM, VINES_DEEP_BAYOU); | ||
} | ||
|
||
} |
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
src/main/resources/data/dynamictrees/tags/blocks/branches.json
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"dtbop:burnt_branch", | ||
"dtbop:hellbark_branch" | ||
"dtbop:hellbark_branch", | ||
"dtbop:burnt_branch" | ||
] | ||
} |
14 changes: 7 additions & 7 deletions
14
src/main/resources/data/dynamictrees/tags/blocks/branches_that_burn.json
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"dtbop:cherry_branch", | ||
"dtbop:mahogany_branch", | ||
"dtbop:magic_branch", | ||
"dtbop:dead_branch", | ||
"dtbop:redwood_branch", | ||
"dtbop:fir_branch", | ||
"dtbop:jacaranda_branch", | ||
"dtbop:magic_branch", | ||
"dtbop:mahogany_branch", | ||
"dtbop:palm_branch", | ||
"dtbop:redwood_branch", | ||
"dtbop:umbran_branch", | ||
"dtbop:willow_branch" | ||
"dtbop:cherry_branch", | ||
"dtbop:willow_branch", | ||
"dtbop:jacaranda_branch", | ||
"dtbop:umbran_branch" | ||
] | ||
} |
46 changes: 23 additions & 23 deletions
46
src/main/resources/data/dynamictrees/tags/blocks/leaves.json
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 |
---|---|---|
@@ -1,36 +1,36 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"dtbop:acacia_twiglet_leaves", | ||
"dtbop:cypress_willow_leaves", | ||
"dtbop:dark_oak_twiglet_leaves", | ||
"dtbop:willow_leaves", | ||
"dtbop:sparse_acacia_leaves", | ||
"dtbop:sparse_oak_leaves", | ||
"dtbop:dark_poplar_leaves", | ||
"dtbop:dying_leaves", | ||
"dtbop:fir_leaves", | ||
"dtbop:dark_oak_twiglet_leaves", | ||
"dtbop:maple_twiglet_leaves", | ||
"dtbop:flowering_oak_leaves", | ||
"dtbop:fir_leaves", | ||
"dtbop:poplar_leaves", | ||
"dtbop:dying_leaves", | ||
"dtbop:white_cherry_leaves", | ||
"dtbop:mahogany_leaves", | ||
"dtbop:redwood_leaves", | ||
"dtbop:jungle_twiglet_leaves", | ||
"dtbop:hellbark_leaves", | ||
"dtbop:hellbark_bush_leaves", | ||
"dtbop:pink_cherry_leaves", | ||
"dtbop:umbran_leaves", | ||
"dtbop:cypress_willow_leaves", | ||
"dtbop:jacaranda_leaves", | ||
"dtbop:jungle_twiglet_leaves", | ||
"dtbop:magic_poplar_leaves", | ||
"dtbop:maple_leaves", | ||
"dtbop:maple_twiglet_leaves", | ||
"dtbop:mahogany_leaves", | ||
"dtbop:mega_dark_oak_leaves", | ||
"dtbop:oak_twiglet_leaves", | ||
"dtbop:orange_autumn_leaves", | ||
"dtbop:palm_leaves", | ||
"dtbop:pink_cherry_leaves", | ||
"dtbop:poplar_leaves", | ||
"dtbop:magic_poplar_leaves", | ||
"dtbop:orange_autumn_leaves", | ||
"dtbop:yellow_autumn_leaves", | ||
"dtbop:rainbow_birch_leaves", | ||
"dtbop:redwood_leaves", | ||
"dtbop:sparse_acacia_leaves", | ||
"dtbop:sparse_oak_leaves", | ||
"dtbop:acacia_twiglet_leaves", | ||
"dtbop:spruce_poplar_leaves", | ||
"dtbop:spruce_twiglet_leaves", | ||
"dtbop:umbran_leaves", | ||
"dtbop:white_cherry_leaves", | ||
"dtbop:willow_leaves", | ||
"dtbop:yellow_autumn_leaves" | ||
"dtbop:mega_dark_oak_leaves", | ||
"dtbop:hellbark_bush_leaves", | ||
"dtbop:oak_twiglet_leaves", | ||
"dtbop:spruce_twiglet_leaves" | ||
] | ||
} |
28 changes: 14 additions & 14 deletions
28
src/main/resources/data/dynamictrees/tags/blocks/saplings.json
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 |
---|---|---|
@@ -1,25 +1,25 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"dtbop:dark_poplar_sapling", | ||
"dtbop:yellow_autumn_sapling", | ||
"dtbop:mahogany_sapling", | ||
"dtbop:willow_sapling", | ||
"dtbop:redwood_sapling", | ||
"dtbop:dying_sapling", | ||
"dtbop:fir_sapling", | ||
"dtbop:flowering_oak_sapling", | ||
"dtbop:hellbark_sapling", | ||
"dtbop:jacaranda_sapling", | ||
"dtbop:pink_cherry_sapling", | ||
"dtbop:fir_sapling", | ||
"dtbop:palm_sapling", | ||
"dtbop:magic_poplar_sapling", | ||
"dtbop:maple_sapling", | ||
"dtbop:mahogany_sapling", | ||
"dtbop:dark_poplar_sapling", | ||
"dtbop:jacaranda_sapling", | ||
"dtbop:umbran_sapling", | ||
"dtbop:rainbow_birch_sapling", | ||
"dtbop:orange_autumn_sapling", | ||
"dtbop:palm_sapling", | ||
"dtbop:pink_cherry_sapling", | ||
"dtbop:maple_sapling", | ||
"dtbop:poplar_sapling", | ||
"dtbop:rainbow_birch_sapling", | ||
"dtbop:redwood_sapling", | ||
"dtbop:spruce_poplar_sapling", | ||
"dtbop:umbran_sapling", | ||
"dtbop:white_cherry_sapling", | ||
"dtbop:willow_sapling", | ||
"dtbop:yellow_autumn_sapling" | ||
"dtbop:flowering_oak_sapling", | ||
"dtbop:white_cherry_sapling" | ||
] | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/data/dynamictrees/tags/blocks/stripped_branches.json
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,6 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"dtbop:stripped_hellbark_branch" | ||
] | ||
} |
15 changes: 15 additions & 0 deletions
15
src/main/resources/data/dynamictrees/tags/blocks/stripped_branches_that_burn.json
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,15 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"dtbop:stripped_mahogany_branch", | ||
"dtbop:stripped_magic_branch", | ||
"dtbop:stripped_dead_branch", | ||
"dtbop:stripped_redwood_branch", | ||
"dtbop:stripped_fir_branch", | ||
"dtbop:stripped_palm_branch", | ||
"dtbop:stripped_cherry_branch", | ||
"dtbop:stripped_willow_branch", | ||
"dtbop:stripped_jacaranda_branch", | ||
"dtbop:stripped_umbran_branch" | ||
] | ||
} |
28 changes: 14 additions & 14 deletions
28
src/main/resources/data/dynamictrees/tags/items/seeds.json
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 |
---|---|---|
@@ -1,25 +1,25 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"dtbop:dark_poplar_seed", | ||
"dtbop:yellow_autumn_seed", | ||
"dtbop:mahogany_seed", | ||
"dtbop:willow_seed", | ||
"dtbop:redwood_seed", | ||
"dtbop:dying_seed", | ||
"dtbop:fir_seed", | ||
"dtbop:flowering_oak_seed", | ||
"dtbop:hellbark_seed", | ||
"dtbop:jacaranda_seed", | ||
"dtbop:pink_cherry_seed", | ||
"dtbop:fir_seed", | ||
"dtbop:palm_seed", | ||
"dtbop:magic_poplar_seed", | ||
"dtbop:maple_seed", | ||
"dtbop:mahogany_seed", | ||
"dtbop:dark_poplar_seed", | ||
"dtbop:jacaranda_seed", | ||
"dtbop:umbran_seed", | ||
"dtbop:rainbow_birch_seed", | ||
"dtbop:orange_autumn_seed", | ||
"dtbop:palm_seed", | ||
"dtbop:pink_cherry_seed", | ||
"dtbop:maple_seed", | ||
"dtbop:poplar_seed", | ||
"dtbop:rainbow_birch_seed", | ||
"dtbop:redwood_seed", | ||
"dtbop:spruce_poplar_seed", | ||
"dtbop:umbran_seed", | ||
"dtbop:white_cherry_seed", | ||
"dtbop:willow_seed", | ||
"dtbop:yellow_autumn_seed" | ||
"dtbop:flowering_oak_seed", | ||
"dtbop:white_cherry_seed" | ||
] | ||
} |
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
Oops, something went wrong.