Skip to content

Commit

Permalink
Update to 1.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
pluto7073 committed Oct 9, 2024
1 parent 1a180f3 commit 0d00d7d
Show file tree
Hide file tree
Showing 15 changed files with 61 additions and 24 deletions.
7 changes: 4 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '1.5-SNAPSHOT'
id 'fabric-loom' version '1.7-SNAPSHOT'
id 'maven-publish'
}

Expand All @@ -17,6 +17,7 @@ repositories {
maven { url "https://pluto-mod-maven.web.app/maven" }
maven { url = "https://maven.parchmentmc.org" }
maven { url = "https://maven.quiltmc.org/repository/release" }
maven { url "https://maven.nucleoid.xyz/" }
}

loom {
Expand All @@ -40,7 +41,7 @@ dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings(loom.layered {
it.mappings "org.quiltmc:quilt-mappings:${minecraft_version}+build.${quilt_mappings}:intermediary-v2"
it.parchment "org.parchmentmc.data:parchment-${minecraft_version}:${parchment_version}@zip"
//it.parchment "org.parchmentmc.data:parchment-${minecraft_version}:${parchment_version}@zip"
it.officialMojangMappings { nameSyntheticMembers = false }
})
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
Expand All @@ -56,7 +57,7 @@ dependencies {

modRuntimeOnly "me.shedaniel:RoughlyEnoughItems-fabric:${project.rei_version}"

modApi "dev.architectury:architectury-fabric:10.1.20" // For REI
modApi "dev.architectury:architectury-fabric:$architectury_version" // For REI
}

processResources {
Expand Down
17 changes: 9 additions & 8 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,21 @@ org.gradle.jvmargs=-Xmx1G

# Minecraft Stuff
# check these on https://fabricmc.net/develop
minecraft_version=1.20.2
minecraft_version=1.20.4
loader_version=0.16.5
quilt_mappings=3
parchment_version = 2023.12.10
parchment_version=2024.04.14

# Mod Thingies
mod_version = 1.20.2+3.0
mod_version = 1.20.4+3.0
maven_group = ml.pluto7073
archives_base_name = PlutosCoffeeMod-Fabric

# Things I might be dependent on
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
fabric_version=0.91.6+1.20.2
cloth_version=12.0.119
modmenu_version=8.0.1
pdapi_version=0.2.20
rei_version=13.1.773
fabric_version=0.97.2+1.20.4
cloth_version=13.0.138
modmenu_version=9.2.0
rei_version=14.1.774
architectury_version=11.1.17
pdapi_version=1.0.1
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package ml.pluto7073.plutoscoffee.blocks;

import com.mojang.serialization.Codec;
import com.mojang.serialization.MapCodec;
import ml.pluto7073.plutoscoffee.registry.ModBlocks;
import ml.pluto7073.plutoscoffee.registry.ModStats;
import net.minecraft.MethodsReturnNonnullByDefault;
Expand Down Expand Up @@ -40,13 +42,19 @@ public class CoffeeBrewerBlock extends BaseEntityBlock {
* 2 - Filled Bottle
*/
public static final IntegerProperty BOTTLE_PROPERTY;
public static final MapCodec<CoffeeBrewerBlock> CODEC = simpleCodec(CoffeeBrewerBlock::new);
protected static final VoxelShape SHAPE;

public CoffeeBrewerBlock(Properties settings) {
super(settings);
this.registerDefaultState(this.stateDefinition.any().setValue(BOTTLE_PROPERTY, 0));
}

@Override
protected MapCodec<CoffeeBrewerBlock> codec() {
return CODEC;
}

public RenderShape getRenderShape(BlockState state) {
return RenderShape.MODEL;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package ml.pluto7073.plutoscoffee.blocks;

import com.mojang.serialization.MapCodec;
import ml.pluto7073.plutoscoffee.registry.ModBlocks;
import ml.pluto7073.plutoscoffee.registry.ModStats;
import net.minecraft.MethodsReturnNonnullByDefault;
Expand Down Expand Up @@ -36,6 +37,7 @@ public class CoffeeGrindrBlock extends BaseEntityBlock {

public static final BooleanProperty FULL_PROPERTY;
public static final DirectionProperty FACING_PROPERTY;
public static final MapCodec<CoffeeGrindrBlock> CODEC = simpleCodec(CoffeeGrindrBlock::new);
protected static final VoxelShape SHAPE;

public CoffeeGrindrBlock(Properties properties) {
Expand All @@ -45,6 +47,11 @@ public CoffeeGrindrBlock(Properties properties) {
.setValue(FACING_PROPERTY, Direction.NORTH));
}

@Override
protected MapCodec<? extends BaseEntityBlock> codec() {
return CODEC;
}

@Override
public RenderShape getRenderShape(BlockState state) {
return RenderShape.MODEL;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package ml.pluto7073.plutoscoffee.blocks;

import com.mojang.serialization.MapCodec;
import ml.pluto7073.plutoscoffee.registry.ModBlocks;
import ml.pluto7073.plutoscoffee.registry.ModItems;
import ml.pluto7073.plutoscoffee.registry.ModStats;
Expand Down Expand Up @@ -42,6 +43,7 @@ public class EspressoMachineBlock extends BaseEntityBlock {
public static final BooleanProperty PULLING;
public static final BooleanProperty HAS_MILK;
public static final DirectionProperty FACING;
public static final MapCodec<EspressoMachineBlock> CODEC = simpleCodec(EspressoMachineBlock::new);

protected static VoxelShape SHAPE;

Expand All @@ -54,6 +56,11 @@ public EspressoMachineBlock(Properties settings) {
.setValue(FACING, Direction.NORTH));
}

@Override
protected MapCodec<? extends BaseEntityBlock> codec() {
return CODEC;
}

public RenderShape getRenderShape(BlockState state) {
return RenderShape.MODEL;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"changesColor": true,
"color": 1444354,
"caffeine": 85
"chemicals": {
"caffeine": 85
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"changesColor": true,
"color": 1444354,
"caffeine": 2
"chemicals": {
"caffeine": 2
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"changesColor": true,
"color": 1444354,
"caffeine": 75
"chemicals": {
"caffeine": 75
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"plutoscoffee:espresso_shot",
"plutoscoffee:espresso_shot"
],
"caffeine": 150,
"chemicals": {
"caffeine": 150
},
"color": 8935223,
"onDrinkActions": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"plutoscoffee:espresso_shot",
"plutoscoffee:espresso_shot"
],
"caffeine": 150,
"chemicals": {
"caffeine": 150
},
"color": 1839885,
"onDrinkActions": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"plutoscoffee:espresso_shot",
"plutoscoffee:espresso_shot"
],
"caffeine": 350,
"chemicals": {
"caffeine": 350
},
"color": 985088,
"onDrinkActions": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"plutoscoffee:espresso_shot",
"plutoscoffee:espresso_shot"
],
"caffeine": 150,
"chemicals": {
"caffeine": 150
},
"color": 8872502,
"onDrinkActions": [
{
Expand Down
7 changes: 3 additions & 4 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,11 @@
"accessWidener": "plutoscoffee.accesswidener",

"depends": {
"fabricloader": ">=0.15.7",
"fabricloader": ">=0.16.5",
"fabric-api": "*",
"minecraft": "~1.20.1",
"minecraft": "~1.20.3",
"java": ">=17",
"cloth-config": ">=11.1.118",
"pdapi": ">=0.1.4"
"pdapi": ">=1.0.1"
},
"suggests": {
"flamingo": "*",
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/resourcepacks/dark_gui/pack.mcmeta
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"pack": {
"pack_format": 15,
"pack_format": 22,
"description": "Makes the GUI for Pluto's Coffee Mod be in Dark Mode, similar to Vanilla Tweaks Dark Mode"
}
}

0 comments on commit 0d00d7d

Please sign in to comment.