Everything posted by Draco18s
-
[1.6.4] How to make a potion?
Kinda. Yeah...
-
world.setblockat stuff
World#setBlock(x, y, z, 0, 0, 2) ?
-
[1.6.4] Extended data for tile entity
Yes. readFromNBT and writeToNBT are public functions even if the NBT tag itself is not. There is nothing stopping you from creating an NBT tag, passing it to the write function, then adding your own data, and passing it back to the read function.
-
[1.6.4][SOLVED]Armor not giving player wearing it potion effects
Ok, but that doesn't tell us what's failing.
-
[1.6.4][SOLVED]Armor not giving player wearing it potion effects
And this is where we do things like System.out.println(helmet.getItem() == FireArmorBaseFile.FireHelmet) And see what its doing.
-
How much java should i know before starting serious modding
Also know when you've coded yourself into a corner. Even if it works, but the way you've done it you've had to make sacrifices due to some assumption here or how you set your data up over there. In the little project I did over the last few days I got to a spot where it's not viable to keep working because my data structures won't support it. In order to do something simple like locate a topological feature I have to iterate through one of four different arrays and compare datapoints with at least one of the other remaining three. i.e. I have an array that holds vertex locations. I have another array that holds triangles (that references indices in the vertex array). I then have yet another array that holds the edges of those triangles (because the triangle array wasn't set up to be useful for the next step of what I was doing). I then have an array of objects that exist visually, which are related to the vertex array. In order to draw a series of lines between my objects I need to find which object I want to draw from, and to, then locate the relevant edge in the edge array. If it exists (as not every object is connected to every other object). So I need to scrap everything I have, use what I learned, and find a single cohesive way of storing the data so I can reference and modify it in the various ways I need to.
-
How much java should i know before starting serious modding
If you're going to do stuff with power systems, you're really going to need to know how to program efficiently. That whole Big-O notation thing.
-
[1.7.2] Block Model Rendering
https://github.com/Draco18s/Artifacts/blob/master/draco18s/artifacts/client/ClientProxy.java
-
[SOLVED]Rendering Block (that has a custom model) In Inventory
You don't have to do that, you know. Check out how I did item renders for TESR blocks. https://github.com/Draco18s/Artifacts/blob/master/draco18s/artifacts/client/ClientProxy.java
-
[1.7.2] Block Model Rendering
Did you register the renderer in your client proxy?
-
[VANILLA BUG][SOLVED][1.7.2] Block metadata incorrect during explosion?
You mean like migrating to a new URL? Your login is valid on the new tracker if you had one on the old.
-
[VANILLA BUG][SOLVED][1.7.2] Block metadata incorrect during explosion?
You are a lazy bastard indeed.
-
[1.7.2] How to render TileEntity in inventory?
I also pass a new TileEntity to my renderer.
-
[VANILLA BUG][SOLVED][1.7.2] Block metadata incorrect during explosion?
Report it to Mojang. I've reported things I've found in the code before (like why walking on slabs over ice is like walking on ice, it has to do with the fact that the entity position is floored, then subtracts 1 to determine what block you're walking on).
-
[1.7.2] How to render TileEntity in inventory?
See: https://github.com/Draco18s/Artifacts/blob/master/draco18s/artifacts/client/ClientProxy.java
-
1.6.4 Mining Radius
The blocks that code destroys is based on the blocks that (pickaxe of same material) will destroy. Doesn't matter where they are in relation or what block was originally broken.
-
1.6.4 Mining Radius
Check this out: https://github.com/Draco18s/Artifacts/blob/master/draco18s/artifacts/components/ComponentExcavation.java That's how I achieved it. It does a 3x3x3 cube, simply for the simplistic nature of being easy to calculate.
-
[SOLVED]Exported Mod, No Textures
Uh. You have to add those yourself, last I checked.
-
[VANILLA BUG][SOLVED][1.7.2] Block metadata incorrect during explosion?
And now you have found the problem.
-
[VANILLA BUG][SOLVED][1.7.2] Block metadata incorrect during explosion?
Print out the block ID at that location.
-
[VANILLA BUG][SOLVED][1.7.2] Block metadata incorrect during explosion?
And my other question?
-
[VANILLA BUG][SOLVED][1.7.2] Block metadata incorrect during explosion?
getExplosionResistance(entity); What does that do? You also have print statements in there, what do they say when run?
-
Couple Custom Block Questions
Creating a new block, not putting it in the creative menu or giving it a recipe or anything (it's a technical block). When your block is added to the world it checks the space above it for Material.air (this is better than checking for actually air, as some mods add blocks that should be treated like air). If air: replace it with the technical block If not air: drop self / prevent placement Then when either block is broken it breaks the other block.
-
[1.7.2] How do I make cacti do more damage?
A hundred thousand damage? o..O
-
Couple Custom Block Questions
All correct. (Except that it's a field, not a method)
IPS spam blocked by CleanTalk.