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.

Leaderboard

Popular Content

Showing content with the highest reputation on 07/03/17 in all areas

  1. As eclipse suggests you are 1. Calling your registerRender with wrong arguments(you do not need to call it to begin with) 2. Referencing a non-existing item field/local. You register models for your items in the ModelRegistryEvent using the ModelLoader's setCustomResourceLocation method. That is all you need to do. If you are struggling with understanding methods and fields I suggest you to learn basics of java before starting minecraft modding.
  2. You are supposed to use the ModelRegistryEvent as a single parameter to the method and annotate it with SubscribeEvent, like you are doing with the registry events.
  3. That's because you don't need getChunkFromBlockCoords at all. All you need to do is take the spawn coordinates (in block form) and do >>4 on them to get the chunk coordinates. You don't need the chunk, all you want to know is if the current chunk has the same coordinates as the spawn chunk.
  4. You can simply use your IDE to navigate to any vanilla class (IDEA: Navigate -> Class, Eclipse: Navigate -> Open Type) and type in the name of the class you wish to go to. You can drop your own property and the enum and simply let BlockRotatedPillar do everything for you then.
  5. If you don't want the random part, just delete it (everything after the && and the && itself). As you seem to be struggling with pretty basic stuff (contitions) I would STRONGLY suggest that you go and learn a bit more java and then come back.
  6. I've been out of it for a while but it appears that Forge has had some internal changes that breaks compatibility with older versions. I believe it happened with Forge 14.21.1, which is the version you seem to be running. In the case of Bibliocraft you're using 2.4.1 which was built using an older version of Forge so you need to update Bibliocraft to 2.4.2 (or newer if you're reading this from the future). This would then be true for all mods, if you use Forge 14.21.1 or newer you need to make sure that the mods are also updated to this Forge version or they will crash the game.
  7. && means "and". this.rand is a random number generator, which all Entities have. nextInt(int X) is a method of Java's random number generators that generates a random integer from 0 to X-1. != means "not equal to". So this uses the entity's random number generator to pick a random integer from 0 to 5 and check that it's not 0. Which means it creates a 5/6 chance of the condition being true, and a 1/6 chance of it being false. In other words, in this case, 5/6 of the dragons in the hills will be Ruby type, while 1/6 will not.
  8. Don't use Access Transformers, use Reflection instead. ReflectionHelper will do a lot of the gruntwork for you, you just have to make sure to supply both the MCP name (the one you can see) and the SRG name (which can be done by looking it up via MCPbot).
  9. Classic XY Problem. You had a problem X and you thought you could maybe solve it by doing Y, but you encountered another problem you couldn't solve, so you asked how to solve Y when what you really needed was to solve X.

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.