Jump to content

Speiger

Members
  • Posts

    66
  • Joined

  • Last visited

Everything posted by Speiger

  1. Same at me i can test my code all few days. thanks . search at forge.
  2. Retexted. ok lex at the second time i understand it. but if i make an tool what have 10000 uses than i would make 10000 tools. maybe you think im silly. im a little not normal but im not silly. the mod make it abel to use the real hardness of the tool. and there is an repair value in it (not like ee) you get the chance to get the item which is not full damaged back when the tool break . (stick have 200 uses pick have 300 uses. = chance to get the pick back) but if you get the pick back then i can't say then you get the 300 uses back that is cheating. thats why i want to make this. 300 uses equal 300 items. and if there is a way to simulate a pick then i use it because with an metadata pickaxe i can craft the pick at every damage. understand? and the things i need the item drop from metadata items and how to simulate tools with metadata. with tools i mean pick , shovel , axe, hoe. thanks for reading.
  3. If you mean the enumtool material than the mod youses to much ids. and if you mean something differend than what do you mean with that.
  4. item stone axe. (id 1500:50) distroy block (id 1500:49) hit entity (id 1500:48) this was showing prosses of this what i think. how can i make it to work like this? what do i have to add to this? if(i==50) { }
  5. I know how broken it is but i think and this is the way how i use it. do it first with modloader and when it near to release time than change to forge. why this? because you can never know if there comes an update/new problems in that time you build your mod. my mod work with modloader. but soon i change to forge (really easier to make).
  6. Where? i read the item.java so much if i read it a few times more then i can say what is an the data without reading them.
  7. I think to know how it works. i use the drop from blocks in my tools mod.
  8. wow em i do not work with forge at the moment. but there are a lot of tutorials for the basement. i use them to check my code. check it out. www.minecraftforum.net/topic/929151-moddingmodloaderforge-api-jotamotas-tutorials/ this is a tut about metadata items and blocks with and without forge. Thir is for textures. i hope it help.
  9. here is the rest of the testcode. combine them: testItem.iconIndex = ModLoader.addOverride("/gui/items.png"), /Testfolder/testitem.png"); ModLoader.addRecipe(new ItenStack(mod_Test.testItem, 1), new Object[] { "#", Character.valueOf('#'), Block.dirt }); ModLoader.addRecipe(new ItemStack(mod_Test.testBlock, 1), new Object[] { "##", Character.valueOf('#'), Block.dirt }); } } this was the code. and you need to reformat it i hope i could help.
  10. at the moment i do not use forge for textures. but i can explain it with modloader for u. this is only used for normal items/blocks not metadata items/blocks: first the textures or textur folders come into bin/minecraft folder i think. in the folder where the texturs come are two other datas and there comes the textures. an now i explain it how to use textures in your mod. i make a new mod data for this you only have to reformat it: package net.minecraft.src public class mod_Test extends BaseMod { public static Item testItem = new ItemTestItem(itemid).setItemName("testItem"); public static Block testBlock = new BlockTestBlock(blockid, 0).setHardness(5F).setResistance(5F).setStepSound(soundStoneFootstep).setBlockName("testBlock"); public void load() { ModLoader.RegisterBlock(testBlock); ModLoader.addName(testBlock, "The Test Block"; ModLoader.addName(testItem, "The Test Item"; } testBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/TestBlock.png");
  11. There is no breaking sound. in the item datas.
  12. I have see this in forestry. the survival pickaxe until it breaks you get an broken survival pickaxe. and i had search in the minecraft jar for the code. but there is only 1 code with drops and i can't believe it that would work if i use the code from block.java. thanks for reading and i hope someone can help me.
  13. found the problem currupt jar. (but is in the code something wrong tell it please)
  14. Now i made a testing code. with all i have at the moment inside: mod.data package net.minecraft.src; import java.util.Random; import net.minecraft.client.Minecraft; //Mod Made By Speiger public class mod_DynamicTools extends BaseMod { //Blöcke //Items public static Item woodPick = new ItemWoodPick(5000).setItemName("woodPick"); @Override public String getVersion() { return "0.1"; } //WoodenPick public static int woodPick2 = ModLoader.addOverride("/gui/items.png", "/Spmod/Tools/WoodenPick.png"); public static int woodPick3 = ModLoader.addOverride("/gui/items.png", "/Spmod/Tools/WoodenPick.png"); public static int woodPick4 = ModLoader.addOverride("/gui/items.png", "/Spmod/Tools/WoodenPick.png"); @Override public void load() { ModLoader.addName(new ItemStack(mod_DynamicTools.woodPick, 1, 0), "Wood Pick"); ModLoader.addName(new ItemStack(mod_DynamicTools.woodPick, 1, 1), "Wood Pick"); ModLoader.addName(new ItemStack(mod_DynamicTools.woodPick, 1, 2), "Wood Pick"); } } Item.data package net.minecraft.src; public class ItemWoodPick extends Item { public ItemWoodPick(int id) { super(id); setHasSubtypes(true); setMaxDamage(0); } private String[] names = new String[]{"use1", "use2", "use3"}; //private String[] names = new String[]{" 0 ", " 1 ", " 2 "}; public String getItemNameIS(ItemStack itemstack) { return names[itemstack.getItemDamage()]; } public int getIconFromDamage(int i) { if(i==0) { setMaxStackSize(10); return mod_DynamicTools.woodPick1; } if(i==1) { setMaxStackSize(10); return mod_DynamicTools.woodPick2; } if(i==2) { setMaxStackSize(10); return mod_DynamicTools.woodPick3; } else { setMaxStackSize(10); return mod_DynamicTools.woodPick4; } } } Error Code: == MCP 6.2 (data: 6.2, client: 1.2.5, server: 1.2.5) == # found jad, jad patches, ff patches, osx patches, srgs, name csvs, doc csvs, pa ram csvs, astyle, astyle config == Recompiling client == > Cleaning bin > Recompiling '"C:\Programme\Java\jdk1.6.0_25\bin\javac" -Xlint:-options -deprecation -g -sour ce 1.6 -target 1.6 -c...' failed : 1 == ERRORS FOUND == src\minecraft\net\minecraft\src\ItemWoodPick.java:10: cannot find symbol symbol : method setHasSubtypes(boolean) location: class net.minecraft.src.ItemWoodPick setHasSubtypes(true); ^ src\minecraft\net\minecraft\src\ItemWoodPick.java:11: cannot find symbol symbol : method setMaxDamage(int) location: class net.minecraft.src.ItemWoodPick setMaxDamage(0); ^ src\minecraft\net\minecraft\src\ItemWoodPick.java:19: cannot find symbol symbol : method getItemDamage() location: class net.minecraft.src.ItemStack return names[itemstack.getItemDamage()]; ^ src\minecraft\net\minecraft\src\ItemWoodPick.java:26: cannot find symbol symbol : method setMaxStackSize(int) location: class net.minecraft.src.ItemWoodPick setMaxStackSize(10); ^ src\minecraft\net\minecraft\src\ItemWoodPick.java:27: cannot find symbol symbol : variable woodPick1 location: class net.minecraft.src.mod_DynamicTools return mod_DynamicTools.woodPick1; ^ src\minecraft\net\minecraft\src\ItemWoodPick.java:31: cannot find symbol symbol : method setMaxStackSize(int) location: class net.minecraft.src.ItemWoodPick setMaxStackSize(10); ^ src\minecraft\net\minecraft\src\ItemWoodPick.java:36: cannot find symbol symbol : method setMaxStackSize(int) location: class net.minecraft.src.ItemWoodPick setMaxStackSize(10); ^ src\minecraft\net\minecraft\src\ItemWoodPick.java:41: cannot find symbol symbol : method setMaxStackSize(int) location: class net.minecraft.src.ItemWoodPick setMaxStackSize(10); ^ src\minecraft\net\minecraft\src\mod_DynamicTools.java:20: cannot find symbol symbol : method setItemName(java.lang.String) location: class net.minecraft.src.ItemWoodPick public static Item woodPick = new ItemWoodPick(5000).setItemName("woodPick"); ^ 9 errors ================== !! Can not find server sources, try decompiling !! (german)Drücken Sie eine beliebige Taste . . .
  15. Thanks it helpt a lot . but two things. this is at the moment a little over my skill. and i explain my mod now. this mod you build a stick which hold 1000 uses and a pickhead which hold 1500 uses. and when you build the pickaxe it will hold 1000 uses and when it breaks you get the stick back which is damaged and when you use it to craft it the tool will max hold 500 uses. this was my idea and i need the damaged crafting because if not i have to do thousend of thousend enumtools material datas.
  16. Np. this a basement modloader. tutorials of this type are like sand on a beach. (german joke)
  17. first: thanks. second: i have my own repair recipe. third: i do not use swords. that comes later. forth: what the f..k i need to extract the code. and you help me a lot. i do ask nearby a little things. thanks thanks thanks thanks.
  18. I don't know how much you have done. but i would program it like that. make a new container.blabla. and a new gui.blabla and than a new time of item with an rightclick function that open the container with gui. i do not know if it is write but that ok. and cbj have a backpack and is an opensource. hope helped.
  19. I think the hole night about this and see a few problems. the breaking point. the point there point breaks. like this (id 1500:45000 crafted id 1500:40000 break the tool) how can i do this? (nearby i look to build drops in. but this is confusing).
  20. Are you using 4096 blockids? if not look at the id of the block. 500. normal it is to 255 that could be the problem.
  21. First of all the second reply i didnt understand anything completly. but i know what you want to tell me. and to the first reply. This bring me to an idea. if i do the metadata as uses for a pick? i mean 1 full metadata with the same pick because this was my idea. make the minecraft tools realistic damage value. but would that work? i mean the item metadata as damage value? (if that work) how can i say this metadatas all picks and this all shovels? and thank you for the answer. between my knowledge of this language is not the best same in the modding but im learning and searching for informations so fast as i can. thats why i ask if my idea with metadata would work how can i make it. i mean to show the damage which left do i know a little. i have more questions but i wait with that when the next answer comes.
  22. First: the 1, 1 behind the bread is an damage valve that do not exist in the normal minecraft (tell me if im wrong.) and the code must so(i could not do it in the right format with my mobil phone) package net.minecraft.src public class mod_... extends BaseMod { @Override public void load() { Modloader.AddSmelting(Item.wheat.shiftedIndex, new ItemStack(Item.bread)); } @Override public String getVersion() { return "0.1"; } } So this the code for the modloader furnace recipe. You should do the code in the right format. I hope i could help you. This is for 1.2.5
  23. hi i have some questions about metadata. Can i add metadata tools? like this pickaxe (id 500:1) have 10 uses and the other pickaxe (500:2) have 1000 uses? how can i do it. because i have to do it (if it work) to this id (item... 500:10000). seems really oversized or? but this is the need of my mod Idea. i hope i explained not to confused and say thanks to anyone who can help me. between this is not a mod like infinitcraft because i do not add new tools i make the vanilla a little bit differend.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.