architectury-api icon indicating copy to clipboard operation
architectury-api copied to clipboard

Can't run minecraft forge from IDE

Open fgsoftware1 opened this issue 5 months ago • 0 comments

When i try to run forge version of my mod from IDE it reach game main menu and crash with the following error:

Caused by: java.lang.NoSuchMethodError: 'com.mojang.math.Transformation com.mojang.math.Transformation.func_227987_b_()'

fabric version works fine

Info OS: Kali Linux MC version: 1.16.5 APIs versions: latest for the minecraft version, generated by:Architectury generator

Code

public class ItemRegistry {
    public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(MOD_ID, Registry.ITEM_REGISTRY);

    public static final RegistrySupplier<Item> TEST_ITEM = ITEMS.register("test_item", () -> new Item(new Item.Properties()));

    public static void init() {
        ITEMS.register();
    }
}

Extra Info

  • ItemRegistry is called on both main forge and main client.
  • fabric registered this item without any problems
  • if i run forge mod on an external launcher it works fine

fgsoftware1 avatar Aug 31 '24 08:08 fgsoftware1