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.

shadowfacts

Forge Modder
  • Joined

  • Last visited

Everything posted by shadowfacts

  1. Replace 32 with (new Random()).nextInt(maxEntities)
  2. https://github.com/diesieben07/SevenCommons/blob/master/build.gradle#L49-L52
  3. The version of Minecraft that you play is obfuscated. This means that instead of things like methods and fields having normal names, they have obfuscated names like: field_149806_a. MPC then deobfuscates the code turning the super cryptic code into nice, human-readable code using mappings. Forge then applies those mappings in the dev environment so you don't have to look at ugly code. Then when you use gradlew build to build your mod ForgeGradle reobfuscates any deobfuscated methods that you used in your mod and packages it up into a JAR file. So if you have a mod that uses an obfuscated field, like field_149806_a, and you try to access it in a deobfuscated environment, it won't exist. You need a deobfuscated version of a mod to run in a deobfuscated environment.
  4. On the page where you download the mod instead of downloading the normal version you need to download the one labeled either "dev" or "deobf". e.g. for any of Chicken Bones' mods you would go here and you would click on the "dev" link to download a version of the mod that would work in a development environment.
  5. Basic Java, if you don't know it then you shouldn't be here. for (int i = 0; i < 32; i++) { // Spawn entity }
  6. Try with a brand new completely empty workspace.
  7. Try remove the --refresh-dependencies option.
  8. You need to use the "dev" or "deobf" version of the mod for it to work in a deobfuscated environment like the development env.
  9. Try running setupDecompWorkspace again, there was a problem with the Forge Maven that just recently got fixed.
  10. One (or more) of the required dependencies for one (or more) of the mods you have installed is missing. Go to the topic/website for each mod and check if it has any dependencies and then check if they are installed.
  11. Draco, they should totally add the <nitpick> tag to HTML5.
  12. If you're using @SideOnly for any methods fields dealing with IIcon or anything related to textures/rendering then @SideOnly is good. Any of this sort of method will never get called on the server, so using @SideOnly will not cause any problems.
  13. On a code formatting note: Your variables (specifically, Mode) should begin with lowercase letters. This is a fairly common coding standard in most programming languages.
  14. Yeah, it's really nice to be able to quickly change a minor config setting without having to completely restart the game.
  15. iChun's mods use it.
  16. Check the server.properties file. "allow-flight" needs to be set to true.
  17. CC computers can emit redstone signals by themselves without any additional mods.
  18. If you're asking diesiebem07 to write the code for you that already works, then I can guarantee the answer is going to be no.
  19. You do not need MultiWorld to create your own dimension. Forge has everything you need to do this.
  20. 1. Post the whole log 2. Post your code for your TileEntity
  21. If you want nested categories you can use "." to specify them when using the Forge Configuration class. Categories: String category1 = "topCategory.subCategory1"; String category2 "topCategory.subCategory2"; What the Forge config file might look like: { "topCategory": { "subCategory1": { # your options }, "subCategory2": { " more options } } }
  22. Don't use for loops to count time.
  23. My simple FMLLog wrapper: https://github.com/shadowfacts/ShadowCore/blob/master/src/main/java/net/shadowfacts/shadowcore/Log.java
  24. Hold on, while there is no item in the player's hand you want them to be able to fly? And when they are holding your item they can't fly? That makes no sense whatsoever.
  25. world.spawnEntityInWorld(...) You will also need to make sure that the entity is only spawned on the server.

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.