Skip 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. It's called an override function for a reason. The player is passed to that function when it gets called from vanilla code.
  2. From Block.java /** * Determines if the player can harvest this block, obtaining it's drops when the block is destroyed. * * @param player The player damaging the block, may be null * @param meta The block's current metadata * @return True to spawn the drops */ public boolean canHarvestBlock(EntityPlayer player, int meta) { return ForgeHooks.canHarvestBlock(this, player, meta); } From the wiki MinecraftForge.setBlockHarvestLevel(myFirstBlock, "pickaxe", 2);
  3. Running in Eclipse works just fine for me. I had to do zero setup work. And I did read your post, I got to this part: [My textures are at] forge\mcp\eclipse\Minecraft\bin\mods\Generic\textures\blocks\genericdirt.png At which point I knew that you hadn't actually followed my directions.
  4. Of the 14 times I've posted it, it's actually been what was needed twelve times. So no.
  5. Takes a large number of classes, plus packet handling, to pull off. I'm inching along slowly with my own GUI project.
  6. Apparently I'm not allowed to reply to posts any more. The forum whines that I either submitted another post too recently or already submitted that post. The hell I did. entityPlayer.dimension All entities have a reference to the dimension that they're in. No need for listeners or accessing the world object. Apparently I gave up without actually trying that.
  7. Use techne to export to Java, which will give you a rendering class (I haven't imported any yet myself, but it looks to be everything you'd need to create a custom renderer). As for GUIs, those are immensely complicated (though you don't need a TE to make them). Can't help you with the BuildCraft API.
  8. You should be saving that information to the player not to the block.
  9. Look up the Techne modeler.
  10. Or you could register on the LivingFallEvent....then you don't need to check the damage source.
  11. Register an event hander to handle the LivingFallEvent. Not sure what you'd do after that, though.
  12. The parent mod needs to have an API. Very few do, but Mystcraft does (though it's not public; I was messing around doing neat stuff before I was given the API, and a lot of what I've done I've passed back to Mystcraft as starting points for things XCompWiz was going to implement eventually anyway). You might be able to get away with decompiling the original and tying into its classes, then distributing your mod without those classes, but using the required-after dependency. I haven't tried. It'd be messy though and subject to easy breaking if the parent mod changes its structure, etc.
  13. If you do end up going with A* you might want to use Jump Point Search. It'll prune illogical nodes from the search tree due to the fact that there are only so many tiles/blocks that it makes sense to search next based on the fact that the current tile is the shortest distance (that is, in order for the current tile to be part of the path, certain neighbors CANNOT be part of the path, because there's a faster way to get there).
  14. Yup, I use this a lot actually. Namely for packet sending (as I haven't figured out how to convert an EntityPlayer into a Player for use with sendPacketToPlayer, so I use sendPacketToNearby).
  15. I got a little lost with it, so I said "fuck it" and went back to getEntityData Thanks to diesieben07 I now get how to use it SO if you need help with it I can help Not my primary focus right now, but thanks.
  16. I would not be surprised if it also suffered from the bug I am experiencing, but think snow's rarity and the fact it is simply walked on leads to it not being noticed. I was actually using it just fine yesterday. Open creative mode, give yourself snow, right click on the ground to place an 8th. Right click on the snow to add additional 8ths.
  17. Not sure then, because snow works
  18. I got a little lost with it, so I said "fuck it" and went back to getEntityData
  19. Basically you have to let it get passed from a vanilla class, or get it from an existing entity (server side only). Or you can use IExtendedProperties (basically getting data from an existing entity, but more complicated and not depreciated) or extend WordSaveData
  20. Less than 4096 actually. Powers of 2.
  21. He is updating, and when he updates I'll update my addon. There's no point in updating my addon before the base mod updates, it would be unusable.
  22. Next question: Where is the nbtcompound tag coming from? If you're instanciating it yourself, it's not going to save.
  23. Think of a vanilla block that's larger than one block, peek at its class code.
  24. Are you ever calling nbt.setString(...)?

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

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.