Everything posted by Draco18s
-
Mod crashes when I try to place a custom fire block
Ok, at this point either: a) it will work or b) there will be a console error telling you what image could not be found. Do double check that your meta files have the exact same name as the png, but with ".mcmeta" on the end, after the ".png". Bad: fireBlack_Layer0.png fireBlack_layer_0.png.mcmeta //missing _ fireBlack_layer_0.mcmeta //missing .png fireblack_layer0.png.mcmeta //different casing Good: fireBlack_Layer0.png fireBlack_layer0.png.mcmeta
-
[1.7.2] ResourceLocation Problem (Techne Model)
@Override public void renderItem(ItemRenderType type, ItemStack item, Object... data) { if(type == IItemRenderer.ItemRenderType.ENTITY) { GL11.glTranslatef(-0.5F, 0.0F, -0.5F); this.render.renderTileEntityAt(this.entity, 0.0D, 0.0D, 0.0D, 0.0F); } } I do not see a case for type == IItemRenderer.ItemRenderType.INVENTORY
-
Mod crashes when I try to place a custom fire block
Would you mean this class: package com.wolfamaril.coloredflame.block; public class BlockFireColoredBlack extends BlockFireColoredBase { public BlockFireColoredBlack() { super(); this.setBlockName("fireBlack"); } } Because if so, I do not see any calls to set the texture name.
-
Mod crashes when I try to place a custom fire block
When you aren't even calling setTextureName, even after I tell you twice what you need to do so, I can't tell you what string you need to use to fix a missing texture problem. You're using getTextureName in your IIcon registration, ergo you need to use setTextureName.
-
[1.7.2] ResourceLocation Problem (Techne Model)
You didn't show your ItemRenderSuperWorkbench class
-
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.
IPS spam blocked by CleanTalk.