Everything posted by Draco18s
-
[SOLVED] Overriding/Extending an Already Existing Block
public class MyBlock extends VanillaBlock { //code }
-
[SOLVED] Overriding/Extending an Already Existing Block
public class MyBlock extends VanillaBlock { //code }
-
Any tutorials for custom block rendering?
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.
-
Any tutorials for custom block rendering?
Tesselators aren't that bad either. 4 corners of 3D space and some texture UV coordinates and you're golden.
-
How to Use mcmod.info files - Actual Documentation Within
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
-
Adding Names with Language Registry
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).
-
Light Flicker
What function gets called when you schedule an update? Maybe....use that function to...schedule an update?
-
Light Flicker
world.scheduleBlockUpdate(x, y, z, blockID, delayTicks)
-
Block with a custom Icon
Look at the renderType. Some vanilla items do this.
-
Scala
Scala is a programming language. I have no idea if that's even possible.
-
what are the other parameters?
You can also go to the function definition itself and see what it does.
-
overriding a method in EntityRenderer
You're not extending a class for super to be of any use. Or overrides.
-
overriding a method in EntityRenderer
And what were the errors?
-
Minecraft Texture path?
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.
-
overriding a method in EntityRenderer
@Override public void render(...) { //your code super.render(...); }
-
Minecraft Texture path?
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.
-
Releasing Mod Help
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).
-
Minecraft Texture path?
http://www.minecraftforge.net/wiki/Icons_and_Textures#Item_and_Block_Textures
-
array troubles
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.
-
[1.5.1] Modding Help
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).
-
array troubles
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.
-
Damage Entity
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).
-
[SOLVED] Is it possible to check the biome when placing a block?
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++).
-
mcmod.info help needed
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?
-
[SOLVED]My textures need to be in the minecraft.jar?
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
IPS spam blocked by CleanTalk.