Jump to content

[1.16.5] Help with Furnace Container/Recipe


Luis_ST

Recommended Posts

i just creat a block which is called smelting furnace it should be a faster furnace for the default smelting recipes (like stone, clay, etc.).

At the moment the block has the normal furnace container and the normal recipes and i try to creat custom (container and recipe), but now im stuck.

1. registration of container:

- i creat a container which extends the vanilla AbstractFurnaceContainer

	public static final DeferredRegister<ContainerType<?>> CONTAINERS = DeferredRegister.create(ForgeRegistries.CONTAINERS, Cave.Mod_Id);
	
	
	public static final RegistryObject<ContainerType<?>> SMELTING_CONTAINER = CONTAINERS.register("smelting_container", 
			() -> IForgeContainerType.create(SmeltingContainer::new));

but i cant register the container/ why doesn't work that way

 

2. registration of recipe serializer

- how to register a custom AbstractCookingRecipe and how to create form that a IRecipeType which i need for the container

	public static final DeferredRegister<IRecipeSerializer<?>> RECIPE_SERIALIZERS = DeferredRegister.create(ForgeRegistries.RECIPE_SERIALIZERS, Cave.Mod_Id);
	
	
	public static final RegistryObject<IRecipeSerializer<?>> SMELTING_RECIPE = RECIPE_SERIALIZERS.register("smelting_recipe", null);

what i have to set at "null"

Link to comment
Share on other sites

17 minutes ago, diesieben07 said:

If you want it to use the normal furnace recipes, why are you making a custom serializer

i not want to use the normal recipes that already work but minecraft has the blast furnace which smelt ores and the smoker which "cook" food.

i want to creat a furnace which process / smelt the other recipes faster (like cobblestone to stone in 5 seconds instead of 10 seconds)

Edited by Luis_ST
Link to comment
Share on other sites

27 minutes ago, diesieben07 said:

So you want it to use the normal furnace recipes, not the smoker recipes for example - yes?

normal furnace - No.

I think you don't understand exactly what I want,

so simplified I want recipes for a custom furnace with the same gui like the vanilla furnace

 

Short: I want custom recipes that only work in my furnace

Edited by Luis_ST
Link to comment
Share on other sites

But back to my questions

3 hours ago, Luis_ST said:

1. registration of container:

- i creat a container which extends the vanilla AbstractFurnaceContainer

 

3 hours ago, Luis_ST said:

2. registration of recipe serializer

- how to register a custom AbstractCookingRecipe and how to create form that a IRecipeType which i need for the container

 

 

Edited by Luis_ST
Link to comment
Share on other sites

15 minutes ago, diesieben07 said:

You can register your own IRecipeType in the same way vanilla does (look at IRecipeType).

To use your custom recipe type, you need to also implement IRecipeSerializer and return recipes that use your custom IRecipeType.

Okay thanks, but the more important question is how to properly register the container and recipe because that's the reason why i ask?

	public static final DeferredRegister<ContainerType<?>> CONTAINERS = DeferredRegister.create(ForgeRegistries.CONTAINERS, Cave.Mod_Id);
	
	
	public static final RegistryObject<ContainerType<?>> SMELTING_CONTAINER = CONTAINERS.register("smelting_container", 
			() -> IForgeContainerType.create(null));

and

	public static final DeferredRegister<IRecipeSerializer<?>> RECIPE_SERIALIZERS = DeferredRegister.create(ForgeRegistries.RECIPE_SERIALIZERS, Cave.Mod_Id);
	
	
	public static final RegistryObject<IRecipeSerializer<?>> SMELTING_RECIPE = RECIPE_SERIALIZERS.register("smelting_recipe", null);

 

Link to comment
Share on other sites

15 hours ago, diesieben07 said:

What is your question?

 

18 hours ago, Luis_ST said:

1. registration of container:

- i creat a container which extends the vanilla AbstractFurnaceContainer

but i cant register the container/ why doesn't work that way

and

18 hours ago, Luis_ST said:

how to register a custom AbstractCookingRecipe

for more information just read my post at the beginning

 

 

 

 

 

Link to comment
Share on other sites

32 minutes ago, diesieben07 said:

Why can't you? What is your issue?

my IDE show this error: "The type SmeltingContainer does not define SmeltingContainer(int, PlayerInventory, PacketBuffer) that is applicable here"

this is my container class:

https://github.com/Luis-st/Forge-1.16.5-36.0.1-mdk/blob/main/forge-1.16.5-36.0.1-mdk/src/main/java/net/luis/cave/blocks/container/SmeltingContainer.java

 

38 minutes ago, diesieben07 said:

Recipes do not need to be registered. You register a recipe type and a recipe serializer.

i mean the recipe serializer

this is my registration class:

https://github.com/Luis-st/Forge-1.16.5-36.0.1-mdk/blob/main/forge-1.16.5-36.0.1-mdk/src/main/java/net/luis/cave/init/CaveRecipe.java

and my recipe serializer class:

https://github.com/Luis-st/Forge-1.16.5-36.0.1-mdk/blob/b55bad37a4e156a1cbc7979697809e027e3a4589/forge-1.16.5-36.0.1-mdk/src/main/java/net/luis/cave/blocks/recipes/SmeltingRecipe.java#L12

 

41 minutes ago, diesieben07 said:

Your recipe serializer...

like this:

public static final RegistryObject<IRecipeSerializer<?>> SMELTING_RECIPE = RECIPE_SERIALIZERS.register("smelting_recipe", SmeltingRecipe::new);

but i get the same error: "The type SmeltingRecipe does not define SmeltingRecipe() that is applicable here"

 

So what am I doing wrong / where is the mistake

Link to comment
Share on other sites

1 hour ago, diesieben07 said:

You need to provide a method reference or lambda with the correct signature (look at IForgeContainerType.create to find out what is needed).

I found. I had to add a Packetbuffer i don't know what i need it for but the container works.

 

1 hour ago, diesieben07 said:

You need to specify your serializer. Your recipe class constructor is not useful here.

but how to get the serializer

Link to comment
Share on other sites

23 minutes ago, diesieben07 said:

You make a class for it...

So do I have to create another class for the serializer even if I already have a recipe class?

https://github.com/Luis-st/Forge-1.16.5-36.0.1-mdk/blob/main/forge-1.16.5-36.0.1-mdk/src/main/java/net/luis/cave/blocks/recipes/SmeltingRecipe.java
and from which class extends the Serializer?

Edited by Luis_ST
Link to comment
Share on other sites

50 minutes ago, diesieben07 said:

Yes you need an IRecipeSerializer. Look at the vanilla examples.

have I to implement / extend IRecipeSerializer?

now i creat this

package net.luis.cave.init;

import net.luis.cave.blocks.recipes.SmeltingRecipe;
import net.minecraft.item.crafting.CookingRecipeSerializer;
import net.minecraft.item.crafting.IRecipeSerializer;

public class CaveRecipeSerializer {

	CookingRecipeSerializer<SmeltingRecipe> CAVE_SMELTING = IRecipeSerializer.register("cave_smelting", new CookingRecipeSerializer<>(SmeltingRecipe::new, 100));

}

 

but i got an error: "The type CookingRecipeSerializer.IFactory<SmeltingRecipe> from the descriptor computed for the target context is not visible here."

Link to comment
Share on other sites

16 hours ago, diesieben07 said:

You cannot use CookingRecipeSerialier, because it requires use of a private inner class (IFactory).

I found out that I need to create a serializer class in my recipe,

but I don't understand what to do in the class, is there a forge documentation

or can i copy the read and write methods from the CookingRecipeSerializer

when i return my SmeltingRecipe

 

Edited by Luis_ST
Link to comment
Share on other sites

1 minute ago, diesieben07 said:

You can take a look at vanilla for examples. Basically your serializer needs to take the JSON and return the correct recipe instance for it. It also needs to handle serializing to and from PacketBuffer to manage syncing to the client.

i currently creat this:

1. is this correct?

2. i have to set the cookingTime but it's a private field so can i create a own one or should i use ObfuscationReflectionHelper to get the field

	public static class Serializer extends ForgeRegistryEntry<IRecipeSerializer<?>> implements IRecipeSerializer<SmeltingRecipe> {

		@Override
		@SuppressWarnings("deprecation")
		public SmeltingRecipe read(ResourceLocation recipeId, JsonObject json) {

			String s = JSONUtils.getString(json, "group", "");
			JsonElement jsonelement = (JsonElement) (JSONUtils.isJsonArray(json, "ingredient")
					? JSONUtils.getJsonArray(json, "ingredient")
					: JSONUtils.getJsonObject(json, "ingredient"));
			Ingredient ingredient = Ingredient.deserialize(jsonelement);
			ItemStack itemstack;

			if (!json.has("result")) {

				throw new JsonSyntaxException("Missing result, expected to find a string or object");

			}

			if (json.get("result").isJsonObject()) {

				itemstack = ShapedRecipe.deserializeItem(JSONUtils.getJsonObject(json, "result"));

			} else {

				String s1 = JSONUtils.getString(json, "result");
				ResourceLocation resourcelocation = new ResourceLocation(s1);
				itemstack = new ItemStack(Registry.ITEM.getOptional(resourcelocation).orElseThrow(() -> {

					return new IllegalStateException("Item: " + s1 + " does not exist");

				}));

			}

			float f = JSONUtils.getFloat(json, "experience", 0.0F);
//			int i = JSONUtils.getInt(json, "cookingtime", cookingTime);
			return new SmeltingRecipe(recipeId, s, ingredient, itemstack, f, 0);

		}

		@Override
		public SmeltingRecipe read(ResourceLocation recipeId, PacketBuffer buffer) {

			String s = buffer.readString(32767);
			Ingredient ingredient = Ingredient.read(buffer);
			ItemStack itemstack = buffer.readItemStack();
			float f = buffer.readFloat();
			int i = buffer.readVarInt();
			return new SmeltingRecipe(recipeId, s, ingredient, itemstack, f, i);

		}

		@Override
		public void write(PacketBuffer buffer, SmeltingRecipe recipe) {

			buffer.writeString(recipe.group);
			recipe.ingredient.write(buffer);
			buffer.writeItemStack(recipe.result);
			buffer.writeFloat(recipe.experience);
			buffer.writeVarInt(recipe.cookTime);

		}

	}

 

Link to comment
Share on other sites

39 minutes ago, diesieben07 said:

AbstractCookingRecipe#cookTime is protected, however it's also final. But it's set via the constructor, just pass your desired cooking time into the constructor...

i just edit the recipe class / serializer class

now is this correct?

package net.luis.cave.blocks.recipes;

import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonSyntaxException;

import net.luis.cave.init.CaveRecipe;
import net.luis.cave.init.blocks.CaveBlocks;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.AbstractCookingRecipe;
import net.minecraft.item.crafting.IRecipeSerializer;
import net.minecraft.item.crafting.IRecipeType;
import net.minecraft.item.crafting.Ingredient;
import net.minecraft.item.crafting.ShapedRecipe;
import net.minecraft.network.PacketBuffer;
import net.minecraft.util.JSONUtils;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.registry.Registry;
import net.minecraftforge.registries.ForgeRegistryEntry;

public class SmeltingRecipe extends AbstractCookingRecipe {
	
	public static int time;

	@SuppressWarnings("static-access")
	public SmeltingRecipe(ResourceLocation idIn, String groupIn, Ingredient ingredientIn, ItemStack resultIn, float experienceIn, int cookTimeIn) {

		super(IRecipeType.register("cave_smelting"), idIn, groupIn, ingredientIn, resultIn, experienceIn, cookTimeIn);
		this.time = cookTimeIn;
	}

	@Override
	public ItemStack getIcon() {

		return new ItemStack(CaveBlocks.SMELTING_FURNACE.get());

	}

	@Override
	public IRecipeSerializer<?> getSerializer() {

		return CaveRecipe.SMELTING_RECIPE.get();

	}

	public static class Serializer extends ForgeRegistryEntry<IRecipeSerializer<?>> implements IRecipeSerializer<SmeltingRecipe> {

		@Override
		@SuppressWarnings("deprecation")
		public SmeltingRecipe read(ResourceLocation recipeId, JsonObject json) {

			String s = JSONUtils.getString(json, "group", "");
			JsonElement jsonelement = (JsonElement) (JSONUtils.isJsonArray(json, "ingredient")
					? JSONUtils.getJsonArray(json, "ingredient")
					: JSONUtils.getJsonObject(json, "ingredient"));
			Ingredient ingredient = Ingredient.deserialize(jsonelement);
			ItemStack itemstack;

			if (!json.has("result")) {

				throw new JsonSyntaxException("Missing result, expected to find a string or object");

			}

			if (json.get("result").isJsonObject()) {

				itemstack = ShapedRecipe.deserializeItem(JSONUtils.getJsonObject(json, "result"));

			} else {

				String s1 = JSONUtils.getString(json, "result");
				ResourceLocation resourcelocation = new ResourceLocation(s1);
				itemstack = new ItemStack(Registry.ITEM.getOptional(resourcelocation).orElseThrow(() -> {

					return new IllegalStateException("Item: " + s1 + " does not exist");

				}));

			}

			float f = JSONUtils.getFloat(json, "experience", 0.0F);
			int i = JSONUtils.getInt(json, "cookingtime", SmeltingRecipe.time);
			return new SmeltingRecipe(recipeId, s, ingredient, itemstack, f, i);

		}

		@Override
		public SmeltingRecipe read(ResourceLocation recipeId, PacketBuffer buffer) {

			String s = buffer.readString(32767);
			Ingredient ingredient = Ingredient.read(buffer);
			ItemStack itemstack = buffer.readItemStack();
			float f = buffer.readFloat();
			int i = buffer.readVarInt();
			return new SmeltingRecipe(recipeId, s, ingredient, itemstack, f, i);

		}

		@Override
		public void write(PacketBuffer buffer, SmeltingRecipe recipe) {

			buffer.writeString(recipe.group);
			recipe.ingredient.write(buffer);
			buffer.writeItemStack(recipe.result);
			buffer.writeFloat(recipe.experience);
			buffer.writeVarInt(recipe.cookTime);

		}

	}

}

 

Link to comment
Share on other sites

1 hour ago, diesieben07 said:

When opening the GUI in your Block.

so like this:

	@Override
	protected void interactWith(World worldIn, BlockPos pos, PlayerEntity player) {
		
		TileEntity tileentity = worldIn.getTileEntity(pos);
		
		if (player instanceof ServerPlayerEntity && tileentity instanceof SmeltingFurnaceTileEntity) {
			
			NetworkHooks.openGui((ServerPlayerEntity) player, (INamedContainerProvider) tileentity, pos);
			
		}
		
	}

 

Link to comment
Share on other sites

1 hour ago, diesieben07 said:

You never register your ContainerType, you get a giant error in the console from it, did you not read it?

I already registered it but forgot to add the registration to my mod constructor

I tested it again and it still doesn't work

and the consol show this:

[10:19:50] [Render thread/WARN] [minecraft/ScreenManager]: Failed to create screen for menu type: cave:smelting_container

 

I know where the error is coming from I still have to create a screen but where do I have to register / pass the container

Edited by Luis_ST
Link to comment
Share on other sites

49 minutes ago, diesieben07 said:

You need to register a screen factory for your container type using ScreenManager.registerFactory in FMLClientSetupEvent with enqueueWork.

		event.enqueueWork(() -> ScreenManager.registerFactory(CaveContainer.SMELTING_CONTAINER.get(), SmeltingScreen::new));

why does it not work that way (at SmeltingSreen::new)

my screen extends the vanilla Furnace screen and the constructor looks like the vanilla one:

package net.luis.cave.blocks.container;

import net.minecraft.client.gui.screen.inventory.AbstractFurnaceScreen;
import net.minecraft.entity.player.PlayerInventory;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.text.ITextComponent;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;

@OnlyIn(Dist.CLIENT)
public class SmeltingScreen extends AbstractFurnaceScreen<SmeltingContainer> {
	
	private static final ResourceLocation FURNACE_GUI_TEXTURES = new ResourceLocation("textures/gui/container/furnace.png");

	public SmeltingScreen(SmeltingContainer screenContainer, PlayerInventory inv, ITextComponent titleIn) {
		
		super(screenContainer, null, inv, titleIn, FURNACE_GUI_TEXTURES);
		
	}

}

 

this is the factory:

create(T p_create_1_, PlayerInventory p_create_2_, ITextComponent p_create_3_);

 

so i dont understand why my IDE show me an error

("The type SmeltingScreen does not define SmeltingScreen(M, PlayerInventory, ITextComponent) that is applicable here")

 

Edited by Luis_ST
Link to comment
Share on other sites

14 minutes ago, diesieben07 said:

The solution is to declare the type of CaveContainer.SMELTING_CONTAINER properly.

What do you mean by "declare correctly" should I replace my container (SmeltingContainer) with generally all Containers (Container class).

So what do i have to do. I understand the problem but don't know how to fix it

Link to comment
Share on other sites

2 hours ago, diesieben07 said:

Properly means don't use ?, use your container class.

okay thanks but now i got an error when i place the block.

beacuse i not init my Recipe Serializer so now my question is there a special way to register the serializer

or can I use DeferredRegister <IRecipeSerializer <?>>

 

 

Link to comment
Share on other sites

1 hour ago, diesieben07 said:

IRecipeSerializer extends IForgeRegistryEntry, that means you can use it with DeferredRegister. Everything that implements IForgeRegistryEntry is a normal registry entry and the registration process is the same.

i hope these are my last two questions on this topic.

So first of all a question about the custom IRecipeType do I have to register this?

And secondly how do I tell the recipe book to show my recipes?

Link to comment
Share on other sites

12 hours ago, diesieben07 said:

Same as vanilla does.

12 hours ago, diesieben07 said:

I don't know.

 

okay thanks unfortunately i still have two problems:
1. when I put items in the slots, close the gui and open it again, the items disappear
2. I added a custom recipe. I can transfer the item into the slot using shift, which means that the recipe works but the smelting process does not start

Link to comment
Share on other sites

1 hour ago, diesieben07 said:

Your SmeltingContainer always uses the AbstractFurnaceContainer that is designed for the client side and which will create a temporary inventory. You need to use the constructor that actually takes in the furnace inventory on the server.

is the correct one the other constructor from the AbstractFurnaceContainer class?

Edited by Luis_ST
Link to comment
Share on other sites

3 hours ago, diesieben07 said:

Yes, the one that takes an inventory.

okay i change the constructor but now i have a costructor with:

	public SmeltingContainer(int id, PlayerInventory playerInventory, IInventory inventory, IIntArray array) {
		
		super(ModContainer.SMELTING_CONTAINER.get(), ModRecipeType.SMELTING_RECIPE, RecipeBookCategory.FURNACE, id, playerInventory, inventory, array);
		
	}

 

but now i cant register my container type because my constructor contains worng things (IInventory and the IIntArray)

so what i have to set there/ did i get this things from the PacketBuffer which i need in the constructor

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hello. Where can I find how Vanilla jump boost effect works. I have been searching this class for a few hours but have not found it anywhere. I just want to use it functional in my mod.
    • SubscribeEvent is for our EventBus system, Not sure what you mean by EventHandler as that's not a Forge related class.
    • Hi, has anyone dealt with gradlew :runClient crashing on start before? I've currently made a forge 1.18.2 mod with the latest mdk and I use IntelliJ IDEA 2024.1 as my IDE, and now whenever I try to run the `:runClient` command with gradle, it works at first, but then the process stops reporting this issue: `Caused by: java.lang.reflect.InvocationTargetException` and `Caused by: java.lang.NoSuchMethodError: 'int net.minecraft.util.Mth.m_14045_(int, int, int)'`. I've pasted the full runClient gradle log in this message. I investigated this issue further on the forge forums to find that not much people had encountered it, and those who did encounter it somehow fixed it with fixes that does not work for me like deleting cache and let gradle redownload the cache or anything and that this issue is caused by a "Corrupted Cache", or whatever the heck that meant. I tried cloning my entire repo (https://github.com/Type-32/PreciseManufacturing) to another directory to "start fresh" but the same issue persists. I created a new project with a clean forge mod 1.18.2 template but the issue persists. I tried all the fixes I can find but none of them worked. even `.\gradlew --refresh-dependencies` didn't work. I am getting desparate for any help now ~~this is so freaking frustrating~~ This is my build.gradle file plugins { id 'eclipse' id 'idea' id 'net.minecraftforge.gradle' version '[6.0.16,6.2)' id 'org.parchmentmc.librarian.forgegradle' version '1.+' } group = mod_group_id version = mod_version base { archivesName = mod_id } java { toolchain.languageVersion = JavaLanguageVersion.of(17) } minecraft { mappings channel: mapping_channel, version: mapping_version copyIdeResources = true runs { // applies to all the run configs below configureEach { workingDirectory project.file('run') property 'forge.logging.markers', 'REGISTRIES' property 'forge.logging.console.level', 'debug' mods { "${mod_id}" { source sourceSets.main } } } client { // Comma-separated list of namespaces to load gametests from. Empty = all namespaces. property 'forge.enabledGameTestNamespaces', mod_id property 'mixin.env.remapRefMap', 'true' property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg" } server { property 'forge.enabledGameTestNamespaces', mod_id args '--nogui' } gameTestServer { property 'forge.enabledGameTestNamespaces', mod_id } data { // example of overriding the workingDirectory set in configureEach above workingDirectory project.file('run-data') // Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources. args '--mod', mod_id, '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/') } } } jarJar.enable() reobf { jarJar { } } tasks.jarJar.finalizedBy('reobfJarJar') // Include resources generated by data generators. sourceSets.main.resources { srcDir 'src/generated/resources' } repositories { maven { name = 'tterrag maven' url = 'https://maven.tterrag.com/' } mavenLocal() } dependencies { minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}" implementation fg.deobf("com.simibubi.create:create-${create_minecraft_version}:${create_version}:slim") { transitive = false } implementation fg.deobf("com.jozufozu.flywheel:flywheel-forge-${flywheel_minecraft_version}:${flywheel_version}") implementation fg.deobf("com.tterrag.registrate:Registrate:${registrate_version}") // [MC<minecraft_version>,MC<next_minecraft_version>) jarJar(group: 'com.tterrag.registrate', name: 'Registrate', version: "[MC1.18.2,MC1.19)") // Example mod dependency with JEI - using fg.deobf() ensures the dependency is remapped to your development mappings // The JEI API is declared for compile time use, while the full JEI artifact is used at runtime // compileOnly fg.deobf("mezz.jei:jei-${mc_version}-common-api:${jei_version}") // compileOnly fg.deobf("mezz.jei:jei-${mc_version}-forge-api:${jei_version}") // runtimeOnly fg.deobf("mezz.jei:jei-${mc_version}-forge:${jei_version}") // Example mod dependency using a mod jar from ./libs with a flat dir repository // This maps to ./libs/coolmod-${mc_version}-${coolmod_version}.jar // The group id is ignored when searching -- in this case, it is "blank" // implementation fg.deobf("blank:coolmod-${mc_version}:${coolmod_version}") } tasks.named('processResources', ProcessResources).configure { var replaceProperties = [ minecraft_version: minecraft_version, minecraft_version_range: minecraft_version_range, forge_version: forge_version, forge_version_range: forge_version_range, loader_version_range: loader_version_range, mod_id: mod_id, mod_name: mod_name, mod_license: mod_license, mod_version: mod_version, mod_authors: mod_authors, mod_description: mod_description, ] inputs.properties replaceProperties filesMatching(['META-INF/mods.toml', 'pack.mcmeta']) { expand replaceProperties + [project: project] }} // Example for how to get properties into the manifest for reading at runtime. tasks.named('jar', Jar).configure { manifest { attributes([ "Specification-Title": mod_id, "Specification-Vendor": mod_authors, "Specification-Version": "1", // We are version 1 of ourselves "Implementation-Title": project.name, "Implementation-Version": project.jar.archiveVersion, "Implementation-Vendor": mod_authors, "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ") ]) } // This is the preferred method to reobfuscate your jar file finalizedBy 'reobfJar' } tasks.withType(JavaCompile).configureEach { options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation }  
    • pastebin.com and paste.ee couldn't handle the debug and crash log sizes, apologies I have to send it on mega, and I hope it's not a problem Basically, Minecraft turns on normally but when I try to create a world, it goes to 100%, joining world, saving world and crashes   debug log https://mega.nz/file/kP1nGDKZ decryption key: C_VSH-IO6Kpi9IdqUs2Z0KDu0Fpujmen_I3rI1yUyVw crash log https://mega.nz/file/RXVEhRpZ 0r05xiqoGmL8rQEXjYaf8Q8BO-XbJGzpeBDek3aqb0w
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.