Eureka! Ships! for Valkyrien Skies (Forge/Fabric)

Eureka! Ships! for Valkyrien Skies (Forge/Fabric)

2M Downloads

carryon compatibilty

Rubydesic opened this issue ยท 2 comments

commented

carryon disable pickup ship helm

commented

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.

  1. Import net.minecraftforge.fml.InterModComms and net.minecraftforge.fml.event.lifecycle.InterModEnqueueEvent.
  2. In EurekaModForge() add MOD_BUS.addListener(this::enqueueIMC);
  3. 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.

commented

I believe carryOn checks forge:immovable tag or similar