Skip to content

Commit f3fc321

Browse files
committed
Update to 23w51b.
- Update to 23w51b
1 parent c6632b7 commit f3fc321

File tree

6 files changed

+30
-30
lines changed

6 files changed

+30
-30
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencies {
2525
includeMod "cloth-config", "me.shedaniel.cloth:cloth-config-fabric:${project.clothconfig_version}"
2626

2727
if (findProject(':cinderscapes-worldgen') != null) {
28-
includeMod "biolith", "com.terraformersmc:biolith:${biolith_version}"
28+
includeMod "biolith", "com.terraformersmc:biolith-fabric:${biolith_version}"
2929
}
3030

3131
afterEvaluate {

common/src/main/java/com/terraformersmc/cinderscapes/block/BrambleBerryBushBlock.java

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,17 @@
1313
import net.minecraft.entity.LivingEntity;
1414
import net.minecraft.entity.player.PlayerEntity;
1515
import net.minecraft.item.ItemStack;
16-
import net.minecraft.item.Items;
1716
import net.minecraft.sound.SoundCategory;
1817
import net.minecraft.sound.SoundEvents;
1918
import net.minecraft.util.ActionResult;
20-
import net.minecraft.util.Hand;
2119
import net.minecraft.util.hit.BlockHitResult;
2220
import net.minecraft.util.math.BlockPos;
2321
import net.minecraft.util.math.Vec3d;
2422
import net.minecraft.util.shape.VoxelShape;
2523
import net.minecraft.world.BlockView;
2624
import net.minecraft.world.World;
2725
import net.minecraft.world.WorldView;
26+
import net.minecraft.world.event.GameEvent;
2827

2928
public class BrambleBerryBushBlock extends SweetBerryBushBlock {
3029
private static final VoxelShape SMALL_SHAPE = Block.createCuboidShape(3.0D, 0.0D, 3.0D, 13.0D, 8.0D, 13.0D);
@@ -65,20 +64,21 @@ public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos po
6564
}
6665

6766
@Override
68-
public ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) {
69-
int i = state.get(AGE);
70-
boolean bl = i == 3;
71-
if (!bl && player.getStackInHand(hand).getItem() == Items.BONE_MEAL) {
72-
return ActionResult.PASS;
73-
} else if (i > 1) {
74-
int j = 1 + world.random.nextInt(2);
75-
dropStack(world, pos, new ItemStack(CinderscapesItems.BRAMBLE_BERRIES, j + (bl ? 1 : 0)));
76-
world.playSound(null, pos, SoundEvents.BLOCK_SWEET_BERRY_BUSH_PICK_BERRIES, SoundCategory.BLOCKS, 1.0F, 0.8F + world.random.nextFloat() * 0.4F);
77-
world.setBlockState(pos, state.with(AGE, 1), 2);
78-
return ActionResult.SUCCESS;
79-
} else {
80-
return super.onUse(state, world, pos, player, hand, hit);
67+
public ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) {
68+
int age = state.get(AGE);
69+
70+
if (age > 1) {
71+
int count = age - 1 + world.random.nextInt(2);
72+
dropStack(world, pos, new ItemStack(CinderscapesItems.BRAMBLE_BERRIES, count));
73+
world.playSound(null, pos, SoundEvents.BLOCK_SWEET_BERRY_BUSH_PICK_BERRIES, SoundCategory.BLOCKS, 1.0f, 0.8f + world.random.nextFloat() * 0.4f);
74+
BlockState newState = state.with(AGE, 1);
75+
world.setBlockState(pos, newState, 2);
76+
world.emitGameEvent(GameEvent.BLOCK_CHANGE, pos, GameEvent.Emitter.of(player, newState));
77+
78+
return ActionResult.success(world.isClient);
8179
}
80+
81+
return super.onUse(state, world, pos, player, hit);
8282
}
8383

8484
@Override

gradle.properties

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ fabric.loom.multiProjectOptimisation=true
44
maven_group=com.terraformersmc
55
archive_name=cinderscapes
66

7-
minecraft_version=1.20.3
8-
yarn_mappings=1.20.3+build.1
9-
loader_version=0.15.1
10-
fabric_version=0.91.1+1.20.3
7+
minecraft_version=23w51b
8+
yarn_mappings=23w51b+build.4
9+
loader_version=0.15.3
10+
fabric_version=0.93.1+1.20.5
1111

1212
# Terraform modules
1313
terraform_biome_remapper_api_version=9.0.0
@@ -16,14 +16,14 @@ terraform_surfaces_api_version=9.0.0
1616
terraform_wood_api_version=9.0.0
1717

1818
# Biolith for worldgen module and testing
19-
biolith_version=1.1.0-beta.1
19+
biolith_version=1.2.0-beta.1
2020

2121
# TerraBlender for worldgen module and testing
22-
terrablender_version=1.20.3-3.3.0.2
22+
terrablender_version=1.20.4-3.3.0.5
2323

2424
# Other Things
25-
clothconfig_version=12.0.111
26-
modmenu_version=9.0.0-pre.1
25+
clothconfig_version=13.0.121
26+
modmenu_version=9.0.0
2727
vistas_version=2.3.0
2828

2929
# Project Metadata
@@ -37,14 +37,14 @@ default_release_type=stable
3737
# CurseForge Metadata
3838
curseforge_slug=cinderscapes
3939
curseforge_id=391429
40-
curseforge_game_versions=1.20.3, 1.20.4, Fabric, Quilt
40+
curseforge_game_versions=1.20.5-Snapshot, Fabric, Quilt
4141
curseforge_required_dependencies=fabric-api
4242
curseforge_optional_dependencies=
4343

4444
# Modrinth Metadata
4545
modrinth_slug=cinderscapes
4646
modrinth_id=QC4wcUXZ
47-
modrinth_game_versions=1.20.3, 1.20.4
47+
modrinth_game_versions=23w51b
4848
modrinth_mod_loaders=fabric, quilt
4949
#modrinth_embedded_dependencies=biolith
5050

src/main/resources/fabric.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"depends": {
3838
"fabricloader": ">=0.15",
3939
"fabric-api": ">=0.77.0",
40-
"minecraft": ">=1.20.3 <1.21"
40+
"minecraft": ">=1.20.4 <1.21"
4141
},
4242
"breaks": {
4343
"bclib": "<3.0.8"

worldgen/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ dependencies {
88
implementation project(path: ':cinderscapes-common')
99

1010
// Biolith and TerraBlender for the worldgen API modules
11-
modImplementation "com.terraformersmc:biolith:${biolith_version}"
12-
modCompileOnlyApi "com.github.glitchfiend:TerraBlender-fabric:${terrablender_version}"
11+
modImplementation "com.terraformersmc:biolith-fabric:${biolith_version}"
12+
modCompileOnly "com.github.glitchfiend:TerraBlender-fabric:${terrablender_version}"
1313
}

worldgen/src/main/resources/fabric.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
}
2222
},
2323
"depends": {
24-
"biolith": "*"
24+
"biolith": ">=1.2.0-beta.1"
2525
}
2626
}

0 commit comments

Comments
 (0)