Mystical Agriculture

Mystical Agriculture

86M Downloads

Cucumber does not load during mod development with Forge Mdk

zaciam opened this issue ยท 2 comments

commented

Describe the bug
I want to develop a new Minecraft mod that depends on the Cucumber mod. However, when I add the mods to my dependencies, Minecraft crashes.

To Reproduce
Steps to reproduce the behavior:

  1. Download and extract Forge Mdk.
  2. Add https://maven.blakesmods.com as a Maven repository.
  3. Add the dependencies:
    implementation fg.deobf("com.blakebr0.cucumber:Cucumber:${minecraft_version}-7.0.6")
    implementation fg.deobf("com.blakebr0.mysticalagriculture:MysticalAgriculture:${minecraft_version}-7.0.7")
    
  4. Run the Minecraft client by executing the runClient Gradle command.

Expected behavior
The game should start without errors.

Screenshots / Scripts / Logs
image
crash-2024-02-19_18.31.01-fml.txt

Versions (please complete the following information):

  • Minecraft: 1.20.1
  • Forge: 47.2.0
  • Cucumber: 7.0.6
  • Mystical Agriculture: 7.0.7
  • Singleplayer or Multiplayer: Singleplayer
commented

You have to add the following to your gradle plugins block if you want to use runClient from the command line:

    id 'org.spongepowered.mixin' version '0.7.+'

The recommended approach is to use the IDE run configs which can be generated with ex. genIntellijRuns which work without needing that plugin installed. Though the Mixin plugin may still be needed when depending on Cucumber as a local project.

commented

Thank you very much!