Skip to content

Commit

Permalink
Merge pull request #75 from warior456/main
Browse files Browse the repository at this point in the history
main to portal
  • Loading branch information
warior456 authored Jan 12, 2025
2 parents 8a80922 + 08bdbd5 commit d1e2c4b
Show file tree
Hide file tree
Showing 15 changed files with 108 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Sculk Depths

#### looking for a third main dev with a similar vision as us to help keep the project alive and updated
#### Interested? join our discord: https://discord.gg/dxANwW23Ub
#### Want to play the latest test builds? Or want to help development and give ideas?
#### -> join our discord: https://discord.gg/dxANwW23Ub

# Important Notes
- Upgrading from alpha to beta isn't recommended because of portal logic changes
Expand Down
4 changes: 2 additions & 2 deletions src/client/java/net/ugi/sculk_depths/SculkDepthsClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public void onInitializeClient() {
//CrystalUpgrade.tooltipAdd();

SculkDepths.LOGGER.info("Registering clientSounds for " + SculkDepths.MOD_ID);
/* ClientTickEvents.START_WORLD_TICK.register(new ConditionalSoundPlayerClient());
ClientTickEvents.START_CLIENT_TICK.register(new SoundPlayerGetterClient());*/
ClientTickEvents.START_WORLD_TICK.register(new ConditionalSoundPlayerClient());
ClientTickEvents.START_CLIENT_TICK.register(new SoundPlayerGetterClient());

FluidRenderHandlerRegistry.INSTANCE.register(ModFluids.KRYSLUM_STILL,
ModFluids.KRYSLUM_FLOWING,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,4 @@ public void onStartTick(MinecraftClient client) {
player = client.player;
}

public PlayerEntity getPlayer(){
return player;
}

}
2 changes: 2 additions & 0 deletions src/main/java/net/ugi/sculk_depths/SculkDepths.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,11 @@ public void onInitialize() {
ServerTickEvents.START_WORLD_TICK.register(new CheckInvForCrystalItems());
ServerTickEvents.START_WORLD_TICK.register(new ModBiomeEffects());


//registerCustomPOI();
CruxResonator.registerAndGetDefault(Registries.POINT_OF_INTEREST_TYPE);
//register(Registries.POINT_OF_INTEREST_TYPE, Q_LODESTONE, getStatesOfBlock(ModBlocks.QUAZARITH_LODESTONE), 0, 1);
//ServerTickEvents.START_WORLD_TICK.register(new ConditionalSoundPlayer());


CauldronFluidContent.registerCauldron(ModBlocks.KRYSLUM_FLUMROCK_CAULDRON, ModFluids.KRYSLUM_STILL, FluidConstants.BUCKET, ModProperties.KRYSLUM_LEVEL); //support for mods to see how much fluid is in it (doesn't work for create pipes)
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/net/ugi/sculk_depths/block/ModBlocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,13 @@ public class ModBlocks {
new PedestalBlock(AbstractBlock.Settings.create().strength(-1f, 3600000.0f).pistonBehavior(PistonBehavior.BLOCK)), ModItemGroup.SCULK_DEPTHS_BLOCKS);

//auric //TODO check blocksettings


public static final Block AURIC_VINES = registerBlockWithoutBlockItem("auric_vines",
new AuricVinesBlock(AbstractBlock.Settings.create().pistonBehavior(PistonBehavior.DESTROY).ticksRandomly().noCollision().breakInstantly().sounds(BlockSoundGroup.WEEPING_VINES_LOW_PITCH)), ModItemGroup.SCULK_DEPTHS);
public static final Block AURIC_VINES_END = registerBlock("auric_vines_end",
new AuricVinesEndBlock(AbstractBlock.Settings.create().pistonBehavior(PistonBehavior.DESTROY).ticksRandomly().noCollision().breakInstantly().sounds(BlockSoundGroup.WEEPING_VINES_LOW_PITCH)), ModItemGroup.SCULK_DEPTHS);

public static final Block AURIC_SPORE_BLOCK = registerBlock("auric_spore_block",
new ShroomBlock(AbstractBlock.Settings.create().strength(0.3f).sounds(BlockSoundGroup.MOSS_BLOCK)), ModItemGroup.SCULK_DEPTHS_BLOCKS);

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package net.ugi.sculk_depths.block.custom;

import com.mojang.serialization.MapCodec;
import net.minecraft.block.*;
import net.minecraft.util.math.Direction;
import net.minecraft.util.shape.VoxelShape;
import net.ugi.sculk_depths.block.ModBlocks;

public class AuricVinesBlock extends AbstractPlantBlock {
@Override
protected MapCodec<? extends AbstractPlantBlock> getCodec() {
return null;
}
public static final VoxelShape SHAPE = Block.createCuboidShape(1.0, 0.0, 1.0, 15.0, 16.0, 15.0);

public AuricVinesBlock(AbstractBlock.Settings settings) {
super(settings, Direction.DOWN, SHAPE, false);
}

protected AbstractPlantStemBlock getStem() {
return (AbstractPlantStemBlock) ModBlocks.AURIC_VINES_END;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package net.ugi.sculk_depths.block.custom;


import com.mojang.serialization.MapCodec;
import net.minecraft.block.AbstractPlantStemBlock;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.VineLogic;
import net.minecraft.util.math.Direction;
import net.minecraft.util.math.random.Random;
import net.minecraft.util.shape.VoxelShape;
import net.ugi.sculk_depths.block.ModBlocks;

public class AuricVinesEndBlock extends AbstractPlantStemBlock {
@Override
protected MapCodec<? extends AbstractPlantStemBlock> getCodec() {
return null;
}

protected static final VoxelShape SHAPE = Block.createCuboidShape(1.0, 0.0, 1.0, 15.0, 16.0, 15.0);

public AuricVinesEndBlock(Settings settings) {
super(settings, Direction.DOWN, SHAPE, false, 0.1);
}

protected int getGrowthLength(Random random) {
return VineLogic.getGrowthLength(random);
}

protected Block getPlant() {
return ModBlocks.AURIC_VINES;
}

protected boolean chooseStemState(BlockState state) {
return VineLogic.isValidForWeepingStem(state);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "sculk_depths:block/auric_vines"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "sculk_depths:block/auric_vines_end"
}
}
}
4 changes: 3 additions & 1 deletion src/main/resources/assets/sculk_depths/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@
"block.sculk_depths.auric_spore_block": "Auric Spore Block",
"block.sculk_depths.auric_spore_layer": "Auric Spore Layer",
"block.sculk_depths.auric_shroom_stem": "Auric Shroom Stem",
"block.sculk_depths.auric_vines": "Auric Vines",
"block.sculk_depths.auric_vines_end": "Auric Vines",

"block.sculk_depths.kryslum_enriched_soil": "Kryslum Enriched Soil",

Expand Down Expand Up @@ -201,4 +203,4 @@
"tooltip.sculk_depths.crystal_upgrade.crystal.\"orange\"": " Orange Crystal",
"tooltip.sculk_depths.crystal_upgrade.crystal.\"blue\"": " Blue Crystal",
"tooltip.sculk_depths.crystal_upgrade.crystal.\"lime\"": " Lime Crystal"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/tinted_cross",
"textures": {
"cross": "sculk_depths:block/auric_vines"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/tinted_cross",
"textures": {
"cross": "sculk_depths:block/auric_vines_end"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "sculk_depths:block/auric_vines"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 d1e2c4b

Please sign in to comment.