Everything posted by Moritz
-
Longer Smelting Times
Look in my sourcecode there that can help maybe! https://github.com/Speiger/DynamicTools/blob/master/spmod/dynamictools/common/Tileentities/TileAdvWorkbench.java
-
Register Item?
Ok. But this is a function is very Buggy! When you change something it makes the world useless! Item missmatch is the error what will be showen! Thats why i will no use this function!
-
Longer Smelting Times
You can not change the time. You have to replace the furnace or make your own to make a custom speed.
-
Register Item?
Forge Modder Tell me why The f...ing hell you need to register items! It was never needed and why now?
-
Register Item?
What the ....! Why do i need to register Items? What does it do? Explain it please!
-
SubItems with Damage
I found a way to add meta tools. But the repair recipes in vanilla minecraft does not work. and this is the way how i add it. public class ItemMetaTool extends Item { private int damage = 0; private int maxDamage1; public ItemMetaTool(int id, int max) { super(id); setHasSubtypes(true); setMaxDamage(0); maxDamage = max; } public boolean onDistroyBlock(......) { damage++; return true; } public boolean onHitEntity(......) { damage += 2; return true; } public void onUpdate(ItemStack par1, World par2, Entity par3, int par4, boolean par5) { if(par5) //Holding in the hand { if(damage > maxDamage) { --par1.stackSize; } } else //Not holding in the hand { if(damage > maxDamage) { --par1.stackSize; } } } } with that you can have meta items. but they have to be the same damge. but this is an idea.
-
How to: Link an external library
What do you mean with external lib? i know what external is and what lib is but the combination of it is for me new.
-
Decompile a mod
Dark ninja you do not need the server side because after 1.2.5 the client = Server & Client. This means do only the client side and you have both sides!
-
adding an item to a generated chest? [halted]
lex you do not need the forge event to spawn a chest with items.
-
adding an item to a generated chest? [halted]
Search for this in google: Minecraft Modding strench tutorials. Its a page in minecraftforum
-
Gui to Edit Tile Entity Data
I have no clue what the problem is. But i am interesstet to your mod! Can you show us the whole block: (I mean Block, Container, Gui, TileEntity)?
-
Decompile a mod
Dark ninjya when the mcp say class not found then you have to look which mod is this implementing? Industrialcraft needs for decompile these mods: Forge/Modloader, Chickenbonescore, NotEnoughtItems, Craftingguild, Buildcraft 2/3 without these he would tell class not found.
-
[Unsolved]Custom furnace recipe stuff
I know that you got an answer. But the basic Furnace make it like so: If it can update: check is fuel inside. If true = make fuel smaller check if is a item/block inside which can be smelted. While true and there is fuel inside the integer start to cook. if the fuel == null getFuel. this is what the furnace do. minecraft is complex you have to understand what you are doing. That does not mean if you are do not understanding go away from that. But its better when you have a little clue from that. I did made my first own furnace. its a little bit easier to understand. Because it is working under a other way. https://github.com/Speiger/DynamicTools/blob/master/spmod/dynamictools/common/Tileentities/TileAdvWorkbench.java this furnace (3 slot input = slot 1 output) is a littlebit easier to understand. at the get fuel i experiment something so you only need the if and not the else if. i hope that helps you.
-
Packet handler
Thanks. Ill read the text. Video watching is at my side a critical theme.
-
Packet handler
Why does we need a packet handler. What does it do? How can i use it? How can a programming noob use it with understanding it? Who can explain that? I do not read the tutorial from Forgeforum. Because it is me to much in a line. Do this this this and your done. I want to know what does happen when i do this and not that.
-
[Unsolved]Custom structures inside hillsides (not hillsbiomes, but hillsides)
You also have to check is air there because. It could spawn in a cave. Also you have to set the minimum worldhight of the spawn. i do not mean null. I mean Spawnhight of the structure. i hope that helps too.
-
How to remove enchantments from items?
thanks ill try!
-
Decompile a mod
First the Rules of Minecraft Modding: Every Mod must be Free! No Mod has be a owner (He can say that only one does read him) And a view other things. You can decompile every mod with the basic MCP. First install the basic MCP (Without Forge!) Put everything what the mod need in the minecraftjar! Put the mod into the minecraftjar! Start Decompile.bat! the mod will be decompiled. I did it with IC2, Forestry, Buildcraft,,Railcraft, notEnoughItems, Craftingguild, Redpower2 all in 1.2.5
-
How to remove enchantments from items?
You mean it like this: public boolean onBlockStartBreak() { if(ticks == 0) { --ItemStack.stacksize; addItemStackToInventory(new ItemStack(this, this.damage).addEnchantment(restofIt)); } } But i do not want to make for every tool a class. I want a itemtoolclass for every basic tool. There is a way to remove a list. Or something inside of the list. So there could be a way to remove enchantment!
-
How to remove enchantments from items?
You mean it like this: public boolean onBlockStartBreak() { if(ticks == 0) { --ItemStack.stacksize; addItemStackToInventory(new ItemStack(this, this.damage).addEnchantment(restofIt)); } }
-
How do I open a gui on item rightclick?
I used this code and it fail. DTGuis.advancedToolBenchID = 3; public ItemStack onItemRightClick(ItemStack par1, World par2, EntityPlayer par3) { par3.openGui(DynamicTools.instance, DTGuis.advancedToolBenchID, par3.worldobj, (int)par3.Xcoord, (int)par3.Ycoord, (int)par3.Zcoord); return par1; }
-
How do I open a gui on item rightclick?
I have the same question with the rigthclickItem = Open gui event. But this tutorial is only for Blocks. Not for items. So how can i open Guis with the function onItemRightClick(ItemStack par1, World par2, EntityPlayer par3)?
-
How to remove enchantments from items?
I did override the text. I did not mean delete enchantments from the game. I only want to know how to delete them from a item like this: int enchantedTime = 500; boolean isEnchanted = true; if(!entchantedtime > 0 && isEnchanted) { removeEnchantments(); removeEnchantment(Enchantment.SilkTouch, 3()) } this is what i want to do.
-
How to remove enchantments from items?
Hello. My mod Dynamic Tools uses the basic Enchantments but i want to make them Time/Uses Based. This means they are Holding only a view Uses/Ticks and then the remove itself. I want to use the function onBlockStartBreak for this. but i have no clue how to remove them when you are using the item. I know i have to read the list and then delete them! But i do not know how to do this. How can i remove enchantments from items? (Lists or 1 By 1)
-
[Unsolved] Biome Specific Ore Generation?
If you want to know how to spawn look how an emerald spawns. Because it spawns in a hillsbiom. Try to make it the same way without touching the classes. if its wrong. It was an idea. This is the way how i make something! Look at other mods/In the core classes (minecraft) and learn!
IPS spam blocked by CleanTalk.