Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

How to make a crafting-recipe WITH Item, you won't loose


elterPro
 Share

Recommended Posts

Hey Guys,

first I want to say sorry, because my english maybe can be bad, it's school english...

So my question is, how can I define a crafting recipe, with some factors, wich won't be away after crafting and stay at there slot?

Maybe someone knows Equivalent Exchange, there are many crafting-recipes with the philosophers stone and the stone stays in the slot, even if I've crafted something...So I don't consume it...

My Code:

Relevant parts of the mod_***

//...
public static Block vaporizer;
public static BlockFlower aloeVera;
public static Item aloeVeraAloin;
//...
vaporizer = (new BlockVaporizer(539, 0)) .setBlockName("vaporizer");
	LanguageRegistry.addName(vaporizer, "Vaporizer");
	GameRegistry.registerBlock(vaporizer);
aloeVera = (BlockFlower) new BlockAloeVera(540,0).setBlockName("aloeVera");
	LanguageRegistry.addName(aloeVera, "Aloe Vera");
	GameRegistry.registerBlock(aloeVera);

aloeVeraAloin = (new ItemFoodAloeVeraAloin(904)).setIconIndex(4).setItemName("aloeVeraAloin");
	LanguageRegistry.addName(aloeVeraAloin, "Aloin");
	GameRegistry.addRecipe(new ItemStack(aloeVeraAloin,1), new Object[]{"A", "V", 'A', mod_eltersmiasmata.aloeVera, 'V', mod_eltersmiasmata.vaporizer});
//...

Ok I want, that you can craft aloeVeraAloin with AloeVera and a vaporizer, the AloeVeraPlant is consumed after crafting but the vaporizer is still there...

 

Hope you can help me!

Greetings!

Link to comment
Share on other sites

Its a container Item

 

look in the Item.java an search for the item bucketLava

 

there is setContainerItem(item) and there comes the item

 

public static Item test = new Item(111).setContainerItem(test).setItemName("test");

 

and now when you craft an item with this item look here:

 

ModLoader.addRecipe(new ItemStack(Item.diamond, 1), new Object[]{"XY", 'X', Item.test, 'Y', Block.dirt});

 

with this recipe the Dirt will consumed but the test item will be still there. I hope it help.

Link to comment
Share on other sites

I have a note on this.... ok here it is,

 

Now I haven't tested it myself but I found it here a while back.

 

You need a Crafting Handler class, and you need to register it in your main mod class with:

 

GameRegistry.registerCraftingHandler(new Your Crafting Handler());

 

 

And then inside the crafting handler, which implements ICraftingHandler, your onCrafting method should look a little something like this.

public void onCrafting(EntityPlayer player, ItemStack item, IInventory inv) 
{
    for(int i=0; i < inv.getSizeInventory(); i++)
    {
        if(inv.getStackInSlot(i) != null)
        {
            ItemStack j = inv.getStackInSlot(i);
            if(j.getItem() != null && j.getItem() == Your Item)
            {
                ItemStack k = new ItemStack(Your Item, 2, (j.getItemDamage() + 1));
                inv.setInventorySlotContents(i, k);
            }
        }
    }
}

 

Basically what this does, is run a check every time something is crafted. It looks in every slot and if it finds Your Item, it replaces that stack with a new stack of 2 of your item, one of which is used up in the crafting. It also adds one damage to the item.

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.

Guest
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.

 Share



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • I never said it was empty, i said it crashes if there is any mod in the folder
    • So your mods folder is not actually empty. You put a fabric mod there, which Forge will not load.
    • There is latest.log tho   [25Oct2021 16:59:59.025] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, MarioBros__, --version, 1.16.5-forge-36.2.8, --gameDir, C:\Users\Jonny\AppData\Roaming\.minecraft, --assetsDir, C:\Users\Jonny\AppData\Roaming\.minecraft\assets, --assetIndex, 1.16, --uuid, 3fdef5666031477981d4e1e6076684ff, --accessToken, ????????, --userType, msa, --versionType, release, --launchTarget, fmlclient, --fml.forgeVersion, 36.2.8, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20210115.111550] [25Oct2021 16:59:59.029] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 8.0.9+86+master.3cf110c starting: java version 1.8.0_51 by Oracle Corporation [25Oct2021 16:59:59.046] [main/WARN] [cpw.mods.modlauncher.SecureJarHandler/]: LEGACY JDK DETECTED, SECURED JAR HANDLING DISABLED [25Oct2021 16:59:59.323] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust [25Oct2021 16:59:59.362] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.4 Source=file:/C:/Users/Jonny/AppData/Roaming/.minecraft/libraries/org/spongepowered/mixin/0.8.4/mixin-0.8.4.jar Service=ModLauncher Env=CLIENT [25Oct2021 17:00:00.221] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file Mod File: C:\Users\Jonny\AppData\Roaming\.minecraft\mods\immersive-portals-0.101-mc1.16.5-fabric.jar is missing mods.toml file [25Oct2021 17:00:00.222] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: File C:\Users\Jonny\AppData\Roaming\.minecraft\mods\immersive-portals-0.101-mc1.16.5-fabric.jar has been ignored - it is invalid [25Oct2021 17:00:00.837] [main/INFO] [STDERR/]: [org.antlr.v4.runtime.ConsoleErrorListener:syntaxError:38]: line 1:0 token recognition error at: '~' [25Oct2021 17:00:01.473] [main/INFO] [mixin/]: Successfully loaded Mixin Connector [com.qouteall.hiding_in_the_bushes.MyMixinConnector] [25Oct2021 17:00:01.488] [main/INFO] [Portal/]: Invoking Mixin Connector [25Oct2021 17:00:01.494] [main/ERROR] [mixin/]: Mixin config imm_ptl_mixins.json does not specify "minVersion" property [25Oct2021 17:00:01.496] [main/ERROR] [mixin/]: Mixin config imm_ptl_mixins_forge.json does not specify "minVersion" property [25Oct2021 17:00:01.497] [main/ERROR] [mixin/]: Mixin config imm_ptl_peripheral_mixins.json does not specify "minVersion" property [25Oct2021 17:00:01.500] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmlclient' with arguments [--version, 1.16.5-forge-36.2.8, --gameDir, C:\Users\Jonny\AppData\Roaming\.minecraft, --assetsDir, C:\Users\Jonny\AppData\Roaming\.minecraft\assets, --uuid, 3fdef5666031477981d4e1e6076684ff, --username, MarioBros__, --assetIndex, 1.16, --accessToken, ????????, --userType, msa, --versionType, release] [25Oct2021 17:00:01.510] [main/WARN] [mixin/]: Reference map 'createdeco.refmap.json' for createdeco.mixins.json could not be read. If this is a development environment you can ignore this message [25Oct2021 17:00:01.512] [main/WARN] [mixin/]: Reference map 'hackforge.refmap.json' for creategears.mixins.json could not be read. If this is a development environment you can ignore this message [25Oct2021 17:00:03.098] [pool-3-thread-1/FATAL] [mixin/]: Mixin apply failed imm_ptl_peripheral_mixins.json:common.altius_world.MixinChunkStatus -> net.minecraft.world.chunk.ChunkStatus: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException 'static' modifier of handler method does not match target in net/minecraft/world/chunk/ChunkStatus::redirectBuildSurface [PREINJECT Applicator Phase -> imm_ptl_peripheral_mixins.json:common.altius_world.MixinChunkStatus -> Prepare Injections -> -> handler$zia000$redirectBuildSurface(Lnet/minecraft/world/server/ServerWorld;Lnet/minecraft/world/gen/ChunkGenerator;Ljava/util/List;Lnet/minecraft/world/chunk/IChunk;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V -> Prepare] org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: 'static' modifier of handler method does not match target in net/minecraft/world/chunk/ChunkStatus::redirectBuildSurface [PREINJECT Applicator Phase -> imm_ptl_peripheral_mixins.json:common.altius_world.MixinChunkStatus -> Prepare Injections -> -> handler$zia000$redirectBuildSurface(Lnet/minecraft/world/server/ServerWorld;Lnet/minecraft/world/gen/ChunkGenerator;Ljava/util/List;Lnet/minecraft/world/chunk/IChunk;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V -> Prepare] at org.spongepowered.asm.mixin.injection.code.Injector.checkTargetModifiers(Injector.java:347) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.injection.callback.CallbackInjector.sanityCheck(CallbackInjector.java:387) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.injection.code.Injector.find(Injector.java:237) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.prepare(InjectionInfo.java:421) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.transformer.MixinTargetContext.prepareInjections(MixinTargetContext.java:1319) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.prepareInjections(MixinApplicatorStandard.java:1042) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyMixin(MixinApplicatorStandard.java:393) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:325) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:383) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:365) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:363) [mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:250) [mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.service.modlauncher.MixinTransformationHandler.processClass(MixinTransformationHandler.java:131) [mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.launch.MixinLaunchPluginLegacy.processClass(MixinLaunchPluginLegacy.java:131) [mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at cpw.mods.modlauncher.serviceapi.ILaunchPluginService.processClassWithFlags(ILaunchPluginService.java:154) [modlauncher-8.0.9.jar:8.0.9+86+master.3cf110c] at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:85) [modlauncher-8.0.9.jar:?] at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) [modlauncher-8.0.9.jar:?] at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:265) [modlauncher-8.0.9.jar:?] at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:136) [modlauncher-8.0.9.jar:?] at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:98) [modlauncher-8.0.9.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [?:1.8.0_51] at net.minecraftforge.registries.GameData.init(GameData.java:177) [?:?] at net.minecraftforge.registries.GameData.<clinit>(GameData.java:132) [?:?] at net.minecraft.util.registry.Registry.forge(Registry.java:347) [?:?] at net.minecraft.util.registry.Registry.forge(Registry.java:331) [?:?] at net.minecraft.util.registry.Registry.<clinit>(Registry.java:140) [?:?] at net.minecraft.util.registry.Bootstrap.func_151354_b(Bootstrap.java:38) [?:?] at net.minecraft.client.main.Main.lambda$main$0(Main.java:123) [?:?] at net.minecraft.client.main.Main$$Lambda$596/639542871.run(Unknown Source) [?:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_51] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_51] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_51] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51] [25Oct2021 17:00:03.119] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException [25Oct2021 17:00:03.120] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:39) [25Oct2021 17:00:03.120] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [25Oct2021 17:00:03.120] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [25Oct2021 17:00:03.120] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [25Oct2021 17:00:03.120] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [25Oct2021 17:00:03.120] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: Caused by: java.lang.reflect.InvocationTargetException [25Oct2021 17:00:03.121] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [25Oct2021 17:00:03.121] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [25Oct2021 17:00:03.121] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [25Oct2021 17:00:03.121] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at java.lang.reflect.Method.invoke(Method.java:497) [25Oct2021 17:00:03.121] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51) [25Oct2021 17:00:03.121] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$493/1232703108.call(Unknown Source) [25Oct2021 17:00:03.121] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [25Oct2021 17:00:03.121] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: ... 4 more [25Oct2021 17:00:03.122] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]: Caused by: java.lang.RuntimeException: org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered [25Oct2021 17:00:03.122] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]: at net.minecraftforge.fml.loading.BackgroundWaiter.runAndTick(BackgroundWaiter.java:43) [25Oct2021 17:00:03.122] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]: at net.minecraft.client.main.Main.main(Main.java:123) [25Oct2021 17:00:03.122] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]: ... 11 more [25Oct2021 17:00:03.122] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: Caused by: org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered [25Oct2021 17:00:03.123] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:392) [25Oct2021 17:00:03.123] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:250) [25Oct2021 17:00:03.123] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at org.spongepowered.asm.service.modlauncher.MixinTransformationHandler.processClass(MixinTransformationHandler.java:131) [25Oct2021 17:00:03.123] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at org.spongepowered.asm.launch.MixinLaunchPluginLegacy.processClass(MixinLaunchPluginLegacy.java:131) [25Oct2021 17:00:03.123] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at cpw.mods.modlauncher.serviceapi.ILaunchPluginService.processClassWithFlags(ILaunchPluginService.java:154) [25Oct2021 17:00:03.123] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:85) [25Oct2021 17:00:03.123] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) [25Oct2021 17:00:03.123] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:265) [25Oct2021 17:00:03.124] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:136) [25Oct2021 17:00:03.124] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:98) [25Oct2021 17:00:03.124] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [25Oct2021 17:00:03.124] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at net.minecraftforge.registries.GameData.init(GameData.java:177) [25Oct2021 17:00:03.124] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at net.minecraftforge.registries.GameData.<clinit>(GameData.java:132) [25Oct2021 17:00:03.124] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at net.minecraft.util.registry.Registry.forge(Registry.java:347) [25Oct2021 17:00:03.124] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at net.minecraft.util.registry.Registry.forge(Registry.java:331) [25Oct2021 17:00:03.124] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at net.minecraft.util.registry.Registry.<clinit>(Registry.java:140) [25Oct2021 17:00:03.124] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at net.minecraft.util.registry.Bootstrap.func_151354_b(Bootstrap.java:38) [25Oct2021 17:00:03.125] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at net.minecraft.client.main.Main.lambda$main$0(Main.java:123) [25Oct2021 17:00:03.125] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at net.minecraft.client.main.Main$$Lambda$596/639542871.run(Unknown Source) [25Oct2021 17:00:03.125] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [25Oct2021 17:00:03.125] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at java.util.concurrent.FutureTask.run(FutureTask.java:266) [25Oct2021 17:00:03.125] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [25Oct2021 17:00:03.125] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [25Oct2021 17:00:03.125] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at java.lang.Thread.run(Thread.java:745) [25Oct2021 17:00:03.125] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: Caused by: org.spongepowered.asm.mixin.throwables.MixinApplyError: Mixin [imm_ptl_peripheral_mixins.json:common.altius_world.MixinChunkStatus] from phase [DEFAULT] in config [imm_ptl_peripheral_mixins.json] FAILED during APPLY [25Oct2021 17:00:03.126] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.transformer.MixinProcessor.handleMixinError(MixinProcessor.java:636) [25Oct2021 17:00:03.126] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.transformer.MixinProcessor.handleMixinApplyError(MixinProcessor.java:588) [25Oct2021 17:00:03.126] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:379) [25Oct2021 17:00:03.126] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: ... 23 more [25Oct2021 17:00:03.126] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: Caused by: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: 'static' modifier of handler method does not match target in net/minecraft/world/chunk/ChunkStatus::redirectBuildSurface [PREINJECT Applicator Phase -> imm_ptl_peripheral_mixins.json:common.altius_world.MixinChunkStatus -> Prepare Injections -> -> handler$zia000$redirectBuildSurface(Lnet/minecraft/world/server/ServerWorld;Lnet/minecraft/world/gen/ChunkGenerator;Ljava/util/List;Lnet/minecraft/world/chunk/IChunk;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V -> Prepare] [25Oct2021 17:00:03.126] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.injection.code.Injector.checkTargetModifiers(Injector.java:347) [25Oct2021 17:00:03.126] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.injection.callback.CallbackInjector.sanityCheck(CallbackInjector.java:387) [25Oct2021 17:00:03.127] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.injection.code.Injector.find(Injector.java:237) [25Oct2021 17:00:03.127] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.prepare(InjectionInfo.java:421) [25Oct2021 17:00:03.127] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.transformer.MixinTargetContext.prepareInjections(MixinTargetContext.java:1319) [25Oct2021 17:00:03.127] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.prepareInjections(MixinApplicatorStandard.java:1042) [25Oct2021 17:00:03.127] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyMixin(MixinApplicatorStandard.java:393) [25Oct2021 17:00:03.127] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:325) [25Oct2021 17:00:03.127] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:383) [25Oct2021 17:00:03.127] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:365) [25Oct2021 17:00:03.127] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:363) [25Oct2021 17:00:03.128] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: ... 23 more  
    • There is always a log. Post the debug.log from the logs folder.
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.