Skip to content

Commit

Permalink
added blooming stem
Browse files Browse the repository at this point in the history
  • Loading branch information
NewJumper committed Oct 29, 2023
1 parent c922785 commit a0a352a
Show file tree
Hide file tree
Showing 23 changed files with 126 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// 1.20.1 2023-10-26T17:32:29.6568093 Block States: deeperdarker
// 1.20.1 2023-10-29T14:19:37.0146147 Block States: deeperdarker
4394f02c270408be611b2f3ba7abfbfd658cb0ff assets/deeperdarker/blockstates/ancient_vase.json
6a6092533dcd9d5b6932f99f5be6dc85b429f41b assets/deeperdarker/blockstates/blooming_flowers.json
165980177c5adcf470b9a08fe401e3bb1a4966f0 assets/deeperdarker/blockstates/blooming_moss_block.json
498227afd0f8c9b0fa72dfef97bf22b886a9069f assets/deeperdarker/blockstates/blooming_sculk.json
57383ac6efb1e22c062918a53dec426e8966f718 assets/deeperdarker/blockstates/blooming_stem.json
b618639a1bd650f5bbceed1f24a777ca15ae37fe assets/deeperdarker/blockstates/chiseled_gloomslate.json
389153807c5651eba34cf020ac7d3b675b0418a2 assets/deeperdarker/blockstates/chiseled_sculk_stone.json
68002cff985c9e3e803a31cbe314c4e4d6ac9e36 assets/deeperdarker/blockstates/cobbled_gloomslate.json
Expand Down Expand Up @@ -120,6 +121,7 @@ e94fc45e791c65302fcc908ab5d32adc564c5e88 assets/deeperdarker/blockstates/strippe
b3e7881ec9d01d89952b70be65946eea0305c45f assets/deeperdarker/models/block/blooming_flowers.json
5f6d78b44fd7067c2670c9e989ce03e4e9aac70f assets/deeperdarker/models/block/blooming_moss_block.json
446377a22c7cd0fa8486a0da7afe4adf393c90e2 assets/deeperdarker/models/block/blooming_sculk.json
0c90c3f2270980d69f3a46e4826ab53ce84ec3f4 assets/deeperdarker/models/block/blooming_stem.json
b00bfe63a4595969e6f0a510761702536bf5c367 assets/deeperdarker/models/block/chiseled_gloomslate.json
72cffa498213da488cf3a2f3f60488de0a5fab6a assets/deeperdarker/models/block/chiseled_sculk_stone.json
95d18c450b387ca11be36213e2be0e675b3a7440 assets/deeperdarker/models/block/cobbled_gloomslate.json
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 1.20.1 2023-10-26T17:32:29.6413502 Tags for minecraft:block mod id deeperdarker
// 1.20.1 2023-10-29T13:48:21.7994946 Tags for minecraft:block mod id deeperdarker
453499b5116c2c24d57c28ec55db0211260f511d data/deeperdarker/tags/blocks/echo_soil.json
5fc75620cbf33b6fbe8762687116de2f0df1bd34 data/deeperdarker/tags/blocks/gloomslate_replaceable.json
1b524a72db2dc423a915068148fa9e921f2e46f5 data/deeperdarker/tags/blocks/gloomy_sculk_replaceable.json
Expand Down Expand Up @@ -30,8 +30,8 @@ a84d63160bb42d942778124d8368b9db10ef6ed2 data/minecraft/tags/blocks/gold_ores.js
08b0595e3c0290061ed898dfbeb230d6c4f95eeb data/minecraft/tags/blocks/iron_ores.json
e85880d9acf64424927082c80e9af7c9f50de52f data/minecraft/tags/blocks/lapis_ores.json
65c3a4802e5e6412bef926f01f45d3e81de4c779 data/minecraft/tags/blocks/leaves.json
615016fb2f7bd4866e694de5e712cb29bb434032 data/minecraft/tags/blocks/logs_that_burn.json
722e1c5cba20bee7da835bd56f9611ad437dcafa data/minecraft/tags/blocks/mineable/axe.json
21ba86398acef0f961c304fe5b2fd972455e0e3d data/minecraft/tags/blocks/logs_that_burn.json
f7e256dd1d5e6019b4d5f567311a3c83e0fcc213 data/minecraft/tags/blocks/mineable/axe.json
ac3e7a20ad6ffdf5ecc67f728c3ce58ec93a90e8 data/minecraft/tags/blocks/mineable/hoe.json
ad177a07d9375078090756e86bdf590b27cd0566 data/minecraft/tags/blocks/mineable/pickaxe.json
f7b6f4235356ecc4395d064f20adbb6abb2fb51a data/minecraft/tags/blocks/mineable/shovel.json
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// 1.20.1 2023-10-26T17:32:29.6413502 Item Models: deeperdarker
// 1.20.1 2023-10-29T13:48:21.8075044 Item Models: deeperdarker
b36185a1f9e1c105ef9ef404ee0483eedd9ecd79 assets/deeperdarker/models/item/ancient_vase.json
cf8de973e6d5a7a898fe6f699e576271f9f62f6a assets/deeperdarker/models/item/blooming_flowers.json
f2fe62e9aa1b817d10053a94259d530922d39562 assets/deeperdarker/models/item/blooming_moss_block.json
2072c85056b9991df1889bc23b0e49f44e63bb56 assets/deeperdarker/models/item/blooming_sculk.json
4008c5aef5f4571e735d6e479a6a223fde438539 assets/deeperdarker/models/item/blooming_stem.json
bc192f3477fde8efde3aba14cdd0016b9b4c74cf assets/deeperdarker/models/item/chiseled_gloomslate.json
89f7cacebe1029e9f27884b1aeba759b4f9c978f assets/deeperdarker/models/item/chiseled_sculk_stone.json
0eb658806d9c4c3faa4843fa00fd273b3d44dbdc assets/deeperdarker/models/item/cobbled_gloomslate.json
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// 1.20.1 2023-10-26T17:32:29.6489197 Loot Tables
// 1.20.1 2023-10-29T13:48:21.8115283 Loot Tables
f4fe1f635cb6e3e68f5aaae0488de719277f01f2 data/deeperdarker/loot_tables/blocks/ancient_vase.json
50039af3ff092f15f51955da214409a709227433 data/deeperdarker/loot_tables/blocks/blooming_flowers.json
006429d2ca86d8c54cd1448e51b2ffd95ef52b52 data/deeperdarker/loot_tables/blocks/blooming_moss_block.json
d95dd7543f0edaed48f7e47c555fd9a2b5c517d4 data/deeperdarker/loot_tables/blocks/blooming_sculk.json
18b211bff5cec0e373e6c336bb3f27cad8c1ed81 data/deeperdarker/loot_tables/blocks/blooming_stem.json
55589564f7ea5847138db468199d54cd1142b139 data/deeperdarker/loot_tables/blocks/chiseled_gloomslate.json
c29aeb5add1d38dc94087bd93c15ff08dab7a74d data/deeperdarker/loot_tables/blocks/chiseled_sculk_stone.json
debbc9e18c6194b29378fce6394766e7864f9ee7 data/deeperdarker/loot_tables/blocks/cobbled_gloomslate.json
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 1.20.1 2023-09-20T17:04:06.9062911 Tags for minecraft:item mod id deeperdarker
// 1.20.1 2023-10-29T13:48:21.804504 Tags for minecraft:item mod id deeperdarker
a84781beeff4cf18e5532d7e95fe62956c365027 data/deeperdarker/tags/items/dampens_vibrations.json
3254a070f3d679712b15610724ab74c5900e0204 data/deeperdarker/tags/items/echo_logs.json
a84781beeff4cf18e5532d7e95fe62956c365027 data/forge/tags/items/armors/boots.json
Expand Down Expand Up @@ -29,7 +29,7 @@ a84d63160bb42d942778124d8368b9db10ef6ed2 data/minecraft/tags/items/gold_ores.jso
08b0595e3c0290061ed898dfbeb230d6c4f95eeb data/minecraft/tags/items/iron_ores.json
e85880d9acf64424927082c80e9af7c9f50de52f data/minecraft/tags/items/lapis_ores.json
65c3a4802e5e6412bef926f01f45d3e81de4c779 data/minecraft/tags/items/leaves.json
615016fb2f7bd4866e694de5e712cb29bb434032 data/minecraft/tags/items/logs_that_burn.json
21ba86398acef0f961c304fe5b2fd972455e0e3d data/minecraft/tags/items/logs_that_burn.json
11f14987f1510c7fba24ae72c2eeae6ec44275bf data/minecraft/tags/items/pickaxes.json
a3dbfaeb7781a16a5f0d599aec390339e541834c data/minecraft/tags/items/planks.json
b87f41ec93385cf003a9e81713446620acd52b86 data/minecraft/tags/items/redstone_ores.json
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// 1.20.1 2023-10-28T16:34:56.705504 Languages: en_us
7adeccca0263b927e5c267ee276d9052ba5d3a1c assets/deeperdarker/lang/en_us.json
// 1.20.1 2023-10-29T13:48:21.814529 Languages: en_us
8a1cda8296f91906dfd5279c8e3db2d37bbb929b assets/deeperdarker/lang/en_us.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"variants": {
"axis=x": {
"model": "deeperdarker:block/blooming_stem",
"x": 90,
"y": 90
},
"axis=y": {
"model": "deeperdarker:block/blooming_stem"
},
"axis=z": {
"model": "deeperdarker:block/blooming_stem",
"x": 90
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"block.deeperdarker.blooming_flowers": "Blooming Flowers",
"block.deeperdarker.blooming_moss_block": "Blooming Moss Block",
"block.deeperdarker.blooming_sculk": "Blooming Sculk",
"block.deeperdarker.blooming_stem": "Blooming Stem",
"block.deeperdarker.chiseled_gloomslate": "Chiseled Gloomslate",
"block.deeperdarker.chiseled_sculk_stone": "Chiseled Sculk Stone",
"block.deeperdarker.cobbled_gloomslate": "Cobbled Gloomslate",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "deeperdarker:block/stem",
"textures": {
"stem": "deeperdarker:block/blooming_stem"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"parent": "deeperdarker:block/blooming_stem"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "deeperdarker:blooming_stem"
}
],
"rolls": 1.0
}
],
"random_sequence": "deeperdarker:blocks/blooming_stem"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"values": [
"deeperdarker:echo_log"
"deeperdarker:echo_log",
"deeperdarker:blooming_stem"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"deeperdarker:echo_trapdoor",
"deeperdarker:echo_pressure_plate",
"deeperdarker:echo_button",
"deeperdarker:blooming_stem",
"deeperdarker:glowing_grass",
"deeperdarker:gloomy_grass"
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"values": [
"deeperdarker:echo_log"
"deeperdarker:echo_log",
"deeperdarker:blooming_stem"
]
}
2 changes: 2 additions & 0 deletions src/main/java/com/kyanite/deeperdarker/content/DDBlocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ public BlockEntity newBlockEntity(BlockPos pPos, BlockState pState) {
});
public static final RegistryObject<Block> POTTED_ECHO_SAPLING = BLOCKS.register("potted_echo_sapling", () -> new FlowerPotBlock(() -> (FlowerPotBlock) Blocks.FLOWER_POT, ECHO_SAPLING, BlockBehaviour.Properties.copy(Blocks.POTTED_OAK_SAPLING)));

public static final RegistryObject<RotatedPillarBlock> BLOOMING_STEM = register("blooming_stem", () -> new BloomingStemBlock(BlockBehaviour.Properties.copy(Blocks.OAK_LOG).noOcclusion(), 2, 4));

public static final RegistryObject<Block> SCULK_STONE = register("sculk_stone", () -> new Block(BlockBehaviour.Properties.copy(Blocks.STONE).mapColor(MapColor.COLOR_CYAN).sound(DDSounds.SCULK_STONE).requiresCorrectToolForDrops()));
public static final RegistryObject<StairBlock> SCULK_STONE_STAIRS = register("sculk_stone_stairs", () -> new StairBlock(() -> SCULK_STONE.get().defaultBlockState(), BlockBehaviour.Properties.copy(SCULK_STONE.get())));
public static final RegistryObject<SlabBlock> SCULK_STONE_SLAB = register("sculk_stone_slab", () -> new SlabBlock(BlockBehaviour.Properties.copy(SCULK_STONE.get())));
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package com.kyanite.deeperdarker.content.blocks.flammable;

import net.minecraft.core.BlockPos;
import net.minecraft.world.level.BlockGetter;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.phys.shapes.CollisionContext;
import net.minecraft.world.phys.shapes.VoxelShape;

@SuppressWarnings("deprecation, NullableProblems")
public class BloomingStemBlock extends RotatedFlammableBlock {
private static final VoxelShape Y_AXIS = Block.box(5, 0, 5, 11, 16, 11);
private static final VoxelShape X_AXIS = Block.box(0, 5, 5, 16, 11, 11);
private static final VoxelShape Z_AXIS = Block.box(5, 5, 0, 11, 11, 16);

public BloomingStemBlock(Properties pProperties, int flammability, int spread) {
super(pProperties, flammability, spread);
}

@Override
public VoxelShape getShape(BlockState pState, BlockGetter pLevel, BlockPos pPos, CollisionContext pContext) {
return switch (pState.getValue(AXIS)) {
default -> Y_AXIS;
case X -> X_AXIS;
case Z -> Z_AXIS;
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ protected void registerStatesAndModels() {
simpleBlock(DDBlocks.ECHO_WALL_HANGING_SIGN.get(), models().sign(DDBlocks.ECHO_HANGING_SIGN.getId().getPath(), blockLoc(DDBlocks.STRIPPED_ECHO_LOG)));
simpleBlock(DDBlocks.POTTED_ECHO_SAPLING.get(), models().withExistingParent(DDBlocks.POTTED_ECHO_SAPLING.getId().getPath(), mcLoc("flower_pot_cross")).texture("plant", blockLoc(DDBlocks.ECHO_SAPLING)).renderType("cutout"));

axisBlock(DDBlocks.BLOOMING_STEM.get(), models().withExistingParent(DDBlocks.BLOOMING_STEM.getId().getPath(), modLoc("stem")).texture("stem", blockLoc(DDBlocks.BLOOMING_STEM)), models().withExistingParent(DDBlocks.BLOOMING_STEM.getId().getPath(), modLoc("stem")).texture("stem", blockLoc(DDBlocks.BLOOMING_STEM)));

simpleBlock(DDBlocks.SCULK_STONE.get());
stairsBlock(DDBlocks.SCULK_STONE_STAIRS.get(), blockLoc(DDBlocks.SCULK_STONE));
slabBlock(DDBlocks.SCULK_STONE_SLAB.get(), blockLoc(DDBlocks.SCULK_STONE), blockLoc(DDBlocks.SCULK_STONE));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ protected void registerModels() {
blockModel(DDBlocks.ECHO_LEAVES);
blockItemModel(DDBlocks.ECHO_SAPLING, DDBlocks.ECHO_SAPLING, GENERATED);

blockModel(DDBlocks.BLOOMING_STEM);

blockModel(DDBlocks.SCULK_STONE);
blockModel(DDBlocks.SCULK_STONE_STAIRS);
blockModel(DDBlocks.SCULK_STONE_SLAB);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public DDBlockTagsProvider(PackOutput output, CompletableFuture<HolderLookup.Pro
@Override
protected void addTags(HolderLookup.@NotNull Provider pProvider) {
tag(BlockTags.MINEABLE_WITH_AXE).add(DDBlocks.ECHO_LOG.get(), DDBlocks.ECHO_WOOD.get(), DDBlocks.STRIPPED_ECHO_LOG.get(), DDBlocks.STRIPPED_ECHO_WOOD.get(), DDBlocks.ECHO_PLANKS.get(), DDBlocks.ECHO_STAIRS.get(), DDBlocks.ECHO_SLAB.get(), DDBlocks.ECHO_FENCE.get(), DDBlocks.ECHO_FENCE_GATE.get(), DDBlocks.ECHO_DOOR.get(), DDBlocks.ECHO_TRAPDOOR.get(), DDBlocks.ECHO_PRESSURE_PLATE.get(), DDBlocks.ECHO_BUTTON.get(),
DDBlocks.BLOOMING_STEM.get(),
DDBlocks.GLOWING_GRASS.get(), DDBlocks.GLOOMY_GRASS.get());
tag(BlockTags.MINEABLE_WITH_HOE).add(DDBlocks.ECHO_LEAVES.get(), DDBlocks.GLOOMY_SCULK.get(), DDBlocks.GLOOMY_GEYSER.get(), DDBlocks.SCULK_GLEAM.get(), DDBlocks.BLOOMING_FLOWERS.get(), DDBlocks.SCULK_VINES.get(), DDBlocks.SCULK_VINES_PLANT.get(), DDBlocks.INFESTED_SCULK.get(), DDBlocks.SCULK_JAW.get());
tag(BlockTags.MINEABLE_WITH_PICKAXE).add(DDBlocks.SCULK_STONE.get(), DDBlocks.COBBLED_SCULK_STONE.get(), DDBlocks.POLISHED_SCULK_STONE.get(), DDBlocks.SCULK_STONE_BRICKS.get(), DDBlocks.SCULK_STONE_TILES.get(), DDBlocks.SMOOTH_SCULK_STONE.get(), DDBlocks.CUT_SCULK_STONE.get(), DDBlocks.CHISELED_SCULK_STONE.get(),
Expand All @@ -42,7 +43,7 @@ protected void addTags(HolderLookup.@NotNull Provider pProvider) {
tag(BlockTags.NEEDS_STONE_TOOL).add(DDBlocks.SCULK_STONE_IRON_ORE.get(), DDBlocks.SCULK_STONE_COPPER_ORE.get(), DDBlocks.SCULK_STONE_LAPIS_ORE.get(), DDBlocks.GLOOMSLATE_IRON_ORE.get(), DDBlocks.GLOOMSLATE_COPPER_ORE.get(), DDBlocks.GLOOMSLATE_LAPIS_ORE.get(), DDBlocks.CRYSTALLIZED_AMBER.get());
tag(BlockTags.NEEDS_IRON_TOOL).add(DDBlocks.SCULK_STONE_GOLD_ORE.get(), DDBlocks.SCULK_STONE_REDSTONE_ORE.get(), DDBlocks.SCULK_STONE_EMERALD_ORE.get(), DDBlocks.SCULK_STONE_DIAMOND_ORE.get(), DDBlocks.GLOOMSLATE_GOLD_ORE.get(), DDBlocks.GLOOMSLATE_REDSTONE_ORE.get(), DDBlocks.GLOOMSLATE_EMERALD_ORE.get(), DDBlocks.GLOOMSLATE_DIAMOND_ORE.get());

tag(BlockTags.LOGS_THAT_BURN).add(DDBlocks.ECHO_LOG.get());
tag(BlockTags.LOGS_THAT_BURN).add(DDBlocks.ECHO_LOG.get(), DDBlocks.BLOOMING_STEM.get());
tag(BlockTags.PLANKS).add(DDBlocks.ECHO_PLANKS.get());
tag(BlockTags.WOODEN_STAIRS).add(DDBlocks.ECHO_STAIRS.get());
tag(BlockTags.WOODEN_SLABS).add(DDBlocks.ECHO_SLAB.get());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ protected void generate() {
dropSelf(DDBlocks.ECHO_HANGING_SIGN.get());
dropPottedContents(DDBlocks.POTTED_ECHO_SAPLING.get());

dropSelf(DDBlocks.BLOOMING_STEM.get());

add(DDBlocks.SCULK_STONE.get(), (block) -> this.createSingleItemTableWithSilkTouch(block, DDBlocks.COBBLED_SCULK_STONE.get()));
dropSelf(DDBlocks.SCULK_STONE_STAIRS.get());
add(DDBlocks.SCULK_STONE_SLAB.get(), this::createSlabItemTable);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public static void buildCreativeTab(BuildCreativeModeTabContentsEvent event) {
event.accept(DDBlocks.ECHO_PRESSURE_PLATE);
event.accept(DDBlocks.ECHO_BUTTON);

event.accept(DDBlocks.BLOOMING_STEM);

event.accept(DDBlocks.SCULK_STONE);
event.accept(DDBlocks.SCULK_STONE_STAIRS);
event.accept(DDBlocks.SCULK_STONE_SLAB);
Expand Down
20 changes: 20 additions & 0 deletions src/main/resources/assets/deeperdarker/models/block/stem.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parent": "block/block",
"textures": {
"particle": "#stem"
},
"elements": [
{
"from": [5, 0, 5],
"to": [11, 16, 11],
"faces": {
"north": {"uv": [0, 0, 6, 16], "texture": "#stem"},
"east": {"uv": [0, 0, 6, 16], "texture": "#stem"},
"south": {"uv": [0, 0, 6, 16], "texture": "#stem"},
"west": {"uv": [0, 0, 6, 16], "texture": "#stem"},
"up": {"uv": [6, 0, 12, 6], "texture": "#stem"},
"down": {"uv": [6, 6, 12, 12], "texture": "#stem"}
}
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a0a352a

Please sign in to comment.