-
Notifications
You must be signed in to change notification settings - Fork 5
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
Showing
18 changed files
with
380 additions
and
1 deletion.
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
23 changes: 23 additions & 0 deletions
23
src/main/java/com/github/mechalopa/jafohana/world/level/block/CreepansyBlock.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,23 @@ | ||
package com.github.mechalopa.jafohana.world.level.block; | ||
|
||
import com.github.mechalopa.jafohana.util.ModTags; | ||
|
||
import net.minecraft.core.BlockPos; | ||
import net.minecraft.core.Holder; | ||
import net.minecraft.world.effect.MobEffect; | ||
import net.minecraft.world.level.BlockGetter; | ||
import net.minecraft.world.level.block.state.BlockState; | ||
|
||
public class CreepansyBlock extends ModFlowerBlock | ||
{ | ||
public CreepansyBlock(Holder<MobEffect> effect, float seconds) | ||
{ | ||
super(effect, seconds); | ||
} | ||
|
||
@Override | ||
protected boolean mayPlaceOn(BlockState state, BlockGetter world, BlockPos pos) | ||
{ | ||
return state.is(ModTags.BlockTags.CREEPANSY_PLANTABLE_ON); | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/data/jafohana/neoforge/biome_modifier/creepansy_features.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 @@ | ||
{ | ||
"type": "neoforge:add_features", | ||
"biomes": "#jafohana:has_creepansy", | ||
"features": "jafohana:creepansy", | ||
"step": "vegetal_decoration" | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/data/jafohana/neoforge/biome_modifier/fasciated_oxeye_daisy_features.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 @@ | ||
{ | ||
"type": "neoforge:add_features", | ||
"biomes": "#jafohana:has_fasciated_oxeye_daisy", | ||
"features": "jafohana:fasciated_oxeye_daisy", | ||
"step": "vegetal_decoration" | ||
} |
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
6 changes: 6 additions & 0 deletions
6
src/main/resources/data/jafohana/neoforge/biome_modifier/flower_features_in_meneglin.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 @@ | ||
{ | ||
"type": "neoforge:add_features", | ||
"biomes": "#jafohana:integrateddynamics/meneglin", | ||
"features": "jafohana:flower_meneglin", | ||
"step": "vegetal_decoration" | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/resources/data/jafohana/tags/blocks/creepansy_plantable_on.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,19 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"#minecraft:dirt", | ||
"minecraft:farmland", | ||
{ | ||
"id": "#c:storage_blocks/gunpowder", | ||
"required": false | ||
}, | ||
{ | ||
"id": "#forge:storage_blocks/gunpowder", | ||
"required": false | ||
}, | ||
{ | ||
"id": "blasted_barrens:ashen_sand", | ||
"required": false | ||
} | ||
] | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/resources/data/jafohana/tags/worldgen/biome/has_creepansy.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,9 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
{ | ||
"id": "blasted_barrens:blasted_barrens", | ||
"required": false | ||
} | ||
] | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/data/jafohana/tags/worldgen/biome/has_fasciated_oxeye_daisy.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": [ | ||
"#jafohana:integrateddynamics/meneglin" | ||
] | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/resources/data/jafohana/tags/worldgen/biome/integrateddynamics/meneglin.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,9 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
{ | ||
"id": "integrateddynamics:meneglin", | ||
"required": false | ||
} | ||
] | ||
} |
30 changes: 30 additions & 0 deletions
30
src/main/resources/data/jafohana/worldgen/configured_feature/creepansy.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,30 @@ | ||
{ | ||
"type": "minecraft:flower", | ||
"config": { | ||
"feature": { | ||
"feature": { | ||
"type": "minecraft:simple_block", | ||
"config": { | ||
"to_place": { | ||
"type": "minecraft:simple_state_provider", | ||
"state": { | ||
"Name": "jafohana:creepansy" | ||
} | ||
} | ||
} | ||
}, | ||
"placement": [ | ||
{ | ||
"type": "minecraft:block_predicate_filter", | ||
"predicate": { | ||
"type": "minecraft:matching_blocks", | ||
"blocks": "minecraft:air" | ||
} | ||
} | ||
] | ||
}, | ||
"tries": 32, | ||
"xz_spread": 7, | ||
"y_spread": 3 | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/main/resources/data/jafohana/worldgen/configured_feature/fasciated_oxeye_daisy.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,14 @@ | ||
{ | ||
"type": "minecraft:simple_block", | ||
"config": { | ||
"to_place": { | ||
"type": "minecraft:simple_state_provider", | ||
"state": { | ||
"Name": "jafohana:fasciated_oxeye_daisy", | ||
"Properties": { | ||
"half": "lower" | ||
} | ||
} | ||
} | ||
} | ||
} |
172 changes: 172 additions & 0 deletions
172
src/main/resources/data/jafohana/worldgen/configured_feature/flower_meneglin.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,172 @@ | ||
{ | ||
"type": "minecraft:simple_random_selector", | ||
"config": { | ||
"features": [ | ||
{ | ||
"feature": { | ||
"type": "minecraft:random_patch", | ||
"config": { | ||
"feature": { | ||
"feature": { | ||
"type": "minecraft:simple_block", | ||
"config": { | ||
"to_place": { | ||
"type": "minecraft:simple_state_provider", | ||
"state": { | ||
"Name": "jafohana:bluebell" | ||
} | ||
} | ||
} | ||
}, | ||
"placement": [ | ||
{ | ||
"type": "minecraft:block_predicate_filter", | ||
"predicate": { | ||
"type": "minecraft:matching_blocks", | ||
"blocks": "minecraft:air" | ||
} | ||
} | ||
] | ||
}, | ||
"tries": 64, | ||
"xz_spread": 7, | ||
"y_spread": 3 | ||
} | ||
}, | ||
"placement": [] | ||
}, | ||
{ | ||
"feature": { | ||
"type": "minecraft:random_patch", | ||
"config": { | ||
"feature": { | ||
"feature": { | ||
"type": "minecraft:simple_block", | ||
"config": { | ||
"to_place": { | ||
"type": "minecraft:simple_state_provider", | ||
"state": { | ||
"Name": "jafohana:evening_primrose" | ||
} | ||
} | ||
} | ||
}, | ||
"placement": [ | ||
{ | ||
"type": "minecraft:block_predicate_filter", | ||
"predicate": { | ||
"type": "minecraft:matching_blocks", | ||
"blocks": "minecraft:air" | ||
} | ||
} | ||
] | ||
}, | ||
"tries": 64, | ||
"xz_spread": 7, | ||
"y_spread": 3 | ||
} | ||
}, | ||
"placement": [] | ||
}, | ||
{ | ||
"feature": { | ||
"type": "minecraft:random_patch", | ||
"config": { | ||
"feature": { | ||
"feature": { | ||
"type": "minecraft:simple_block", | ||
"config": { | ||
"to_place": { | ||
"type": "minecraft:simple_state_provider", | ||
"state": { | ||
"Name": "jafohana:forget_me_not" | ||
} | ||
} | ||
} | ||
}, | ||
"placement": [ | ||
{ | ||
"type": "minecraft:block_predicate_filter", | ||
"predicate": { | ||
"type": "minecraft:matching_blocks", | ||
"blocks": "minecraft:air" | ||
} | ||
} | ||
] | ||
}, | ||
"tries": 64, | ||
"xz_spread": 7, | ||
"y_spread": 3 | ||
} | ||
}, | ||
"placement": [] | ||
}, | ||
{ | ||
"feature": { | ||
"type": "minecraft:random_patch", | ||
"config": { | ||
"feature": { | ||
"feature": { | ||
"type": "minecraft:simple_block", | ||
"config": { | ||
"to_place": { | ||
"type": "minecraft:simple_state_provider", | ||
"state": { | ||
"Name": "jafohana:blue_daisy" | ||
} | ||
} | ||
} | ||
}, | ||
"placement": [ | ||
{ | ||
"type": "minecraft:block_predicate_filter", | ||
"predicate": { | ||
"type": "minecraft:matching_blocks", | ||
"blocks": "minecraft:air" | ||
} | ||
} | ||
] | ||
}, | ||
"tries": 64, | ||
"xz_spread": 7, | ||
"y_spread": 3 | ||
} | ||
}, | ||
"placement": [] | ||
}, | ||
{ | ||
"feature": { | ||
"type": "minecraft:random_patch", | ||
"config": { | ||
"feature": { | ||
"feature": { | ||
"type": "minecraft:simple_block", | ||
"config": { | ||
"to_place": { | ||
"type": "minecraft:simple_state_provider", | ||
"state": { | ||
"Name": "jafohana:white_pansy" | ||
} | ||
} | ||
} | ||
}, | ||
"placement": [ | ||
{ | ||
"type": "minecraft:block_predicate_filter", | ||
"predicate": { | ||
"type": "minecraft:matching_blocks", | ||
"blocks": "minecraft:air" | ||
} | ||
} | ||
] | ||
}, | ||
"tries": 64, | ||
"xz_spread": 7, | ||
"y_spread": 3 | ||
} | ||
}, | ||
"placement": [] | ||
} | ||
] | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/resources/data/jafohana/worldgen/placed_feature/creepansy.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,19 @@ | ||
{ | ||
"feature": "jafohana:creepansy", | ||
"placement": [ | ||
{ | ||
"type": "minecraft:rarity_filter", | ||
"chance": 16 | ||
}, | ||
{ | ||
"type": "minecraft:in_square" | ||
}, | ||
{ | ||
"type": "minecraft:heightmap", | ||
"heightmap": "MOTION_BLOCKING" | ||
}, | ||
{ | ||
"type": "minecraft:biome" | ||
} | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
src/main/resources/data/jafohana/worldgen/placed_feature/fasciated_dandelion.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
Oops, something went wrong.