Everything posted by Draco18s
-
[1.5.1]public boolean used in diffrent class
That void function is the function that checks the slots to see if both have items, and if so, do whatever needs to be done.
-
Detect Redstone Signal Strength
SOL? Sh*t Out of Luck. His option is to either check all the blocks that could possibly be providing power (6 for strong, significantly more for weak) or nothing.
-
[1.5.2]Problems with Block Direction
Open up BlockFurnace.java
-
Recipes Between Mods
I have no idea how reflection works.
-
Recipes Between Mods
You're probably going to have to make a dummy API (or several, actually) to act as placeholders for the classes from those other mods that don't exist.
-
Detect Redstone Signal Strength
Unfortunately not even redstone wire works better than that. So he's SOL.
-
UpdateTick() working, but not instantly
Running from memory: sometimes you think there are extra params. Apparently I was wrong, world.markBlockForUpdate(x, y, z) should work.
-
UpdateTick() working, but not instantly
try world.markBlockForUpdate(x, y, z, flag) You'll have to read the javadocs on the flag, but I think you need a 3.
-
Detect Redstone Signal Strength
world.getBlockMetadata(x, y, z)
-
Crafting Colored Wool???
new ItemStack(Block.cloth, 1, metadata);
-
[1.5.1]public boolean used in diffrent class
/** * Called when an the contents of an Inventory change, usually */ public void onInventoryChanged() { ... }
-
[Solved] Texture Files
... Seriously? I'm not even going to tell you what's wrong. It should be blindingly obvious to anyone with a pair of eyeballs.
-
[1.5.1]public boolean used in diffrent class
Or the Living Entity. Whateverthehellentity that lets you open the GUI that has the slots in it.
-
[Solved] Texture Files
Because: this.blockIcon = par1iconregister.registerIcon("[oreJuli]"); Your registering things wrong. It's looking for a file named "[oreJuli]" (including those brackets!) in the /mods/textures/blocks folder. 17th time I've posted this:
-
[1.5.1]public boolean used in diffrent class
That is not how you should be doing things. The two input slots handle whether or not the item is valid, the TileEntity should handle if both slots are filled and put the output item in the output slot.
-
[Solved] Texture Files
This is wrong. You want Juli.oreJuli.blockID Type errors are a very good thing to check: var i = new Object(); if(rand.nextBoolean()) { i = 3; } i.prop = 9; That should not compile.
-
[1.5.1]public boolean used in diffrent class
When you put a function in a class it is assumed that you need it in that class. You're not using it in that class (it is, in fact, identical to the isItemValid function) but you want to call that function from another class....why?
-
[Solved] Texture Files
I've gotten into using type restrictions in Flash because it's faster. Otherwise this is valid code (and not only will compile, but will run: var i = 1.333; i += 0x1; i = new Object(); i.random = 2; There are good reasons for getters/setters. For example if setting the property means that some other flags or variables need to get set as a result. A good example is the setters that cause datawatchers to update. Likewise health (forcing every effect that CAN reduce an entity to 0 hp having to manage that entity dying would be absurd, instead you can manage that inside the setter!).
-
[Solved] Texture Files
Eh. My C* is a bit rusty. I can't write applications from the ground up, much less one with a GUI or any rendering. Most of what I do is either in Unity3D, Flash, or web-based. As far as I'm concerned the only difference between Java and Flash is how variables are declared. ("int a;" vs. "var a:int;") Oh, and having to deal with Floats and Doubles not being the same thing and can't convert between them implicitly.
-
[Solved] Texture Files
"You can probably pick it up while writing mods." I am going to kick the person who wrote that. It's not technically incorrect. I didn't know Java and started writing mods. I did, however, have prior programming experience in multiple languages (C++, C#, Javascript, Actionscript 2, Actionscript 3...).
-
[Solved] Texture Files
True, but my point was: The old spritesheets were 256x256 and held 256 sprites. To keep that the same under the new system, you need 16x16 icon files.
-
Forge src Install Issue
Try extracting the entire zip. I don't know if it'll make a difference, but you might be missing a file because of that.
-
Crafting grid generator
The Minecraft wiki has a template set up for it. Unless your wiki software has templates, then you aren't going to be able to do it easily.
-
Your Block ID's (or, "Endermen and Your Blocks")
This is more appropriately a vanilla bug. In fact it has already been reported
-
[Unsolved] Rendering a new Fire Block.
coolboy: You still need to return the right renderType Indeed.
IPS spam blocked by CleanTalk.