Architectury API (Fabric/Forge/NeoForge)

Architectury API (Fabric/Forge/NeoForge)

170M Downloads

Can't run minecraft forge from IDE

fgsoftware1 opened this issue ยท 0 comments

commented

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