Everything posted by Moritz
-
Overriding tool/weapon recipes??
You can remove recipes: Terrafirma Craft is an opensource mod. In their class (TerraFirmaCraft) is a removeRecipe function. Copy it and use it!
-
[1.4.7] On Death (EntityPlayer)
I got not enought time to explain it thats why the extra answer now. I want a very rare item which is so powerful and a recipe is with technik mods to easy to cheating (like ee3 with transmutation) and i do not want a recipe which requier 9 diamond blocks. Thats why i want to get this drop only that the player dies. But than the player could make a suicide and get this item very often. Thats why i think in a special time will prevent people from doing that. But my drop is not rare enough for that. I mean with this item you can make item/blocks turn into exp. Thats why i think i want to detect it have to be a special day (the night where fullmoon is) And that is my first question: Is it possible to make a player drops an item when the moon is a fullmoon and the time is (maybe 18 clock (ingametime)) secon question is: Is it possible to make that the player have also the exp (1000 or bigger?)? And howw can i do it?
-
[1.4.7] On Death (EntityPlayer)
Ok it works but the drop is me not rare enought now a new idea. Is a possible to detect if the moon is a full moon?
-
[1.4.7] Redstone energycell, RedpowerBatterieBox and the batterie out of fs.
how to store the storage is not my problem. My problem is how to transfer it between Item and block. (Both ways).
-
[1.4.7] Redstone energycell, RedpowerBatterieBox and the batterie out of fs.
I hope you understand what they have togehter. The save their energie in the items to. How are they doing that? Meta could not possible (at blockside)
-
Config Array?
No he asked how can i make an enumtoolmaterial configabel. so that you can change the toolstrenth, speed and how long it holds.
-
Config Array?
You do not need a enumTools material to make a tool. you can make your own toolclass like this: public class TestTool extends Item { float ToolSpeed; float minspeed; public Testool(int id, int uses, int speed, int speedmin) { super(id); setMaxDamage(uses); ToolSpeed = (float)speed; minspeed = (float)speedmin; } public float getStrVsBlock(ItemStack stack, Block block) { return minspeed; } public float getStrVsBlock(ItemStack stack, Block block, int meta) { if (ForgeHooks.isToolEffective(stack, block, meta)) { return ToolSpeed; } return getStrVsBlock(stack, block); } } this is a way to add tools without enumtoolmaterial (at the moment i have no enchantmentsensitive version of it) . And the item have to look like this: public static int miningSpeed = 10; public static int minSpeed = 1; public static int uses = 1000; public static int toolstrenth = 3; public static int id = 10000; public static Item testTool = (new TestTool(id, uses, miningspeed, minspeed)); MinecraftForge.setToolClass(testTool, "pickaxe", toolstrenth); and the integer you can make configs with it ^^ Hope it helps.
-
[1.4.7] On Death (EntityPlayer)
both codes worked pretty good. I used the last one. Because its a little bit cleaner. Thanks for the help. but now a hard question. Is it possible to make this drop based on time? I want to get this drop only at night (so that people have to wait until they get the next rare drop .)
-
Inventory Size changing ingame (maxstacksize)
Is it possible to change the maxstacksize on a inventory (like a chest) with an redstone signal?
-
[1.4.7] Bug with Textures
hmmm i think i know what you mean. I need time for testing. If i understood you right i know what i have to do. Sry but my language is limited and sometimes i need a push into the right way and then it needs time to understand (and reading sources)
-
Redstone is buggy!
Hello i did find out how to makes a redstone Signal. And it works very well. But i have 1 problem. It must have a block between the redstonewire and the block (that provides the redstone signal) else there would be no signal! here is my sourcecode: https://github.com/Speiger/DynamicTools/blob/master/spmod_common/speiger/src/tinychest/common/blocks/BlockAdvTinyChest.java so how can i fix it?
-
[1.4.7] Bug with Textures
ok i implemented the two functions in the class now the rest i do not understand? what do you mean with this: In getDescriptionPacket create a new NBTTagCompound. Store all the data you need on the client into that NBT and what do you mean with that? (if the customParam from the Packet [see below] is enough, just make this null). Then return a new Packet132TileEntityData. The constructor parameters are x, y, z (there are fields for that in the TileEntity), customParam (can be a number between -128 and +127, you can use this for your facing), yourNBTTagCompound (may be null if you don't need one).
-
How to make an item open a GUI
Pahimar implemented a Portable workbench in EE3. Search for "Pahimar Github" at google. His mod is an open source.
-
[1.4.7] Bug with Textures
Do you mean i have to implement this code? I copied out of Mekanismen. @Override public void setFacing(short direction) { if(canSetFacing(direction)) { facing = direction; } PacketHandler.sendTileEntityPacketToClients(this, 0, getNetworkedData(new ArrayList())); } @Override public void handlePacketData(ByteArrayDataInput dataStream) { facing = dataStream.readInt(); worldObj.markBlockForRenderUpdate(xCoord, yCoord, zCoord); worldObj.updateAllLightTypes(xCoord, yCoord, zCoord); } @Override public ArrayList getNetworkedData(ArrayList data) { data.add(facing); return data; }
-
[1.4.7] On Death (EntityPlayer)
Thanks for the answerring. I see there is a problem. Somebody made for this another class and someone said that its easier if you implement it in your modfile. For myself i would use the extra class beacuse its more clean and i find everything faster. So i hope that the code works .
-
[1.4.7] Bug with Textures
I never worked with packetdata/handler! I do not know how to use it right! Thats my problem. I read the source of IronChest2 to understand it. But no luck. So how can i use the packets thing that this bug does no longer stay. (Because i want to make a block that use the facing!)
-
[1.4.7] Bug with Textures
I did write Packet Handler ore Packet datas! And i know that you write that i do not need this. I do not understand anything with packet datas. I have to read the source of it (bzw (german word) the classes) I tell you what i do not understand when i read them!
-
[1.4.7] On Death (EntityPlayer)
I want to drop an item when the player die. I know how it works with overriding the EntityPlayer Class. But i need how it works without overriding the class. How does it work? No random drop!
-
[1.4.7] Bug with Textures
I have no clue about Packet Handlers datas and everything. With this i would make a try and error and i would fail with this. And there is no good tutorial with packetdata. (I mean with explaining). I have problems with implement something which i do not understand!
-
[1.4.7] Bug with Textures
Problem!!!!!!!!!! I have no Clue about Packethandlers! I never worked with them. I need a very good tutorial which explain everything not like this: You have to do this and this and this. For me its to much planed tutorial. (Step 1 do this Step 2 do that. Now you are finish. But what did i do there?)
-
[Unsolved] Problems with Inventories
Who can read is two steps for everyone. I read much mod sources every day to find a fix or learn something. Your Source too. Eloraams too . But her is in my eyes very unclean! Ic2 Is cleaner
-
[1.4.7] Bug with Textures
Here is my source of my TinyChest mod: https://github.com/Speiger/DynamicTools/tree/master/spmod_common/speiger/src/tinychest/common The TileEntityAdvancedTinyChest does not have the static facing: https://github.com/Speiger/DynamicTools/blob/master/spmod_common/speiger/src/tinychest/common/tileentity/TileEntityAdvancedTinyChest.java But both have the facing problems
-
[1.4.7] Bug with Textures
Please explain me how to fix the problem.
-
[1.4.7] Bug with Textures
i did try it without static. Same result!
-
[1.4.7] Bug with Textures
Ok i do not know how it works but the class works but only the facing is not working! If i am using it wrong than explain it to me.
IPS spam blocked by CleanTalk.