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. Show your code for your leaf block
  2. Your AABB variable names are garbage. You should name them something intelligent. Two, your "slab_top" bounding box has no height to it. It ranges from 0.5 to.... 0.5 Also, code tags are a Thing
  3. Start with overriding the method and look at how its used elsewhere.
  4. Mind, when it goes under review, Lex or someone else might have some comment on how to improve it, or something. Or why it won't work, or.... Be prepared for that. And check to see if there's already a PR open for it.
  5. Make a Forge pull request changing the == to an instanceof check.
  6. This until Forge patches it.
  7. Routing energy through a wirenetwork isn't pathfinding?
  8. Please stop using getUnlocalizedName for things that aren't display. ModelLoader.setCustomModelResourceLocation(item, meta, new ModelResourceLocation(item.getRegistryName(), "spelltype="+meta));
  9. "my project"\src\api
  10. The hell? https://github.com/16ColorGames/SuperTechTweaks/blob/master/src/main/java/com/sixteencolorgames/supertechtweaks/world/WorldGeneratorBase.java#L132-L135 Why are you sing random.double() for an integer value? https://github.com/16ColorGames/SuperTechTweaks/blob/master/src/main/java/com/sixteencolorgames/supertechtweaks/world/WorldGeneratorBase.java#L136 Also, your base Y value is 0, then you add 0, then you add 0 again. Also you randomize X and Z in three different places: https://github.com/16ColorGames/SuperTechTweaks/blob/master/src/main/java/com/sixteencolorgames/supertechtweaks/world/WorldGeneratorBase.java#L136 https://github.com/16ColorGames/SuperTechTweaks/blob/master/src/main/java/com/sixteencolorgames/supertechtweaks/world/WorldGeneratorCluster.java#L36 https://github.com/16ColorGames/SuperTechTweaks/blob/master/src/main/java/com/sixteencolorgames/supertechtweaks/world/WorldGeneratorCluster.java#L36 (or line 42)
  11. You need to create a new class for your armors, rather than using new Chestplate
  12. Sorry, I haven't been all here. You can do this with an event, too.
  13. public class MyForgeEventHandler { @SubscribeEvent public void pickupItem(EntityItemPickupEvent event) { System.out.println("Item picked up!"); } } ... MinecraftForge.EVENT_BUS.register(new MyForgeEventHandler());
  14. In an event handler class. http://mcforge.readthedocs.io/en/latest/events/intro/
  15. With the amount of code you posted it was impossible for anyone here to have spotted your error. All you posted was your crafting recipe line. That's it. It's an obvious error to literally everyone that you have to pass in the same object to the recipe as to the game registry because if you don't how is the game supposed to know they're the same object? You created two different objects. So yeah, you'll get undefined behavior when you try to do something that was never intended to be done.
  16. Sooo you want to store an ItemStack on an Entity
  17. Let me put it this way: Everything is possible, but it might be very very complicated or hackish.
  18. I think you have to go up to the previous event to that one. The...PlayerInteractEvent Edit: Ah, no, you'd have to cancel the PlayerInteractEvent.EntityInteract
  19. https://www.google.com/search?q=A*&ie=utf-8&oe=utf-8
  20. Ways to remove an item from your inventory: Dying Click-and-move in a GUI Shift-click in a GUI Q Click-and drop in a GUI Item Frame (There is no event or any other notification to any system anywhere that this occurs! The item stack is literally cloned and inserted into the frame and the original deleted (if stack-size of 1, otherwise the stack size is decremented)).
  21. You need to sync the progress to the client. There are a bunch of threads on this forum about that.
  22. Is that Ring classified as a MainHand item?

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.