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.

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. Always post your errors when you have them.
  2. Override isInCreativeTab() And for future reference, if you have code, post it. If you have errors, post them.
  3. Ok so lets see here: This looks good, but it's called from somewhere else. public void init() { new ModRecipes().RegisterCraftRecipes(); } And that place happens to be here: @Mod.EventHandler public void preInit(FMLPreInitializationEvent event) {proxy.preInit();} public void init(FMLInitializationEvent event) {proxy.init();} Which might look fine, but it's not. Lets remove the code that doesn't interest us. public void init(FMLInitializationEvent event) {proxy.init();} Hold on a minute. Where is this called from? Nowhere, that's where! You're missing the EventHandler annotation on your init method.
  4. Did I say it would not? No I did not say that. In fact I said you must do that.
  5. No, it was introduced later.
  6. You're setting the registry name to "obsidian". As this does not contain a domain ID (i.e. your mod name), forge adds it for you, based on whatever's in your @mod annotation (I'll assume "xtekblue" for the moment). This means the registry name is actually "xtekblue:obsidian". In order to overwrite vanilla's obsidian, you need to set the registry name to "minecraft:obsidian"
  7. Just checking. Because I've worked on mechanics to get nearby ores and only do "speckles" of those ores.
  8. Question: Is your speckles related to ore nearby, or is it just a chance to get "some speckles" of that material, which can then be crafted/smelted into ingots?
  9. Just because you extended the class doesn't mean you've replaced it. Minecraft vanilla (which is immutable) still calls new BlockObsidian(), not your class. To create any block, you need to register it (I recommend reading the documentation), and if you do as Jabelar says, you can replace the vanilla entry, but this is due to how the registration system works and is not a standard feature of Java. I also recommend learning Java (or at least, some other object oriented language) before modding.
  10. You are returning different items in your getItemDropped method. When your drop a sapphire, you also drop that sapphire with damage 1.
  11. You can get the list of properties from an IBlockState with state.getProperties(). Each property would then be examine-able for its name, type, and allowed values.
  12. Then you need to use the IBlockState as your key.
  13. What's wrong with using the registry name?
  14. You would have to examine the anvil code to see how it applies the enchantments and see if there is an event hook that would let you tap into the anvil's result.
  15. The anvil doesn't have recipes.
  16. Apply the nausea potion effect to the player.
  17. getBlockState(pos) Where pos is a BlockPos representing the location in the world you want to check
  18. https://github.com/leduyquang753/NBS-Player/blob/master/src/main/java/com/xxmicloxx/NoteBlockAPI/SongPlayer.java#L85 You're creating your own threads? Yeah, that won't create problems, ever.
  19. I am not downloading a zip file. Post your code on GitHub.
  20. Both of those are client side only. As soon as the server tries to load the Minecraft class, it fails to find it. You're already being passed a world object, somewhere. Post more of your code.
  21. This is a really good point. See all of these? https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/ores/OresBase.java#L92-L110 Here's the class for all of them: https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/ores/block/ore/BlockHardOreBase.java Well, except diamond.
  22. And where is this code being executed?
  23. world is an instance of World so... Yes.
  24. You...: Create an entity Give it a model and renderer (this will be the 2D sprite) Code the aura effect inside the entity
  25. This does not seem correct to me.

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.