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.

Choonster

Moderators
  • Joined

  • Last visited

Everything posted by Choonster

  1. Use EntityLivingBase#getItemStackFromSlot . You shouldn't be updating to 1.9, you should be updating to 1.10.2 or at least 1.9.4.
  2. Override Item#getSubItems to create any ItemStack s you want to display in the creative menu and add them to the List<ItemStack> .
  3. Chicken Bones' mods are being updated and maintained by other people here.
  4. ModItems.itemOrder and ModBlocks.blockOrder are null because you never assign them a value.
  5. Use your IDE to find implementations of it in vanilla and where they're used.
  6. Put a breakpoint in your event handler method, run Minecraft in debug mode and generate some terrain. If the breakpoint is hit, your event handler is being called.
  7. You need to check which Block the IBlockState represents. If it's Blocks.LOG (an instance of BlockOldLog ), use BlockOldLog.VARIANT . If it's Blocks.LOG2 (an instance of BlockNewLog ), use BlockNewLog.VARIANT .
  8. BiomeEvent.CreateDecorator is an event, you need create an event handler that subscribes to this event and register it on the appropriate event bus. coolAlias has a tutorial on event handlers here.
  9. The default Gradle project structure uses src/main/java/... and src/main/resources/... rather than just src/java/... and src/resources/.... You probably need to use the default structure (recommended) or tell Gradle about your custom structure. Edit: Fixed formatting error.
  10. It's entirely possible to set multiple models for a single variant in a blockstates file and have one selected at random every time the block is rendered; look at vanilla's grass blockstates file for an example. Forge's blockstates format also supports this, I'm not sure why it's not working for the OP.
  11. Don't use block IDs, they're not guaranteed to remain constant between saves. Get the sapling Block from the Blocks.SAPLING field. Call Block#getDefaultState to get its default IBlockState . Call IBlockState#withProperty to get an IBlockState with the BlockSapling.TYPE property set to BlockPlanks.EnumType.ACACIA . Call World#setBlockState to set the block at the specified BlockPos to the IBlockState .
  12. I'd also recommend using World#getBiome instead of BiomeProvider#getBiome(BlockPos, Biome) . This will query the Chunk 's biomes if it's loaded or fall back to the BiomeProvider if it isn't.
  13. You use a PropertyEnum just like you would any other IProperty . The string returned by IStringSerializable#getName is used as the value in the blockstates file (whichever format you're using). I have a block with two enum properties (for the colour and facing) here: code, blockstates file. I have a block with a single custom enum property here: code, blockstates file.
  14. You've posted this in the wrong section. It belongs in Support & Bug Reports, it should be moved soon You've extracted a mod's JAR in your mods directory, don't do this. To install a mod, simply put the JAR in the mods directory without extracting it. Something is also trying to save a crash report to a file with an invalid name, but I can't see anything in the Minecraft or Forge code that would generate that name. Which mods do you have installed?
  15. "The super method" means the method of the super class that the current method overrides.
  16. You can create a launcher profile for each Minecraft version and give each profile its own game directory. 1.7.10 is no longer supported by Forge, so you you can play it, but you won't get any help for it here if you break something.
  17. And may I ask what the two floats represent? Look at their names in your IDE.
  18. The ItemAxe(ToolMaterial) constructor only works for vanilla ToolMaterial s. Use the Forge-provided ItemAxe(ToolMaterial, float, float) constructor for modded ToolMaterial s.
  19. EntityRegistry.registerModEntity always registers your entity with the name "<modid>.<name>" , where <modid> is your mod ID and <name> is the name you specified. There's currently no way to use the "<modid>:<name>" format used by the new snapshots.
  20. Override CreativeTabs#displayAllRelevantItems to call the super method and then sort the list.
  21. Minecraft is a client-only class, you can't access it from common code. There is no "the player" on the server, there are multiple players. Which one are you tracking the stats of? Don't compare players by name, compare them by UUID.
  22. World#isRemote is true on the client and false on the server.
  23. I don't understand what you're asking. Do you mean "Is there any way to render a fullbright model without making the block emit light?"? I don't think it's possible with a baked model, but it's probably possible if you use a TileEntitySpecialRenderer . I don't know enough about OpenGL to help you with that.
  24. No problem. I just found it by browsing the Server Utility section of Curse, so I'm not sure how well it works.

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.