Everything posted by Draco18s
-
[SOLVED]My textures need to be in the minecraft.jar?
Textures do not need to go in the jar, they just need to be inside a folder called 'mods' which is zipped up alongside your classes. E.g. if your main package is "ellbelly.main" and you register your textures as "ellbelly:myblock" then your zip will contain these folders: /ellbelly (contains /main, which contains your class files and other packages) /mods/ellbelly/textures/blocks (contains a png file named 'myblock.png') The compiler will not move the textures folder from the /src directory to /reobf when you compile, you will have to copy it manually (I tend to make a zip of my classes, move it out of the /reobf folder, then add the textures to that zip, and new compiles just get the new classes added, overwriting the old ones). See: http://www.minecraftforge.net/wiki/Icons_and_Textures#Item_and_Block_Textures (Note: for that project I'm referencing the textures directly, not using the icon register, as the moon isn't part of that icon register thingy, but I set up my folders the same way to stay organized)
-
Partially transparent glass [SOLVED]
Probably. Alpha z-sorting is a bitch. Which is why there are render passes, but it means that certain things don't render behind certain other things (like water behind ice, etc.) because without them, things go all screwy. In googling for an image to use an example, the first result was from a thread I posted on the Unity forums about this very issue.
-
Custom Block render problems!
That makes more sense.
-
Custom Block render problems!
This makes no sense. if(X) { Y } else { Y }
-
Making block harvest-able only with enchantment
All I can say at this point is: Add debug statements, figure out where the program is going that it shouldn't be and why.
-
Custom Dimension Sun/Moon texture?
This thread (and a request) inspired me to do this. Even though I didn't use the code here, thanks!
-
[SOLVED] Is it possible to check the biome when placing a block?
Anyway, yeah. Take advantage of code hinting. I scroll through the list of properties and methods for various classes all the time. It's how I know that you can't get the current (surface) sunlight level directly, but you CAN get the amount that has been subtracted from it due to dusk/night, which is close enough.
-
Partially transparent glass [SOLVED]
http://imgs.xkcd.com/comics/wisdom_of_the_ancients.png[/img] Averted.
-
Making block harvest-able only with enchantment
@Override public int quantityDropped(int meta, int fortune, Random random) { return 0; }
-
Change block nature when you walk on it
Abstract state machines
-
[SOLVED] Is it possible to check the biome when placing a block?
@Just idk if he is using n++ ? ...Eclipse is free... And a compiler...
-
Change block nature when you walk on it
Not that I'm aware of. The solution I came to when I used it was to just force-update similar blocks on adjacent sides. (My block became non-solid when walked on, so when walked on, it and all of it's like neighbors turned non-solid). The...other solution I used for a different project was to make the block bounds ever so slightly less than a full cube, and use the onCollission method.
-
Partially transparent glass [SOLVED]
I would not be surprised if they hacked in a third render pass.
-
[SOLVED] Is it possible to check the biome when placing a block?
Remember to use your IDE's autocomplete capabilities.
-
[SOLVED] Is it possible to check the biome when placing a block?
world.getBiomeGenForCoords(x, z)
-
Partially transparent glass [SOLVED]
That's the one. But you also have to make your texture transparent.
-
Partially transparent glass [SOLVED]
Two bits: There's a renderType function, which returns either a 0 or a 1 (compare glass and ice). IIRC, blocks that use alpha return 0, and then have a partially transparent texture.
-
Change block nature when you walk on it
Just FYI, that function triggers about 3 blocks in 4 when walking, about 1 in 2 when running. It's not perfect.
-
Changing the TileEntity from inside the block it's attacht to
Added an avatar, that should help.
-
On Fire GUI effect - How would I make something similar?
How would I cause a similar screen effect as being on fire does, for a new damage source? I can't seem to find where in the class files that particular function happens.
-
Overriding block drops depending on altitude.
If A B Ergo !A Huh?
-
Changing the TileEntity from inside the block it's attacht to
No, the OP said how, the first reply asked when, the functions I refer to are WHERE in the code that WHEN happens and HOW to do it. So stop being pedantic.
-
Overriding block drops depending on altitude.
Use either metadata (so that a block's metadata corresponds to it's Y coord) or TileEntity data (so you can have more than 16 possibilities).
-
How can my entity search for a certain type of block (an easy way)
No idea. :\
-
Changing the TileEntity from inside the block it's attacht to
world.getBlockTileEntity(x, y, z); Where x, y, z is the location of the block (block update/interaction/tick functions pass these as values).
IPS spam blocked by CleanTalk.