
No compatibility with Agricraft.
Enderdraak opened this issue ยท 3 comments
Describe the Bug
When starting a 1.18.2 world with both Agricraft and create the game does not start.
Reproduction Steps
- Install forge (1.18.2)
- Install create
- Install Agricraft
- Start your minecraft
- Witness crash
...
Expected Result
I expect an crash report to appear that mentions this:
Details:
Mod File: /home/drew/ATM7/mods/agricraft-1.18.2-3.1.4.jar
Failure message: AgriCraft (agricraft) encountered an error during the common_setup event phase
java.lang.NoSuchFieldError: MECHANICAL_HARVESTER
Mod Version: 1.18.2-3.1.4
Mod Issue URL: https://github.com/AgriCraft/AgriCraft/issues/
Exception message: java.lang.NoSuchFieldError: MECHANICAL_HARVESTER
Screenshots and Videos
No response
Crash Report or Log
No response
Operating System
Windows 11
Mod Version
0.5.0g
Minecraft Version
1.18.2
Forge Version
40.1.92
Other Mods
Additional Context
ATM I am Diving myself into this.
Agricraft has added support for create and this is the result:
Source of this code.
package com.infinityraider.agricraft.plugins.create;
import com.simibubi.create.AllBlocks;
import com.simibubi.create.AllMovementBehaviours;
public class CreateCompat {
/*
* Create does not really provide a way to implement compatibility for more complex crops.
* Therefore, in order to obtain compatibility, we must employ a rather aggressive approach,
* which consists of overriding their default harvesting behaviour with our own.
* This can be toggled in the config, so if people do not like this, they can disable it.
* Until Create exposes harvesting logic in an API or via IMC, we must do it this way, unfortunately.
*/
static void injectAgriHarvesterMovementBehaviour() {
AllMovementBehaviours.registerBehaviour(AllBlocks.MECHANICAL_HARVESTER.get().delegate, new AgriHarvesterMovementBehaviour());
}
}
How ever, this no longer works. I am trying myself to make a fix for this but I have not even a clue where to start. And unfortunately Agricraft does not seem to get the best maintenance.
This is a copy of the old issue of #3316 but with way more recent versions.
I would love for these two mods to work together.
Possible workaround to have them coexist:
- Start server with Agricraft and w/o Create
- Stop it and turn off Create compatibility in the "config-common.toml" file from Agricraft
- Add Create as you wish
TL:DR: turn off create compat in Agricraft