Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync #280

Merged
merged 71 commits into from
Nov 19, 2023
Merged

sync #280

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
7f84cb1
monstrosity head not required anymore for mob head collection advance…
DaFuqs Nov 6, 2023
47b19b5
Merge remote-tracking branch 'origin/1.19-deeper-down' into 1.19-deep…
DaFuqs Nov 12, 2023
ab7ae77
dd portal teleport only destroys natural dd blocks, not other (probab…
DaFuqs Nov 12, 2023
e600fce
update fabric
DaFuqs Nov 12, 2023
4b3f4aa
unlock for titration honey recipe (Eset)
DaFuqs Nov 12, 2023
efb365e
fixed z-fighting in potion workshop (Noaaan)
DaFuqs Nov 12, 2023
53f0eac
cap spawner detection upgrade range at 64
DaFuqs Nov 12, 2023
6aa550b
better fitting potion workshop outline
DaFuqs Nov 12, 2023
91bdf87
Primordial fire now works as originally planned + Kindlings now brawl
Azzyypaaras Nov 13, 2023
e594f15
Further kindling play tweaks
Azzyypaaras Nov 13, 2023
85f342f
Merge remote-tracking branch 'origin/1.19-deeper-down' into 1.19-deep…
DaFuqs Nov 13, 2023
2480527
tweaked primordial fire damage calculation
DaFuqs Nov 13, 2023
2d12bfa
command formatting
DaFuqs Nov 13, 2023
a06cb4b
command to set entities on primordial fire
DaFuqs Nov 13, 2023
6e09210
fixed kindling anims when riding & improved kindling loving
DaFuqs Nov 13, 2023
1234ebe
added missing config tooltip
DaFuqs Nov 13, 2023
381f098
anvil config setting only applies when enchanting items, not combinin…
DaFuqs Nov 13, 2023
efabb05
fixed disenchanting enchanted books in midnight solution resulting in…
DaFuqs Nov 13, 2023
1641525
yes
DaFuqs Nov 13, 2023
f9badf0
probably fix #272. Buw who knows, really
DaFuqs Nov 13, 2023
0c9fb69
simplified disenchanting code
DaFuqs Nov 14, 2023
69290fa
move everything that can be eaten into the cuisine guidebook category
DaFuqs Nov 14, 2023
7fceeaf
fix dragonrot converting guidebook page type background
DaFuqs Nov 14, 2023
1600eee
add "mud converting" guidebook page type. Update guidebook
DaFuqs Nov 14, 2023
26fc46d
simplified bident code
DaFuqs Nov 14, 2023
2f19ca4
lowered default angels share to not be as brutal in dry biomes
DaFuqs Nov 14, 2023
a755580
lots of small improvements all around
DaFuqs Nov 14, 2023
a06a8f6
add pipe bombs as loot
DaFuqs Nov 14, 2023
fe8230e
rework the modular explosives guidebook entry
DaFuqs Nov 14, 2023
e608499
modular explosive improvements
DaFuqs Nov 14, 2023
53c475f
fixed myceylon pastry recipes
DaFuqs Nov 14, 2023
a5719ad
the mysterious compass will not work in the hands of non-worthy players
DaFuqs Nov 14, 2023
3caa8f4
improved pipe bomb tooltip
DaFuqs Nov 14, 2023
446d082
improved myceylon guidebook entry
DaFuqs Nov 14, 2023
6dc6d24
fixed titration recipe parsing message
DaFuqs Nov 14, 2023
2a46682
added cloaks to loads of gated items
DaFuqs Nov 14, 2023
4a2d291
dedicated compat for create:honey
DaFuqs Nov 14, 2023
3ca00bd
fixed pastel networks not filtering items
DaFuqs Nov 14, 2023
3d4a736
Primordial Fire tick tweaks
Noaaan Nov 14, 2023
53f3832
Merge remote-tracking branch 'origin/1.19-deeper-down' into 1.19-deep…
Noaaan Nov 14, 2023
a9c26c3
fixed entity lag in Black Langast
DaFuqs Nov 15, 2023
39364e8
increase doombloom seed drops
DaFuqs Nov 15, 2023
2fd5f93
made color picker more quiet
DaFuqs Nov 15, 2023
f271f7e
made color picker more quiet
DaFuqs Nov 15, 2023
c9f159c
increased threat conflux yield
DaFuqs Nov 15, 2023
188085c
made dd cities a tad larger
DaFuqs Nov 15, 2023
84d7963
pipe bombs
DaFuqs Nov 15, 2023
bb46334
Merge remote-tracking branch 'origin/1.19-deeper-down' into 1.19-deep…
DaFuqs Nov 15, 2023
b0a9530
reimplement direct damage interface
Noaaan Nov 15, 2023
d580539
Merge remote-tracking branch 'origin/1.19-deeper-down' into 1.19-deep…
Noaaan Nov 15, 2023
c93784d
made sure empty resonance drops don't mess with others
DaFuqs Nov 16, 2023
3088927
cleaned up spawner resonance drop
DaFuqs Nov 16, 2023
28116a9
unlock a bit more optional stuff on upgrade
DaFuqs Nov 16, 2023
2524a8f
Merge remote-tracking branch 'origin/1.19-deeper-down' into 1.19-deep…
DaFuqs Nov 16, 2023
e5b59dc
make jadeite placeable on stone
DaFuqs Nov 16, 2023
651c0e9
baby kindlings are smol
DaFuqs Nov 16, 2023
1c2d273
not THAT smol
DaFuqs Nov 16, 2023
0b3b9bd
fixed kindling crash
DaFuqs Nov 16, 2023
9c4f101
fixed missing DD city porches. At a price.
DaFuqs Nov 16, 2023
4fd0bb8
Reworked primordial fire effect as previously planned. Nerfed Primord…
Azzyypaaras Nov 17, 2023
ef7b1bd
removed secret flags on unlockable guidebook entries
DaFuqs Nov 17, 2023
b1b9496
stripped wood common tag
DaFuqs Nov 17, 2023
9b1c9fa
updated Remembrance staff guidebook entry (maxgamer134)
DaFuqs Nov 17, 2023
0a797d5
update archive name
DaFuqs Nov 17, 2023
c3b8ef0
removed underground air from terrace_houses_base
DaFuqs Nov 17, 2023
072a6fe
fixed quitoxic reeds not always consuming clay
DaFuqs Nov 17, 2023
af51dc8
netherite_crap_crap
DaFuqs Nov 18, 2023
4e29bc9
exploding blocks keeps the fluids
DaFuqs Nov 18, 2023
80e8566
fixed crafting tablet crash when not having progression (Noaaan)
DaFuqs Nov 18, 2023
e337a04
decay will not consume any blocks without hitbox like radiance staff …
DaFuqs Nov 18, 2023
c26bf40
reworked GravitableItems to scale linearly. Simplified code
DaFuqs Nov 18, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ org.gradle.jvmargs=-Xmx2G
# Fabric Properties
minecraft_version=1.19.2
yarn_mappings=1.19.2+build.28
loader_version=0.14.21
loader_version=0.14.24

# Mod Properties
mod_version=1.7.0
maven_group=de.dafuqs.spectrum
archives_base_name=spectrum-1.7.0-deeper-down-alpha22
archives_base_name=spectrum-1.7.0-deeper-down

# Dependencies
# https://fabricmc.net/develop/
fabric_version=0.76.0+1.19.2
fabric_version=0.76.1+1.19.2
cloth_config_version=8.2.88
modmenu_version=4.0.6
rei_version=9.1.595
Expand Down
29 changes: 18 additions & 11 deletions src/main/java/de/dafuqs/spectrum/blocks/DeeperDownPortalBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,30 +31,30 @@ public class DeeperDownPortalBlock extends Block {
private final static String CREATE_PORTAL_ADVANCEMENT_CRITERION = "opened_deeper_down_portal";

public static final BooleanProperty FACING_UP = Properties.UP;

protected static final VoxelShape SHAPE = Block.createCuboidShape(0.0D, 0.0D, 0.0D, 16.0D, 4D, 16.0D);
protected static final VoxelShape SHAPE_UP = Block.createCuboidShape(0.0D, 4D, 0.0D, 16.0D, 16.0D, 16.0D);

public DeeperDownPortalBlock(Settings settings) {
super(settings);
this.setDefaultState((this.stateManager.getDefaultState()).with(FACING_UP, false));
}

@Override
public boolean hasSidedTransparency(BlockState state) {
return true;
}

@Override
@SuppressWarnings("deprecation")
public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) {
super.onBlockAdded(state, world, pos, oldState, notify);

if (!world.isClient) { // that should be a given, but in modded you never know
SpectrumS2CPacketSender.playParticleWithRandomOffsetAndVelocity((ServerWorld) world, Vec3d.ofCenter(pos), SpectrumParticleTypes.VOID_FOG, 30, new Vec3d(0.5, 0.0, 0.5), Vec3d.ZERO);
if (!hasNeighboringPortals(world, pos)) {
world.playSound(null, pos.getX() + 0.5, pos.getY() + 0.5, pos.getZ() + 0.5, SpectrumSoundEvents.DEEPER_DOWN_PORTAL_OPEN, SoundCategory.BLOCKS, 0.75F, 0.75F);

for (PlayerEntity nearbyPlayer : world.getEntitiesByType(EntityType.PLAYER, Box.of(Vec3d.ofCenter(pos), 16D, 16D, 16D), LivingEntity::isAlive)) {
Support.grantAdvancementCriterion((ServerPlayerEntity) nearbyPlayer, CREATE_PORTAL_ADVANCEMENT_IDENTIFIER, CREATE_PORTAL_ADVANCEMENT_CRITERION);
}
Expand Down Expand Up @@ -114,12 +114,12 @@ public void onEntityCollision(BlockState state, World world, BlockPos pos, Entit
&& !entity.hasVehicle()
&& !entity.hasPassengers()
&& entity.canUsePortals()) {

RegistryKey<World> currentWorldKey = world.getRegistryKey();
if (currentWorldKey == World.OVERWORLD) {
if (!entity.hasPortalCooldown()) {
entity.resetPortalCooldown();

// => teleport to DD
ServerWorld targetWorld = ((ServerWorld) world).getServer().getWorld(SpectrumDimensions.DIMENSION_KEY);
if (targetWorld != null) {
Expand Down Expand Up @@ -170,13 +170,20 @@ public void makeRoomAround(World world, BlockPos blockPos, int radius) {
}

state = world.getBlockState(pos);
if (state.getBlock() instanceof DeeperDownPortalBlock) {

if (state.isOf(Blocks.BEDROCK)) {
if (pos.getX() == blockPos.getX() && pos.getZ() == blockPos.getZ()) {
world.breakBlock(pos, true, null);
}
continue;
}

float hardness = state.getHardness(world, pos);
if ((pos.getX() == blockPos.getX() && pos.getZ() == blockPos.getZ()) || (hardness >= 0 && hardness < 30)) {
if (!state.isIn(SpectrumBlockTags.BASE_STONE_DEEPER_DOWN)) {
continue;
}

float hardness = state.getHardness(world, pos);
if (hardness >= 0 && hardness < 30) {
world.breakBlock(pos, true, null);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class PrimordialFireBlock extends AbstractFireBlock {
private static final VoxelShape SOUTH_SHAPE = Block.createCuboidShape(0.0, 0.0, 15.0, 16.0, 16.0, 16.0);

private final Map<BlockState, VoxelShape> shapesByState;
private static final float DAMAGE = 4.0F;
private static final float DAMAGE = 0.2F;

public PrimordialFireBlock(Settings settings) {
super(settings, DAMAGE);
Expand Down Expand Up @@ -109,10 +109,10 @@ public BlockState getStateForPosition(BlockView world, BlockPos pos) {

@Override
public void onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) {
if (!entity.isFireImmune() && entity instanceof LivingEntity livingEntity) {
if (entity instanceof LivingEntity livingEntity) {
OnPrimordialFireComponent.addPrimordialFireTicks(livingEntity, 5);
}

entity.damage(SpectrumDamageSources.PRIMORDIAL_FIRE, DAMAGE);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,13 @@ public void randomTick(BlockState state, ServerWorld world, BlockPos pos, Random
if (j == 7) {
// consume 1 block close to the reed when growing.
// if the quitoxic reeds are growing in liquid crystal: 1/4 chance to consume
// search for block it could be planted on. 1 block => 1 quitoxic reed
Optional<BlockPos> plantablePos = searchPlantablePos(world, pos.down(i), SpectrumBlockTags.QUITOXIC_REEDS_PLANTABLE, random);
if (plantablePos.isEmpty() || world.getBlockState(plantablePos.get().up()).getBlock() instanceof QuitoxicReedsBlock) {
return;
}

if (!bottomLiquidCrystalLogged || random.nextInt(4) == 0) {
// search for block it could be planted on. 1 block => 1 quitoxic reed
Optional<BlockPos> plantablePos = searchPlantablePos(world, pos.down(i), SpectrumBlockTags.QUITOXIC_REEDS_PLANTABLE, random);
if (plantablePos.isEmpty() || world.getBlockState(plantablePos.get().up()).getBlock() instanceof QuitoxicReedsBlock) {
return;
}
world.setBlockState(plantablePos.get(), Blocks.DIRT.getDefaultState(), 3);
world.playSound(null, plantablePos.get(), SoundEvents.BLOCK_GRAVEL_BREAK, SoundCategory.BLOCKS, 1.0F, 1.0F);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ protected static void explode(World world, BlockPos pos, BlockState state) {
world.removeBlock(pos, false);
world.createExplosion(null, SpectrumDamageSources.INCANDESCENCE, new ExplosionBehavior(), pos.getX() + 0.5, pos.getY() + 0.5, pos.getZ() + 0.5, 3.0F, true, Explosion.DestructionType.DESTROY);
if (!world.isClient) {
dropStack(world, pos, new ItemStack(SpectrumItems.DOOMBLOOM_SEED, world.random.nextBetween(2, 4)));
dropStack(world, pos, new ItemStack(SpectrumItems.DOOMBLOOM_SEED, world.random.nextBetween(3, 7)));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ public static boolean spreadBlackMateria(World world, BlockPos pos, Random rando
}
return replacedAny;
}

@Override
protected int getFallDelay() {
return 20;
}

@Override
public boolean hasRandomTicks(BlockState state) {
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/de/dafuqs/spectrum/blocks/decay/DecayBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public void neighborUpdate(BlockState state, World world, BlockPos pos, Block pr
Block updatedBlock = updatedState.getBlock();

if (!(updatedBlock instanceof DecayBlock) && !(updatedBlock instanceof DecayAwayBlock)) {
@Nullable BlockState spreadState = this.getSpreadState(state, updatedState);
@Nullable BlockState spreadState = this.getSpreadState(state, updatedState, world, fromPos);
if (spreadState != null) {
world.createAndScheduleBlockTick(pos, this, 40 + world.random.nextInt(200), TickPriority.EXTREMELY_LOW);
}
Expand Down Expand Up @@ -157,7 +157,7 @@ protected boolean trySpreadInDirection(@NotNull World world, BlockState state, @
BlockState targetBlockState = world.getBlockState(targetPos);

if (canSpreadTo(world, targetPos, targetBlockState)) {
@Nullable BlockState spreadState = this.getSpreadState(state, targetBlockState);
@Nullable BlockState spreadState = this.getSpreadState(state, targetBlockState, world, targetPos);
if (spreadState != null) {
world.setBlockState(targetPos, spreadState);
}
Expand All @@ -166,6 +166,6 @@ protected boolean trySpreadInDirection(@NotNull World world, BlockState state, @
return false;
}

protected abstract @Nullable BlockState getSpreadState(BlockState stateToSpreadFrom, BlockState stateToSpreadTo);
protected abstract @Nullable BlockState getSpreadState(BlockState stateToSpreadFrom, BlockState stateToSpreadTo, World world, BlockPos stateToSpreadToPos);

}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void onPlaced(World world, BlockPos pos, BlockState state, @Nullable Livi
}

@Override
protected @Nullable BlockState getSpreadState(BlockState stateToSpreadFrom, BlockState stateToSpreadTo) {
protected @Nullable BlockState getSpreadState(BlockState stateToSpreadFrom, BlockState stateToSpreadTo, World world, BlockPos stateToSpreadToPos) {
if (stateToSpreadTo.isIn(SpectrumBlockTags.FADING_SPECIAL_CONVERSIONS)) {
return stateToSpreadFrom.with(CONVERSION, Conversion.SPECIAL);
} else if (stateToSpreadTo.isIn(SpectrumBlockTags.FADING_CONVERSIONS)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ protected void appendProperties(StateManager.Builder<Block, BlockState> stateMan
}

@Override
protected @Nullable BlockState getSpreadState(BlockState stateToSpreadFrom, BlockState stateToSpreadTo) {
protected @Nullable BlockState getSpreadState(BlockState stateToSpreadFrom, BlockState stateToSpreadTo, World world, BlockPos stateToSpreadToPos) {
if (stateToSpreadFrom.get(AGE) >= Properties.AGE_15_MAX) {
return null;
}
if (stateToSpreadTo.isAir() || stateToSpreadTo.getBlock() instanceof FluidBlock || stateToSpreadTo.isIn(SpectrumBlockTags.FAILING_SAFE)) {
if (stateToSpreadTo.getCollisionShape(world, stateToSpreadToPos).isEmpty() || stateToSpreadTo.isIn(SpectrumBlockTags.FAILING_SAFE)) {
return null;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@ public PistonBehavior getPistonBehavior(BlockState state) {
}

@Override
protected @Nullable BlockState getSpreadState(BlockState stateToSpreadFrom, BlockState stateToSpreadTo) {
if (stateToSpreadTo.isIn(SpectrumBlockTags.FORFEITURE_SAFE) || stateToSpreadTo.getBlock() instanceof FluidBlock) {
protected @Nullable BlockState getSpreadState(BlockState stateToSpreadFrom, BlockState stateToSpreadTo, World world, BlockPos stateToSpreadToPos) {
if (stateToSpreadTo.isIn(SpectrumBlockTags.FORFEITURE_SAFE)) {
return null;
}

if (stateToSpreadTo.isIn(SpectrumBlockTags.FORFEITURE_SPECIAL_CONVERSIONS)) {
return this.getDefaultState().with(CONVERSION, Conversion.SPECIAL);
} else if (stateToSpreadTo.isIn(SpectrumBlockTags.FORFEITURE_CONVERSIONS)) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/dafuqs/spectrum/blocks/decay/RuinBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public PistonBehavior getPistonBehavior(BlockState state) {
}

@Override
protected @Nullable BlockState getSpreadState(BlockState stateToSpreadFrom, BlockState stateToSpreadTo) {
if (stateToSpreadTo.isAir() || stateToSpreadTo.getBlock() instanceof FluidBlock || stateToSpreadTo.isIn(SpectrumBlockTags.RUIN_SAFE)) {
protected @Nullable BlockState getSpreadState(BlockState stateToSpreadFrom, BlockState stateToSpreadTo, World world, BlockPos stateToSpreadToPos) {
if (stateToSpreadTo.getCollisionShape(world, stateToSpreadToPos).isEmpty() || stateToSpreadTo.isIn(SpectrumBlockTags.RUIN_SAFE)) {
return null;
}

Expand Down
Loading
Loading