Everything posted by Draco18s
-
[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]Techne into Forge?
It's a scale value. It just so happens that all models need the same scale value (1/16th) to be the right size.- [1.7.10]can't run the method MinecraftServer.getServer() in Multiplayer Server
No shit, Sherlock. The GuiButton is client side only code. Accessing the server object doesn't magically create a connection between your computer (client) and another (the server). "Running on the same machine" isn't an excuse, because they're separate executables. You need packets.- effect the renderer
What you're looking for is a Shader.- [1.7.10]Techne into Forge?
Aside from having used the main mod file events... RenderBolt != RenderFireball- [1.7.10] Custom fluid with material lava that flowing very slowy
public BlockFluidBase(Fluid fluid, Material material) { this.tickRate = fluid.viscosity / 200; } - [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.