Everything posted by Draco18s
-
ShapedOreRecipe and ShapelessOreRecipe...
Use other methods before resorting to try/catch. Try/catch is pretty resource intensive compared to "if(str != null)"
-
How to handle recipes with multiple outputs (buckets)?
Try digging into the vanilla crafting handler. It has a way to detect if the recipe inputs have a bucket-of-material and if so, to leave an empty bucket in the crafting grid.
-
ShapedOreRecipe and ShapelessOreRecipe...
That array list is likely the list of item stacks that are valid inputs for the given slot. Remember that the ShapedOreRecipe and ShapelessOreRecipe are classes that use OreDict strings instead of item stacks, so that mods that add various new woods, ores, and so on are all intercompatible.
-
How to handle recipes with multiple outputs (buckets)?
Buckets are returned automagically by the vanilla crafting system. Warning: it returns one bucket. If a recipe needs two (or more) those have to be handled with Forge Events. With what you're doing, you're likely going to have to write your own crafting handler and include a second output slot for the buckets. Do note that there are other (mod) recipes which deal with similar things, such as tools, that will also not-work with your current setup (e.g. RedPower's hand saw, IC2's hammer).
-
Mod crashes when I try to place a custom fire block
And I certainly do know how. I'm just not going to write your code for you. I've made several mods which involve textures.
-
How can I make a timer for onItemRightClick? [Solved]
Because that would require that I instruct you on the basics of Java. At which point I point you at my signature.
-
[1.7.10] Custom brewing recipes?
The brewing stand is...complex and obfuscated to say the least. Brewing recipes basically work on a series of bitwise operators, each ingredient performing a given action to flip the desired bits so the end result is the output potion's damage value. Good luck mucking around with it.
-
Mod crashes when I try to place a custom fire block
Because you never tell it what texture to use.
-
Mod crashes when I try to place a custom fire block
http://www.minecraftforge.net/wiki/Icons_and_Textures#Texture_Code
-
How can I make a timer for onItemRightClick? [Solved]
They're variables like any other variable. Use them as variables that have values and do whatever you want to.
-
[1.7.10] Block NBT?
The block class is a singleton class (HEYO) so you're going to need a tile entity for this.
-
Mod crashes when I try to place a custom fire block
Because you never tell it what texture to use.
-
How can I make a timer for onItemRightClick? [Solved]
nbt.setInteger("MyCooldown",400) ?
-
onEntityJoinWorldEvent() being buggy with EntityItem
Hehe. I had that exact same problem, but with a loop yesterday.
-
[1.7.2] Trying to Insta-Kill Player with potion
Is it doing what you want? No? Then yes, it's wrong. Start adding system.out () statements to see what is going on.
-
[1.7.2] Trying to Insta-Kill Player with potion
That code, if it ran, would kill the entity that throws any splash potion
-
[1.7.10]Load chunk in world for until an inventory is closed?
Diesieben07 is basically correct. Is not impossible, i have seen a plugin mod for Mystcraft that can load a second dimension and render the view. I don't know how he did it (my method was to render the view on arrival, save it, then transmit that data when it was need).
-
Need help rendering a custom fire block
Your constructor for BlockColoredFlame never calls super. As for the crash, you overrode registerBlockIcons, but you didn't override getIcon, and BlockFire's getIcon returns an IIcon from a private array, which you didn't write into. Or allow to be initialized at all.
-
How can I make a timer for onItemRightClick? [Solved]
hold.getItem() ?
-
.
Now you're not initializing DarkBlock.
-
[1.7.10] Recipe remover mod
That sounds like your loop isn't....looping.
-
[1.7.10] Recipe remover mod
At what point in the program are you getting that? And it is correct for some points in the program: 1xitem.dyePowder@0 is a recipe result in the recipes list.
-
[1.7.10] Recipe remover mod
Start adding system.out lines to figure out what the program is doing and narrow down the line that isn't doing what you expect.
-
[1.7.10] Recipe remover mod
ItemStack.areItemStacksEqual(resultStack, recipeResult) should compare the two stacks. What seems to be the problem? Keep in mind that you have to set the resultStack stackSize and ItemDamage as well, otherwise it won't see the two stacks as equal (think about crafting torches: the result isn't 1 torch, it's 4!).
-
[1.7.10] Recipe remover mod
Config arrays are a little weird. Essentially yes, but I'd suggest having a config option you don't use that contains 3 values so there's an example of the correct syntax. I'm pretty sure the whitespace Forge adds isn't required, but it does format nicely.
IPS spam blocked by CleanTalk.