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. public class MyBlock extends VanillaBlock { //code }
  2. public class MyBlock extends VanillaBlock { //code }
  3. Got any links? Never heard of Tesselators, and google didn't help much either. I'm not sure what it is, exactly, but I know what it does. It draws quads (4-sided polygons in 3D space). Example: tessellator.addVertexWithUV(minX, theY, maxZ, minU, maxV); tessellator.addVertexWithUV(minX, theY, minZ, minU, minV); tessellator.addVertexWithUV(maxX, theY, minZ, maxU, minV); tessellator.addVertexWithUV(maxX, theY, maxZ, maxU, maxV); Draws a single plane on the X/Z plane (i.e. the top of a block). Flipping the points around (reverse order) will render it upside down (i.e. bottom of a block). Not sure what the orientation is of those four lines offhand, though. I think it's the underside, based off a comment in the code referencing the "bottom of the bed" where I got it from.
  4. Tesselators aren't that bad either. 4 corners of 3D space and some texture UV coordinates and you're golden.
  5. It has come to my attention that no one knows about the following link: https://github.com/MinecraftForge/FML/wiki/FML-mod-information-file You're welcome
  6. Unrelated, but worth pointing out: public static final Block greenGlass = new BlockStainedGlass(919).setUnlocalizedName("glassGreen").setHardness(0.3F).setCreativeTab(CreativeTabs.tabDecorations).setStepSound(Block.soundGlassFootstep); Ew. You're not using a config file for your block and item IDs! Also, all those function calls to set names, hardness, and so on, I'd put those inside the class file, except where needed to override (eg. all your stained glass has the same hardness, so put that IN the class BlockStainedGlass, but they have different names, so keep that outside).
  7. What function gets called when you schedule an update? Maybe....use that function to...schedule an update?
  8. world.scheduleBlockUpdate(x, y, z, blockID, delayTicks)
  9. Look at the renderType. Some vanilla items do this.
  10. Draco18s replied to mnn's topic in Modder Support
    Scala is a programming language. I have no idea if that's even possible.
  11. You can also go to the function definition itself and see what it does.
  12. You're not extending a class for super to be of any use. Or overrides.
  13. The whole texture stealing thing I didn't see myself until I went to steal some of the code from the grass block to make a block that camouflaged itself as grass. Hehe.
  14. @Override public void render(...) { //your code super.render(...); }
  15. 1.5 uses the IconRegister system, not a file reference system. If you want to use "the texture BlockX is using" then you want to reference that block directly, for example: this.blockTexture = Block.sponge.getTextureFromSide(0); Grass does this to get its bottom face, by borrowing dirt's texture (the number passed is the side; 0 is the bottom, 1 is the top, 2-4 are the sides). If you want the texture BlockX would use but make a copy of it (for whatever reason) then you need to register it, e.g. iconRegister.registerIcon("sponge"); This is how the vanilla sponge registers its texture. All vanilla blocks use their unlocalized block name as the string to register their icons.
  16. After reobfuscating, open the folder /reobf then open the folder /minecraft then zip the folder myname into a zip file (myname.zip) and preserve folder structure. That should cause it to load just fine (you'll have to add your textures manually, the /mod folder from /src if you're using 1.5+). I have a sneaking suspicion that you're zipping the java files not the class files (I did that the other day, to much confusion).
  17. http://www.minecraftforge.net/wiki/Icons_and_Textures#Item_and_Block_Textures
  18. you did but either you deleted your own post or a moderator did I didn't delete it. No idea why a mod would have, either. It was basically a copy-past of the OP's code with that one change.
  19. That will require an entity of some kind. And probably a model to go with it. And that requires things I don't even know about (haven't touched mob or GUI code yet).
  20. I could have sworn I replied to this thread, along the lines of... private static final String[] colors = new String[16]; //INITIALIZE ME FIRST Ah well.
  21. Me either, I've even used it with a custom damage source. playerEntity.attackEntityFrom(new ColdDamage(), 1); For vanilla damage types: playerEntity.attackEntityFrom(Damage.generic, 2); (This is, of course, attacking the player, for other entities, you need a reference to that entity).
  22. Eclipse is probably by far the best IDE I've ever used. Automatic detection of unrecognized classes? Quick resolution of common errors? Easy access to methods and properties of other classes through mouse-over modal windows? GAWD DAMN. I'm going to see if I can use it to develop for Unity here pretty soon (MonoDevelop for Windows that ships with Unity has several game-breaking bugs so I'm using Notepad++).
  23. Given that this thread is only a few months old, I figured I'd ask my question here. What is the update url and how do I use it. That is, what is it that goes at the specified URL so that updates can be detected?
  24. because that's not how you package things. This is wrong: /.minecraft/mods/MyMod/minecraft/OresMod |_ |_ It should be like this: /.minecraft/mods/MyMod.zip |_ /OresMod |_ /client /common /mods/textures |_ /blcoks /items /armors

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.