Everything posted by Draco18s
-
How about run-time altered icons
Hrm, alrighty then. Question sort of arose as I was getting up from my computer, so I wasn't sure where to look nor did I have the time TO look. But thanks for the pointer. But yeah, rather than take the same 7 or 8 overlays and apply them to the same four base textures and blob them all into the resources folder, it'd be "easier" to make the computer do it.
-
Block with composite texture
An [img ] tag with a URL in it that ends in .jpg, .png, or .gif In this case, http://i.imgur.com/j1sL26u.png
-
How about run-time altered icons
My guess is likely going to be "no, you can't do that" but I thought I'd ask. Is there a way I can take an existing icon (either by grabbing it from a block that was already registered or via the IIconRegister) and modify the texture data, prerendering an overlay? All in the purpose of "making my life a little easier through code."
-
addInformation method help!
if(GuiScreen.isShiftKeyDown()){ //... } else { par3List.add("Press shift for more info"); } ? I mean come on...
-
Blocks, Localized Names, Prepending To Them
So I have a block class that I'm using to replace other blocks (it adds falling behavior per a small set of rules). Rather than construct a unique class for each original block I'm replacing I have one class. I'd like to be able to set the (un)localized name in such a way that I can utilize the original block's localized name and prepend an adjective (in this case, Unstable) so that the block has a unique name in-game. As far as I can tell, I can't do this. I can create an ItemBlock class which can take the block class's formatted unlocalized name and split into pieces and return some localization, but.... It's still considered unlocalized, gets ".name" appended to the end, and is run through the language dictionary again. Is there some subversion I'm missing or am I going to have to suck it up and add all the localizations myself, rather than one line "adj.unstable=Unstable" and let the other half be done for its already existent localization?
-
[SOLVED]Custom building not spawning
It wasn't the naming but this 1 stands for dimensionID and 1 is the end Uh huh. But with those function names, you confused "surface" and "overworld" when it should clearly be "end" and "overworld"
-
[SOLVED]Custom building not spawning
generateInOverworld(...) generateSurface(...) That naming. I applaud.
-
[SOLVED]Custom building not spawning
Uh huh. And now its your job to take off the training wheels, look at the code, and figure out what it is that it's doing that you don't want it to do.
-
[SOLVED]Custom building not spawning
One of your problems is that it's not generating IN the chunk being processed. Because your x and z location values are NO WHERE NEAR the chunk. It's off generating in Never Never Land and you don't know why.
-
[SOLVED]Custom building not spawning
...nor, apparently, do you understand the concept of random numbers. (And my bad, it would be somewhere South and East, but not 178/212 blocks except by sheer coincidence)
-
[SOLVED]Custom building not spawning
You also don't seem to get the concept of "generate in this chunk." int i = x + random.nextInt(256); The chunk says, "Why yes, I would like to generate this structure. 178 blocks west and 212 north. Yes, that's 12 chunks ata way. What do you mean its a different biome? I don't care. Enjoy!" And also what that other guy said. Seriously. Copy-pasting the same lines into four places in your code is BadTM
-
Mod crashes when I try to place a custom fire block
Because magic.TM Or rather, Windows is picky when it comes to file names. As files on your computer it doesn't give a shite what the casing is. But as soon as its in a zip file (and a jar file is a zip file with a new, magical, and unique extension) it MATTERS A WHOLE HELL OF A LOT.
-
[1.8] Generated Blocks are gone after re-log.
Wrong direction. Implement your own packets and packet handler.
-
Build Artifacts with Intellij 14 and MC 1.7.10
No, it has diesieben07
-
Mod crashes when I try to place a custom fire block
Check the logs.
-
[1.7.10] Custom Tile Entity Renderer has a shadowy overlay
Good day, sir.
-
[1.7.10] Custom Tile Entity Renderer has a shadowy overlay
He starts that it does and the pictures show it, but he doesn't actually state that that is the problem and that he wants it to go away. The OP was equivalent to, "the sky is blue." Yes, yes it is. And..?
-
Mod crashes when I try to place a custom fire block
Add your mood id to the texture path. "MODID:fireBlack"
-
[1.7.10] Custom Tile Entity Renderer has a shadowy overlay
Ok, now I know even LESS about your problem than I had before: WTF are you trying to achieve that is not currently working?
-
[1.7.10] Custom Tile Entity Renderer has a shadowy overlay
Well. You didn't say what's wrong, my guess is that it's rendering ALL of the shading when ANY block is looked at (based on your screenshots, also you shouldn't have turned off the GUI, because that removed the reticule). You're missing the code-bit that deals with the "looking" in your post (probably the TileEntity). So I can't be sure. But it looks like you've got something static that shouldn't be.
-
Mod crashes when I try to place a custom fire block
Ok, at this point either: a) it will work or b) there will be a console error telling you what image could not be found. Do double check that your meta files have the exact same name as the png, but with ".mcmeta" on the end, after the ".png". Bad: fireBlack_Layer0.png fireBlack_layer_0.png.mcmeta //missing _ fireBlack_layer_0.mcmeta //missing .png fireblack_layer0.png.mcmeta //different casing Good: fireBlack_Layer0.png fireBlack_layer0.png.mcmeta
-
[1.7.2] ResourceLocation Problem (Techne Model)
@Override public void renderItem(ItemRenderType type, ItemStack item, Object... data) { if(type == IItemRenderer.ItemRenderType.ENTITY) { GL11.glTranslatef(-0.5F, 0.0F, -0.5F); this.render.renderTileEntityAt(this.entity, 0.0D, 0.0D, 0.0D, 0.0F); } } I do not see a case for type == IItemRenderer.ItemRenderType.INVENTORY
-
Mod crashes when I try to place a custom fire block
Would you mean this class: package com.wolfamaril.coloredflame.block; public class BlockFireColoredBlack extends BlockFireColoredBase { public BlockFireColoredBlack() { super(); this.setBlockName("fireBlack"); } } Because if so, I do not see any calls to set the texture name.
-
Mod crashes when I try to place a custom fire block
When you aren't even calling setTextureName, even after I tell you twice what you need to do so, I can't tell you what string you need to use to fix a missing texture problem. You're using getTextureName in your IIcon registration, ergo you need to use setTextureName.
-
[1.7.2] ResourceLocation Problem (Techne Model)
You didn't show your ItemRenderSuperWorkbench class
IPS spam blocked by CleanTalk.