Skip to content

Commit

Permalink
Update mod to Forge 1.19.3-44.0.41
Browse files Browse the repository at this point in the history
- Changed the recipes to use the forge tags for brick & iron ingots
- Update compat with The One Probe to 1.19.3-7.0.0
- Temporary deactivation of JEI & Immersive Engineering support until they are ported to 1.19.3
  • Loading branch information
cech12 committed Dec 30, 2022
1 parent 7d0a0d6 commit 63b26a8
Show file tree
Hide file tree
Showing 24 changed files with 83 additions and 42 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cicd-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
java-version: 17
curseforge-id: 363593
game-versions: |
1.19.2
1.19.3
release-type: release
secrets:
curseforge-token: ${{ secrets.CURSEFORGE_API_KEY }}
Expand All @@ -67,7 +67,7 @@ jobs:
java-version: 17
modrinth-id: yzHyAUSI
game-versions: |
1.19.2
1.19.3
release-type: release
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Forge Recommended Versioning](https://mcforge.readthedocs.io/en/latest/conventions/versioning/).

## [1.19.3-1.9.0.0] - 2022-12-30
### Changed
- Update mod to Forge 1.19.3-44.0.41
- Changed the recipes to use the forge tags for brick & iron ingots
- Update compat with The One Probe to 1.19.3-7.0.0
- Temporary deactivation of JEI & Immersive Engineering support until they are ported to 1.19.3

## [1.19.2-1.8.3.0] - 2022-11-04
### Added
- Support for External Heater of Immersive Engineering #16
Expand Down
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,15 @@ dependencies {

// compile against the JEI API but do not include it at runtime
//compileOnly fg.deobf("mezz.jei:jei-${project.minecraft_version}-common-api:${project.jei_version}")
compileOnly fg.deobf("mezz.jei:jei-${project.minecraft_version}-forge:${project.jei_version}")
//compileOnly fg.deobf("mezz.jei:jei-${project.minecraft_version}-forge:${project.jei_version}")
// at runtime, use the full JEI jar
runtimeOnly fg.deobf("mezz.jei:jei-${project.minecraft_version}-forge:${project.jei_version}")
//runtimeOnly fg.deobf("mezz.jei:jei-${project.minecraft_version}-forge:${project.jei_version}")

implementation fg.deobf("mcjty.theoneprobe:theoneprobe:$top_version") {transitive = false}

//Immersive Engineering
runtimeOnly fg.deobf("blusunrize.immersiveengineering:ImmersiveEngineering:${project.immersive_engineering_version}")
compileOnly fg.deobf("blusunrize.immersiveengineering:ImmersiveEngineering:${project.immersive_engineering_version}:api")
//runtimeOnly fg.deobf("blusunrize.immersiveengineering:ImmersiveEngineering:${project.immersive_engineering_version}")
//compileOnly fg.deobf("blusunrize.immersiveengineering:ImmersiveEngineering:${project.immersive_engineering_version}:api")
}

// Example for how to get properties into the manifest for reading by the runtime..
Expand Down
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false

mod_id=brickfurnace
mod_version=1.8.3.0
minecraft_version=1.19.2
forge_version=43.1.2
mod_version=1.9.0.0
minecraft_version=1.19.3
forge_version=44.0.41

# jei
jei_version=11.2.0.246
# jei_version=11.2.0.246

#the one probe
top_version=1.19-6.2.0-6
top_version=1.19.3-7.0.0-2

# immersive engineering
immersive_engineering_version=1.19.2-9.0.0-153
# immersive_engineering_version=1.19.2-9.0.0-153
13 changes: 13 additions & 0 deletions src/main/java/cech12/brickfurnace/BrickFurnaceMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
import cech12.brickfurnace.init.ModPoiTypes;
import cech12.brickfurnace.init.ModRecipeTypes;
import cech12.brickfurnace.config.ServerConfig;
import net.minecraft.world.item.CreativeModeTabs;
import net.minecraftforge.event.CreativeModeTabEvent;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.ModList;
import net.minecraftforge.fml.ModLoadingContext;
import net.minecraftforge.fml.common.Mod;
Expand All @@ -19,6 +22,7 @@
import static cech12.brickfurnace.BrickFurnaceMod.MOD_ID;

@Mod(MOD_ID)
@Mod.EventBusSubscriber(modid= MOD_ID, bus= Mod.EventBusSubscriber.Bus.MOD)
public class BrickFurnaceMod {

public static final String MOD_ID = "brickfurnace";
Expand All @@ -40,4 +44,13 @@ public BrickFurnaceMod() {
}
}

@SubscribeEvent
public static void addItemsToTabs(CreativeModeTabEvent.BuildContents event) {
if (event.getTab() == CreativeModeTabs.FUNCTIONAL_BLOCKS) {
event.accept(ModItems.BRICK_FURNACE);
event.accept(ModItems.BRICK_BLAST_FURNACE);
event.accept(ModItems.BRICK_SMOKER);
}
}

}
4 changes: 2 additions & 2 deletions src/main/java/cech12/brickfurnace/compat/EventHandler.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package cech12.brickfurnace.compat;

import cech12.brickfurnace.compat.immersiveengineering.ImmersiveEngineering;
//import cech12.brickfurnace.compat.immersiveengineering.ImmersiveEngineering;
import net.minecraft.world.level.block.entity.BlockEntity;
import net.minecraftforge.event.AttachCapabilitiesEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
Expand All @@ -15,7 +15,7 @@ public class EventHandler {
@SubscribeEvent
public static void onCapabilitiesAttachBlockEntity(AttachCapabilitiesEvent<BlockEntity> event) {
if (ModList.get().isLoaded("immersiveengineering")) {
ImmersiveEngineering.onCapabilitiesAttachBlockEntity(event);
//TODO ImmersiveEngineering.onCapabilitiesAttachBlockEntity(event);
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package cech12.brickfurnace.compat.immersiveengineering;

/*
import blusunrize.immersiveengineering.api.tool.ExternalHeaterHandler;
import cech12.brickfurnace.blockentity.AbstractBrickFurnaceBlockEntity;
import cech12.brickfurnace.blockentity.BrickFurnaceBlockEntity;
Expand Down Expand Up @@ -81,3 +82,4 @@ public void setFurnaceActive() {
}
}
}
*/
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package cech12.brickfurnace.compat.immersiveengineering;

/*
import blusunrize.immersiveengineering.api.tool.ExternalHeaterHandler;
import blusunrize.immersiveengineering.api.utils.CapabilityUtils;
import cech12.brickfurnace.BrickFurnaceMod;
Expand Down Expand Up @@ -42,3 +43,4 @@ public <T2> LazyOptional<T2> getCapability(@Nonnull Capability<T2> cap, @Nullabl
}
}
*/
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.crafting.AbstractCookingRecipe;
import net.minecraft.world.item.crafting.BlastingRecipe;
import net.minecraft.world.item.crafting.CookingBookCategory;
import net.minecraft.world.item.crafting.SimpleCookingSerializer;
import net.minecraft.world.item.crafting.RecipeSerializer;
import net.minecraft.world.item.crafting.Ingredient;
Expand All @@ -17,12 +18,12 @@ public class BrickBlastingRecipe extends AbstractCookingRecipe {

public static final SimpleCookingSerializer<BrickBlastingRecipe> SERIALIZER = new SimpleCookingSerializer<>(BrickBlastingRecipe::new, 100);

public BrickBlastingRecipe(ResourceLocation p_i50031_1_, String p_i50031_2_, Ingredient p_i50031_3_, ItemStack p_i50031_4_, float p_i50031_5_, int p_i50031_6_) {
super(ModRecipeTypes.BLASTING.get(), p_i50031_1_, p_i50031_2_, p_i50031_3_, p_i50031_4_, p_i50031_5_, p_i50031_6_);
public BrickBlastingRecipe(ResourceLocation p_i50031_1_, String p_i50031_2_, CookingBookCategory category, Ingredient p_i50031_3_, ItemStack p_i50031_4_, float p_i50031_5_, int p_i50031_6_) {
super(ModRecipeTypes.BLASTING.get(), p_i50031_1_, p_i50031_2_, category, p_i50031_3_, p_i50031_4_, p_i50031_5_, p_i50031_6_);
}

public static BrickBlastingRecipe convert(@Nonnull BlastingRecipe recipe) {
return new BrickBlastingRecipe(recipe.getId(), recipe.getGroup(), recipe.getIngredients().get(0), recipe.getResultItem(), recipe.getExperience(), (int) (recipe.getCookingTime() * ServerConfig.COOK_TIME_FACTOR.get()));
return new BrickBlastingRecipe(recipe.getId(), recipe.getGroup(), recipe.category(), recipe.getIngredients().get(0), recipe.getResultItem(), recipe.getExperience(), (int) (recipe.getCookingTime() * ServerConfig.COOK_TIME_FACTOR.get()));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import cech12.brickfurnace.config.ServerConfig;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.crafting.AbstractCookingRecipe;
import net.minecraft.world.item.crafting.CookingBookCategory;
import net.minecraft.world.item.crafting.SimpleCookingSerializer;
import net.minecraft.world.item.crafting.SmeltingRecipe;
import net.minecraft.world.item.crafting.RecipeSerializer;
Expand All @@ -17,12 +18,12 @@ public class BrickSmeltingRecipe extends AbstractCookingRecipe {

public static final SimpleCookingSerializer<BrickSmeltingRecipe> SERIALIZER = new SimpleCookingSerializer<>(BrickSmeltingRecipe::new, 200);

public BrickSmeltingRecipe(ResourceLocation p_i50031_1_, String p_i50031_2_, Ingredient p_i50031_3_, ItemStack p_i50031_4_, float p_i50031_5_, int p_i50031_6_) {
super(ModRecipeTypes.SMELTING.get(), p_i50031_1_, p_i50031_2_, p_i50031_3_, p_i50031_4_, p_i50031_5_, p_i50031_6_);
public BrickSmeltingRecipe(ResourceLocation p_i50031_1_, String p_i50031_2_, CookingBookCategory category, Ingredient p_i50031_3_, ItemStack p_i50031_4_, float p_i50031_5_, int p_i50031_6_) {
super(ModRecipeTypes.SMELTING.get(), p_i50031_1_, p_i50031_2_, category, p_i50031_3_, p_i50031_4_, p_i50031_5_, p_i50031_6_);
}

public static BrickSmeltingRecipe convert(@Nonnull SmeltingRecipe recipe) {
return new BrickSmeltingRecipe(recipe.getId(), recipe.getGroup(), recipe.getIngredients().get(0), recipe.getResultItem(), recipe.getExperience(), (int) (recipe.getCookingTime() * ServerConfig.COOK_TIME_FACTOR.get()));
return new BrickSmeltingRecipe(recipe.getId(), recipe.getGroup(), recipe.category(), recipe.getIngredients().get(0), recipe.getResultItem(), recipe.getExperience(), (int) (recipe.getCookingTime() * ServerConfig.COOK_TIME_FACTOR.get()));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import cech12.brickfurnace.config.ServerConfig;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.crafting.AbstractCookingRecipe;
import net.minecraft.world.item.crafting.CookingBookCategory;
import net.minecraft.world.item.crafting.SimpleCookingSerializer;
import net.minecraft.world.item.crafting.RecipeSerializer;
import net.minecraft.world.item.crafting.Ingredient;
Expand All @@ -17,12 +18,12 @@ public class BrickSmokingRecipe extends AbstractCookingRecipe {

public static final SimpleCookingSerializer<BrickSmokingRecipe> SERIALIZER = new SimpleCookingSerializer<>(BrickSmokingRecipe::new, 100);

public BrickSmokingRecipe(ResourceLocation p_i50031_1_, String p_i50031_2_, Ingredient p_i50031_3_, ItemStack p_i50031_4_, float p_i50031_5_, int p_i50031_6_) {
super(ModRecipeTypes.SMOKING.get(), p_i50031_1_, p_i50031_2_, p_i50031_3_, p_i50031_4_, p_i50031_5_, p_i50031_6_);
public BrickSmokingRecipe(ResourceLocation p_i50031_1_, String p_i50031_2_, CookingBookCategory category, Ingredient p_i50031_3_, ItemStack p_i50031_4_, float p_i50031_5_, int p_i50031_6_) {
super(ModRecipeTypes.SMOKING.get(), p_i50031_1_, p_i50031_2_, category, p_i50031_3_, p_i50031_4_, p_i50031_5_, p_i50031_6_);
}

public static BrickSmokingRecipe convert(@Nonnull SmokingRecipe recipe) {
return new BrickSmokingRecipe(recipe.getId(), recipe.getGroup(), recipe.getIngredients().get(0), recipe.getResultItem(), recipe.getExperience(), (int) (recipe.getCookingTime() * ServerConfig.COOK_TIME_FACTOR.get()));
return new BrickSmokingRecipe(recipe.getId(), recipe.getGroup(), recipe.category(), recipe.getIngredients().get(0), recipe.getResultItem(), recipe.getExperience(), (int) (recipe.getCookingTime() * ServerConfig.COOK_TIME_FACTOR.get()));
}

@Override
Expand Down
11 changes: 5 additions & 6 deletions src/main/java/cech12/brickfurnace/init/ModItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import cech12.brickfurnace.BrickFurnaceMod;
import net.minecraft.world.item.BlockItem;
import net.minecraft.world.item.CreativeModeTab;
import net.minecraft.world.item.Item;
import net.minecraft.world.level.block.Block;
import net.minecraftforge.registries.DeferredRegister;
Expand All @@ -13,12 +12,12 @@ public class ModItems {

public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, BrickFurnaceMod.MOD_ID);

public static final RegistryObject<Item> BRICK_FURNACE = fromBlock(ModBlocks.BRICK_FURNACE, CreativeModeTab.TAB_DECORATIONS);
public static final RegistryObject<Item> BRICK_BLAST_FURNACE = fromBlock(ModBlocks.BRICK_BLAST_FURNACE, CreativeModeTab.TAB_DECORATIONS);
public static final RegistryObject<Item> BRICK_SMOKER = fromBlock(ModBlocks.BRICK_SMOKER, CreativeModeTab.TAB_DECORATIONS);
public static final RegistryObject<Item> BRICK_FURNACE = fromBlock(ModBlocks.BRICK_FURNACE);
public static final RegistryObject<Item> BRICK_BLAST_FURNACE = fromBlock(ModBlocks.BRICK_BLAST_FURNACE);
public static final RegistryObject<Item> BRICK_SMOKER = fromBlock(ModBlocks.BRICK_SMOKER);

private static RegistryObject<Item> fromBlock(RegistryObject<Block> block, CreativeModeTab tab) {
return ITEMS.register(block.getId().getPath(), () -> new BlockItem(block.get(), new Item.Properties().tab(tab)));
private static RegistryObject<Item> fromBlock(RegistryObject<Block> block) {
return ITEMS.register(block.getId().getPath(), () -> new BlockItem(block.get(), new Item.Properties()));
}

}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package cech12.brickfurnace.jei;

/*
import cech12.brickfurnace.init.ModBlocks;
import cech12.brickfurnace.init.ModRecipeTypes;
import cech12.brickfurnace.config.ServerConfig;
Expand All @@ -23,3 +24,4 @@ public RecipeType<BrickBlastingRecipe> getRecipeType() {
}
}
*/
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package cech12.brickfurnace.jei;

/*
import cech12.brickfurnace.BrickFurnaceMod;
import cech12.brickfurnace.init.ModBlocks;
import cech12.brickfurnace.init.ModRecipeTypes;
Expand Down Expand Up @@ -85,3 +86,4 @@ public void registerRecipeCatalysts(@Nonnull IRecipeCatalystRegistration registr
}
}
*/
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package cech12.brickfurnace.jei;

/*
import cech12.brickfurnace.init.ModBlocks;
import cech12.brickfurnace.init.ModRecipeTypes;
import cech12.brickfurnace.config.ServerConfig;
Expand All @@ -23,3 +24,4 @@ public RecipeType<BrickSmeltingRecipe> getRecipeType() {
}
}
*/
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package cech12.brickfurnace.jei;

/*
import cech12.brickfurnace.init.ModBlocks;
import cech12.brickfurnace.init.ModRecipeTypes;
import cech12.brickfurnace.config.ServerConfig;
Expand All @@ -23,3 +24,4 @@ public RecipeType<BrickSmokingRecipe> getRecipeType() {
}
}
*/
8 changes: 4 additions & 4 deletions src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
modLoader="javafml"
loaderVersion="[43,)"
loaderVersion="[44,)"
issueTrackerURL="https://github.com/cech12/BrickFurnace/issues"
license="The MIT License (MIT)"
[[mods]]
Expand All @@ -15,13 +15,13 @@ license="The MIT License (MIT)"
[[dependencies.brickfurnace]]
modId="forge"
mandatory=true
versionRange="[43.1.2,)"
versionRange="[44.0.41,)"
ordering="NONE"
side="BOTH"
[[dependencies.brickfurnace]]
modId="minecraft"
mandatory=true
versionRange="[1.19.2,1.20)"
versionRange="[1.19.3,1.20)"
ordering="NONE"
side="BOTH"
[[dependencies.brickfurnace]]
Expand All @@ -33,7 +33,7 @@ license="The MIT License (MIT)"
[[dependencies.brickfurnace]]
modId="theoneprobe"
mandatory=false
versionRange="[1.19-6.2.0,)"
versionRange="[1.19.3-7.0.0,)"
ordering="NONE"
side="BOTH"
[[dependencies.brickfurnace]]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"conditions": {
"items": [
{
"item": "brickfurnace:brick_furnace"
"items": [
"brickfurnace:brick_furnace"
]
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"conditions": {
"items": [
{
"item": "minecraft:brick"
"tag": "forge:ingots/brick"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"conditions": {
"items": [
{
"item": "brickfurnace:brick_furnace"
"items": [
"brickfurnace:brick_furnace"
]
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"pattern": [
"III",
"IXI",
"###"
],
"key": {
"#": {
"item": "minecraft:bricks"
"tag": "forge:ingots/brick"
},
"X": {
"item": "brickfurnace:brick_furnace"
},
"I": {
"item": "minecraft:iron_ingot"
"tag": "forge:ingots/iron"
}
},
"result": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"pattern": [
"###",
"# #",
"###"
],
"key": {
"#": {
"item": "minecraft:brick"
"tag": "forge:ingots/brick"
}
},
"result": {
Expand Down
Loading

0 comments on commit 63b26a8

Please sign in to comment.