Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Luis_ST

Members
  • Joined

  • Last visited

Everything posted by Luis_ST

  1. You have to create a new DamageSource
  2. You have to move the method call #registerExtensionPoint into a separate class, because the Function within the Supplier accepts a Screen object, whereby you load the Screen class, which then causes the error. ModLoadingContext.get().registerExtensionPoint(ExtensionPoint.CONFIGGUIFACTORY, () -> (mc, screen) -> new ModConfig());
  3. First of all i do not recommend you to include you mod as a jar file, it's recommend to publish it to a local maven repository which you then include in your other projects. Secondly, I don't recommend you use native code with Minecraft. I have already tried this but have found that this can lead to terrible errors. I have tested the whole thing myself in my IDE and it works for me in IntelliJ: repositories { // ... flatDir { dirs("libs") // jar file must be in "<project_root>/libs" } // ... } dependencies { // ... implementation fg.deobf("blank:MC-AStar:1.20:1.0") // File pattern must be <name>-<mc_version>-<dependency_version> // ... }
  4. You can not send a callback using the vanilla packet system you have to send a new one as replay.
  5. You can get the Block using Level#getBlockState and then BlockState#getBlock to get the raw block.
  6. Try to add the OptionsRowList with Screen#addRenderableWidget in the init method.
  7. When using vanille you have to lerp the model part using partialTicks and two calculated values. In GeckoLib I don't know. You have to use a dynamic model based on some properties like from a player capability
  8. The only thing I noticed when debugging is that you use System.out for logging. I would recommend you to use the logger from the mdk because you get information like time, thread or the file directly to the output.
  9. Just the file name, you already told gradle where to find the .jar file:
  10. Please also include the imports.
  11. Please post the full class
  12. If it's a file, you have to use: dependencies { implementation files("<file_name>") }
  13. Where is the dependency source of "blank:mc-astar:1.1" is it on cursemaven, a file, or ...?
  14. Create next time your own thread. Try without OptiFine
  15. Sorry, I completely forgot about it. First of all, there is a problem in your recipes. You load a property "result" from your recipes in the Serialiser, but in the recipe you specify "ouput". (Read your logs!) Secondly, you have two ItemStackHandlers in your BlockEntity, you should use the one from the Capability. Remove the ItemStackHandler named 'itemHandler' and the problem should be fixed. It worked for me.
  16. You must use implementation for mods or files to include a mods as dependecy. See: https://docs.gradle.org/current/userguide/declaring_dependencies.html
  17. Your json model does not exsits your will not be found. Is it placed in the correct directory?
  18. Biomes are data based, so you have to add the biome via json. You can take a look at the vanilla Biomes in the client-extra.jar of you dependencies. If you want you can use a helper mod like TerraBlender,
  19. Please post the full ClientEvents class

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.