Everything posted by Draco18s
-
[1.7.10] Fast/Fancy Textures
If the log is printed to the console, then the error is not in that snippet. QED.
-
[1.7.10] Trying to render a Techne Model, error in code?
You need to supply a material. Look at all the other blocks: blockRegistry.addObject(20, "glass", (new BlockGlass(Material.glass, false))... public BlockStone() { super(Material.rock); //here this.setCreativeTab(CreativeTabs.tabBlock); } As for invisible, that has nothing to do with BlockContainer. You registered a renderer for your block, and likely, it isn't rendering anything.
-
[1.7.10] Trying to render a Techne Model, error in code?
Nah, everyone else calls me an asshole because they're too [lazy|stupid|assholish] to go to the effort of helping themselves.
-
[1.7.10] Trying to render a Techne Model, error in code?
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityJohnnyBlockRubble.class, render);
-
Replicate Grass Block Colour Overlay
Long story short: you're going to find this almost impossible. I don't know how grass actually renders its sides (last I checked, it cheated), but the problem you're seeing has to do with the fact that the color multiplier applies to the whole texture. Best guess, you could try a transparent overlay texture which has the grass portion and is color multiplied, and the dirt underlay portion which is not. You'll have to look up two-pass rendering on your own.
-
[1.8][SERVER PLUGIN] Server dimensions and server switching, is it possible?
\ Do you mean like this?
-
Make Something Happen After Certain Amount of Minecraft Days
True enough, it is. The question then is: "Is this something that should happen after the game has been played for X hours?" or "Is this something that should occur after a certain amount of game time?" The former would use getTotalWorldTime() - doesn't care what time of day it is, only how long since the world was created, effectively measured in Real Time The latter would use getWorldTime() - it respects sleeping and the reset of the game clock
-
[1.7.10] How to randomly spawn blocks upon Blocks destruction.
Override the block fucntion removedByPlayer . Look at each adjacent block. If it is air, set the block to your rubble block. Done.
-
[1.7.10] Leaf Biome Coloration
I'd help if you actually looked at the vanilla leaves. Say, BlockLeaves line 151.
-
Make Something Happen After Certain Amount of Minecraft Days
Yes. Use getTotalWorldTime() instead. Except that, as far as I can tell, getWorldTime() is not actually restricted to 0-23999. It doesn't tick when doDayNightCycle is false, but nothing modulos it back below 24000. getWorldTime() also respects sleeping in beds whereas getTotalWorldTime does not. Check WorldServer.java lines 185 and 159. So yes, in this situation getWorldTime() is in fact the better call.
-
Make Something Happen After Certain Amount of Minecraft Days
Nope.
-
[1.8] Custom furnace: Where do you define the furnace speed?
I don't see how the move to 1.8 changes class level variables.
-
Make Something Happen After Certain Amount of Minecraft Days
You will need a tick handler and you will want it to check the world.getWorldTime() value and check to see if it's the "when" you want your Thing to happen, and then Do It.
-
[1.7.10]Techne into Forge?
- [1.7.10] rendering a texture in greyscale
Not to mention that it's almost impossible to get access to the bitmap data...- [1.7.10] How to make multiple Items drop from a single Block w. Random Chance
[nobbc] code here [/nobbc] Also, define "doesn't work"- [1.7.10] How to make multiple Items drop from a single Block w. Random Chance
Override public ArrayList<ItemStack> getDrops(World world, int x, int y, int z, int metadata, int fortune)- getColorFromItemStack method efficiency
Nope- [1.7.10] rendering a texture in greyscale
Shaders.- [1.7.10] glass not render right
So I'm not crazy! For a few minutes there (as I can not find the other thread) I thought I was pre-cog'ing1 again. 1I don't have precognition, just a lot of events that make me go "did I dream that?"- [1.7.10] Simple updateAITasks question for entity
You could look at the existing AI functions. AIWander I know turns off when the player is more than 32 blocks away.- [1.7.10] Simple updateAITasks question for entity
world.getClosestPlayer- Reading and writing of structures to a file.
A schematic file is just an .nbt with a different extension but with a known set of root-level keys.- Reading and writing of structures to a file.
Yeah, FileIO is just regular java. Real easy stuff. Especially with the existence of the CompressedStreamTools (IIRC the class name). I'm completely failing to locate the code snipped that helped me get started, unfortunately.- Reading and writing of structures to a file.
http://minecraft.gamepedia.com/Schematic_file_format - [1.7.10] rendering a texture in greyscale
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.