Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Moritz

Forge Modder
  • Joined

  • Last visited

Everything posted by Moritz

  1. Look in my sourcecode there that can help maybe! https://github.com/Speiger/DynamicTools/blob/master/spmod/dynamictools/common/Tileentities/TileAdvWorkbench.java
  2. Moritz replied to Moritz's topic in Modder Support
    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!
  3. You can not change the time. You have to replace the furnace or make your own to make a custom speed.
  4. Moritz replied to Moritz's topic in Modder Support
    Forge Modder Tell me why The f...ing hell you need to register items! It was never needed and why now?
  5. What the ....! Why do i need to register Items? What does it do? Explain it please!
  6. 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.
  7. 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.
  8. 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!
  9. lex you do not need the forge event to spawn a chest with items.
  10. Search for this in google: Minecraft Modding strench tutorials. Its a page in minecraftforum
  11. 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)?
  12. 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.
  13. 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.
  14. Moritz replied to Moritz's topic in Modder Support
    Thanks. Ill read the text. Video watching is at my side a critical theme.
  15. 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.
  16. 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.
  17. 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
  18. 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!
  19. You mean it like this: public boolean onBlockStartBreak() { if(ticks == 0) { --ItemStack.stacksize; addItemStackToInventory(new ItemStack(this, this.damage).addEnchantment(restofIt)); } }
  20. 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; }
  21. 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)?
  22. 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.
  23. 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)
  24. 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!

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.