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.

Mazetar

Forge Modder
  • Joined

  • Last visited

Everything posted by Mazetar

  1. [lmgtfy=forge tutorial armor]Heres an armor tutorial[/lmgtfy] Click link and then read spoiler.
  2. 1. Learn some programming 2. Google it, new swords and armor's are the most common tutorial made next to the basic block.
  3. vandy22: http://thenewboston.org/list.php?cat=31
  4. why does it not, what prevents it from hitting that line of code? and justa s important: Do you understand what it would do IF it hit that line?
  5. let me be even more specific inn my question: What happends when THIS line is run? }else if ((this instanceof BullEntity) && (entity instanceof EntityCow)){ Do you know what this code is checking for?
  6. Thats not what I asked, I asked what happends when the code execute, when the code runs. What happends the exact moment each line of code runs trough the method? Not what you see in-game but what do you see inn the code when it checks cow against bull? If you can't tell me this, I promise you what you really need above and before all is to learn some programming somewhere before modding a game..
  7. inn your mod file where @mod is located, you should have an @instance annotation above a variable named instance, thats the one you want to pass into the method.
  8. There is no tutorial for this kinds of stuff. this is the place where tutorials ends and you get to use your knowledge of Java and forge to invent cool code, logic and working concepts! If you use the code already inn minecraft for wolfs and cats, combine that with a mastery of programming basics, and you should be able to figure out someway to do it yourself If you can't I suggest you start working on some Java or other programming tutorials and lectures. Good luck
  9. nothing happends? as inn the code is never called? the breakpoints never seems to be passed or?
  10. When u debugged the canmatewith method which you overrided, what happend when it was called?
  11. How about telling us what you have tried?
  12. Myitem itemofMine; itemofMine = new MyItem(itemID, TextureIDHere); What you enter as the texture ID is what slot number it will use inn the file. The file it will use is wahtever yout old it to use inn the item or block's getTextureFile() method. Please read the above tutorial and this one: http://www.minecraftforge.net/wiki/Tutorials/Basic_Items The last one should tell you everything you want to know
  13. You create a .png file which is 256x256 in size. You let the first of your textures be at position 0,0 which would be top left. Since all textures are 16px wide and tall there should be space for 16 textures on each line. The first texture has the ID of 0, the last one on the first line has ID 15. And the first one on the second row would be ID 16 and so on.
  14. So are we! It's not only you, but a lot of people here are talking about things they don't understand. it's fine to help people but when someone points out that you are wrong yourself. Then check your statements, test your code and see that it works before you turn around to yell back at them. What was said above was in simple terms: The problems here are with the basics, please everyone go learn some more java and this will be solved. For you tuskiomi: I'm sorry if you feel that I'm being rude towards you, that was not my intention. My intentions was to tell you that you need to learn a few things about the basics inn order for you to understand what you are doing when you are modding or talking about code at all
  15. Which was the point made above. How can code which you don't understand help solve the problem? The whole code is just speculation without any idea on how programming works at all. If you don't know why x and xcoord is different or what xcoord is, then how can you write code using them to solve a problem involving them? The whole point here was that the problems inn this thread and with the answers is that they lack understanding of what the code is doing, not due to being unfamiliar with the way Forge handles generation but with understanding the basics of programming. Even just the basics of any language like C++ or Java or C# would have shown why the code above won't work at all regardless of how the Forge API and minecraft code works.
  16. I think you are missing the point, did you test the code? no, I guess not because then you would have tried to figure out why it won't work instead of responding like that. Have you read the code? do you understand what the code is actually doing?
  17. check the tutorial made just for that! http://www.minecraftforge.net/wiki/Icons_and_Textures
  18. When porting from ML to forge I found it easier to rewrite In any case have you looked into the forge tutorials on the wiki for GUI's?
  19. hes right, there's nothing to speculate about the code posted won't work and if you want proof either run the code or learn basics of programming.
  20. yes, but not without an good foundation of basics. You will need to devout a lot of your time to learning programming and Java before you start with this project
  21. Ah that texture is quite weird, but it's the "Error texture". This is the texture your block gets when it couldn't find the texture you told it to have. So you should check your code for what path you told it to find your texture inn, and for where you have it saved innside your MCP folders.
  22. What does this line inn the error log mean to you?
  23. You forgot to set syntax highlighting to Java, so it's all black and white Heres the @mod file fixed: http://pastebin.com/QaXvYWfU the other one(onItemUse): http://pastebin.com/hvfPrJkH Okay I stopped there after looking at your Block file, I have no idea what's going on, it seems like a new mod file again? Also the line you said is playing the sound, ain't playing sound it is just instantiating a new ItemEPRecord to the variable GCRecord?
  24. I guess something changed that made your new config file empty for some reason. As to how and why it's hard to say without the normal drill of looking at your code like we did last time, it's probably some typo or something somewhere that makes it all act weird So how is your @mod file now and how is your base item class file etc.? remember pastbin.com or paste.minecraftforge.net ^^
  25. Minecraft will soon(as of 1.5) have separate .png files for EVERY block! Take a look at http://www.minecraftwiki.net/wiki/Texture_Packs#Textures_for_Blocks_and_Items_in_Minecraft_1.5 for more information on the new system, it's pretty awesome and will allow for easily custom animated block textures!

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.