carryon compatibilty
Rubydesic opened this issue ยท 2 comments
Should be as simple as doing the following in EurekaModForge
.
But did not work for me. Forge has a useful example where they show how to use InterModComms
but it looks to me like carryon does not catch the messages even tho they say it should work like this here. Looks like they handle the event in ModBusEvents.java.
- Import
net.minecraftforge.fml.InterModComms
andnet.minecraftforge.fml.event.lifecycle.InterModEnqueueEvent
. - In
EurekaModForge()
addMOD_BUS.addListener(this::enqueueIMC);
- Add the following method:
private void enqueueIMC(final InterModEnqueueEvent event)
{
// Carry on mod support
var exclusions = new String[] {
"vs_eureka:oak_ship_helm",
"vs_eureka:spruce_ship_helm",
"vs_eureka:birch_ship_helm",
"vs_eureka:jungle_ship_helm",
"vs_eureka:acacia_ship_helm",
"vs_eureka:dark_oak_ship_helm",
"vs_eureka:crimson_ship_helm",
"vs_eureka:warped_ship_helm"
};
for (String item: exclusions) {
InterModComms.sendTo("carryon", "blacklistBlock", () -> item);
}
}
Edit:
looks like this would work on 1.17. but no longer works because carry on is using the wrong event.
Their fabric version is new and only supports 1.19+
Found a way to add Forge MC 1.19 support (#217) by calling the IMC.sendMessage in init.