Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/24/20 in all areas

  1. Hey. I want to write a mod for all versions of the game. I am designing a modular system using gradle and would like to keep all versions of the game in one project at once. I noticed that many forge versions support different versions of Gradle Wrapper, and some versions depend on certain ones (example 1.7.10 depends on Gradle Wrapper versions earlier than 4.0). Can I implement what I have in mind or is it impossible in principle? p.s. version support is required from 1.7.10 to current p.p.s. I managed to fit two versions in one project: 1.7.10 and 1.12.2. I dare to assume that I can also place the versions between these in my project. But versions higher than 1.12.2 simply refuse to work on gradle4.0
    1 point
  2. For reference, you no longer need to access the stripping map. There is a method IForgeBlock#getToolModifiedState that allows you to define what happens on a certain tool right click.
    1 point
  3. Try removing the AT altogether and redoing those 4 steps. If it works, you probably tried to AT a field/method/constructor that causes issues. Do note the only ones you can AT safely are private, static, and final values.
    1 point
  4. Was a noob mistake. The coordinates used by GLFW for cursor positioning are display pixels, whereas mc renders to a multiple. What worked was: double s = mc.getMainWindow().getGuiScaleFactor(); mc.currentScreen.mouseClicked(x/s, y/s, 0); // 0 is code for left button MinecraftForge.EVENT_BUS.post(new GuiScreenEvent.MouseClickedEvent.Pre(mc.currentScreen, x/s, y/s, 0)); // share event with any mouse handlers (optional) Hope this helps anyone doing something similar
    1 point
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.