Skip to content

Commit 467d740

Browse files
committed
updated to work with last DT version
1 parent a185421 commit 467d740

File tree

7 files changed

+21
-22
lines changed

7 files changed

+21
-22
lines changed

build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ dependencies {
8888
implementation "net.neoforged:neoforge:${neo_version}"
8989

9090
//implementation 'curse.maven:dynamictrees-252818:7201567'
91-
implementation 'com.dtteam.dynamictrees:dynamictrees-neoforge-1.21.1:1.5.0-BETA13'
91+
implementation 'com.dtteam.dynamictrees:dynamictrees-neoforge-1.21.1:1.5.1'
9292

9393
runtimeOnly 'curse.maven:jade-324717:6291517'
9494
runtimeOnly "curse.maven:jei-238222:5846880"
@@ -183,3 +183,9 @@ idea {
183183
downloadJavadoc = true
184184
}
185185
}
186+
187+
tasks.jar {
188+
manifest {
189+
archiveFileName.set("${project.name}-neoforge-${minecraft_version}-${project.version}.jar")
190+
}
191+
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
mod_id=dynamictreesplus
33
mod_name=Dynamic Trees Plus
44
mod_license=MIT
5-
mod_version=1.3.0-BETA03
5+
mod_version=1.3.0-BETA04
66
version_type=beta
77
mod_group_id=com.dtteam.dynamictreesplus
88
mod_authors=Ferreusveritas, Max Hyper, Harley O'Connor

src/main/java/com/dtteam/dynamictreesplus/block/mushroom/CapProperties.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -204,15 +204,11 @@ public void setFireSpreadSpeed(int fireSpreadSpeed) {
204204
this.fireSpreadSpeed = fireSpreadSpeed;
205205
}
206206

207-
public MapColor getDefaultMapColor() {
208-
return MapColor.WOOD;
209-
}
210-
211-
public BlockBehaviour.Properties getDefaultBlockProperties(final MapColor mapColor) {
207+
public BlockBehaviour.Properties getDefaultBlockProperties() {
212208
return BlockBehaviour.Properties.of()
213-
.mapColor(mapColor)
214-
.strength(0.2F)
215-
.sound(SoundType.WOOD);
209+
.mapColor(MapColor.WOOD)
210+
.sound(SoundType.WOOD)
211+
.strength(0.2F);
216212
}
217213

218214
public int getMaxAge(HugeMushroomSpecies species) {

src/main/java/com/dtteam/dynamictreesplus/resources/CapPropertiesResourceLoader.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ public MapColor getDefaultMapColor() {
107107
private void generateBlocks(CapProperties capProperties, JsonObject json) {
108108
final BlockBehaviour.Properties blockProperties = JsonHelper.getBlockProperties(
109109
json,
110-
capProperties.getDefaultMapColor(),
111110
capProperties::getDefaultBlockProperties,
112111
error -> this.logError(capProperties.getRegistryName(), error),
113112
warning -> this.logWarning(capProperties.getRegistryName(), warning)

src/main/java/com/dtteam/dynamictreesplus/tree/CactusFamily.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import com.dtteam.dynamictreesplus.block.CactusBranchBlock;
88
import net.minecraft.resources.ResourceLocation;
99
import net.minecraft.world.level.block.SoundType;
10+
import net.minecraft.world.level.block.state.BlockBehaviour;
1011
import net.minecraft.world.level.material.MapColor;
1112

1213
public class CactusFamily extends Family {
@@ -18,13 +19,10 @@ public CactusFamily(final ResourceLocation registryName) {
1819
}
1920

2021
@Override
21-
public MapColor getDefaultBranchMapColor() {
22-
return MapColor.PLANT;
23-
}
24-
25-
@Override
26-
public SoundType getDefaultBranchSoundType() {
27-
return SoundType.WOOL;
22+
public BlockBehaviour.Properties getDefaultBranchProperties() {
23+
return super.getDefaultBranchProperties()
24+
.sound(SoundType.WOOL)
25+
.mapColor(MapColor.PLANT);
2826
}
2927

3028
@Override
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"primitive_cap": "brown_mushroom_block",
3-
"material_color": "DIRT",
43
"age_zero_shape": "slab",
54
"model_overrides": {
65
"cap_center_age_0_parent": "minecraft:block/slab"
76
},
8-
"mushroom_item": "brown_mushroom"
7+
"mushroom_item": "brown_mushroom",
8+
"map_color": "DIRT"
99
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"primitive_cap": "red_mushroom_block",
3-
"material_color": "COLOR_RED",
4-
"mushroom_item": "red_mushroom"
3+
"mushroom_item": "red_mushroom",
4+
"map_color": "COLOR_RED"
55
}

0 commit comments

Comments
 (0)