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. My guess is that you're ADDING damage to the item when you actually need to SUBTRACT damage.
  2. Just so you know: par12 == (1|2|3|4|12|13) That won't do what you think it does. 1|2|3|4|12|13 == 16.
  3. not really updated So someone needs to bug Overmind to update it. I did.
  4. What version of Forge did you code in? What version of Forge and Minecraft are you trying to add the mod to?
  5. There are four ints. @Mod, int, World, x, y, z The second param is the ID of the gui being opened. player.openGui(DragonEconomyBase.instance, YourModBase.MOB_INTERACT_GUI_ID, world, 0, 0, 0); Then you need a gui handler and probably a packet handler too.
  6. I don't use the console only because I find it easier to use graphical interfaces. Oddly, I find programming those interfaces to be a bitch.
  7. That's GitGUI, not Eclipse.
  8. You are trying to replace the blocks in your block's constructor. There are two problems with this: 1) The constructor happens before the game has reached the main menu 2) You are trying to access methods of a null object. That is, your world variable is declared but not defined. For obvious reasons. Not to mention that i, j, and k are also null! You should be doing this code either onEntityCollidedWithBlock or onBlockActivated or similar. Where the world is passed to your block class.
  9. Not that anyone here steals source code either. Borrow it to see how someone did something that they might be trying to figure out how to do (I recently looked up the source code to a backpack mod so that I didn't have to write the GUI code myself because I hate it, but I added functionality to it that was specific to my mod) but they aren't going to outright steal your mod.
  10. I can't find it. Not in eclipse neither in github....
  11. Draco18s replied to Alastar's topic in Modder Support
    ItemStack items = new ItemStack(MyMod.myItem); ... items.getItemDamage() Use the autocomplete functionality available within Eclipse to scroll through a list of properties and methods.
  12. Two things about the quoted post: 1) This would create a duplicate icon in the combined texture sheet (thus not a good idea) 2) Vanilla blocks and items do not have a registerIcon function (as its handled by the block class and not overriden and uses block.getUnlocalizedName() so it doesn't follow the mod format).
  13. Find the checkbox called "force." It'll effectively ruin any past revisions you have, but it will do a commit regardless. (You don't have any revision history, so it won't hurt you in any way).
  14. You're going to have a hell of a time releasing it then.
  15. Nah, I'm perfectly happy with what I have and apparently everyone else is too. On neighbor changed, check the block below for isSupplyingStrongPower (or isSupplyingWeakPower). Oh, that's just a config option for how far the signal can travel vertically. Minimum is 1 (signal travels 16 blocks) default is 3 (signal travels 5 blocks). Just because I felt like the signal shouldn't be as efficient, but left it modifiable by the user.
  16. Forge ModLoader is simply a set of conversion classes to allow ModLoader mods to work on Forge (it litterally remaps the functioncalls)
  17. public boolean onBlockActivated(World par1World, int x, int y, int z, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9) { System.out.println("My block is at " + x + "," + y + "," + z); return false; } Every single function that passes a World or IBlockAccess will follow that up with three integer params (Entities use doubles). These three params are ALWAYS the x,y,z location of the block (or entity) that that function is being called for.
  18. public function getIcon(side, metadata) side 1 is the top.
  19. Maybe has something to do with shouldSideBeRendered()? Just an idea... Nope, as it turned out, it was because I was returning false.
  20. No. Just Forge, Mystcraft, and originally my own mod My mod only adds blocks and environmental effects similar to Mystcraft's Scorching--which relies on the chunk update and chunk.hasEntitites--it was actually my mod that allowed me to notice the behavior, as I was waiting for a long-term effect to complete and I was watching the counter go up and then stop and I was trying to figure out why. Then I noticed that Mystcraft's potion effects had the same thing happen (I'd noticed it before, but it was so transitory as I was constantly moving, that I attributed it to the RNG). So then I started making sure there was no random behavior at all, that all (living)entities in all chunks were being processed and it would still "time out."
  21. I generally assume that people are using their NBTs correctly. They're so trivially easy to get right (compared to packet handlers and data watchers*). But yes, it is a possibility. *Still have no idea what these are needed for myself....
  22. renderer.renderBlockUsingTexture(Block.stone, x, y, z, camo); [code]GL11.glEnable(GL11.GL_BLEND); GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); switch(metadata) { case 0: renderer.renderFaceYNeg(Block.blocksList[wid], (double)x, (double)y, (double)z, self); [...etc...] } GL11.glDisable(GL11.GL_BLEND); In any case, I figured out what my problem was: return false Go go auto-constructed code supplying a return type where what that returned boolean does is undocumented (roughly speaking if the return is false, the game stops rendering stuff because it thinks its done).
  23. You didn't tell the server that the name changed. (Client-Server disparity. You need a packet handler)
  24. Riddle me this, Batman. Doesn't render http://s10.postimg.org/64mow4bll/2013_06_13_23_26_00.png[/img] Place string, block renders http://s24.postimg.org/soa1wok79/2013_06_13_23_26_02.png[/img]
  25. If you're saving out as a png (Photoshop is one program that I know of that doesn't give two shits what the file extension is, it'll happily save as a different format) then it should work.

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.