Simple Modding Q&As

Discussion in 'Mod Development' started by Strikingwolf, Sep 17, 2014.

  1. Strikingwolf

    Strikingwolf New Member

    This is intended to be a thread to ask simple questions

    I'll start us off. How would I turn "minecraft:rotten_flesh" into Items.rotten_flesh in my code (and have "minecraft:rotten_flesh" changeable in configs)
     
  2. Gideonseymour

    Gideonseymour Relatable Gamer Trusted User Retired Staff

    How 'bout Simple Modding Questions and Answers?
     
  3. Strikingwolf

    Strikingwolf New Member

    Why you come up with something better than me. :p
     
  4. CarbonBasedGhost

    CarbonBasedGhost New Member

    Why would you ever need to do this? If you give me a scenario I think I can help you out.
     
  5. Gideonseymour

    Gideonseymour Relatable Gamer Trusted User Retired Staff

    Editable mob drops. Because Mob Properties is broken with 1.7.10 IDs.
     
  6. Strikingwolf

    Strikingwolf New Member

    I am trying to make a mod where you adjust mob drops based on config files. And since Forge has limited support for variables I was going to try to use StringLists and convert to ints (Frequency, #, etc.), but I can't figure out items
    You ninjas...
     
  7. HeilMewTwo

    HeilMewTwo New Member

    Not sure if I should make a new thread to ask this. But could anyone tell me what kind of coding I would have to use to make a button press shrink the player's hitbox and look while also scaling the POV?
     
  8. Strikingwolf

    Strikingwolf New Member

    Does it sound simple :p I think that might be a whole thread. Although, what do I know
     
  9. CarbonBasedGhost

    CarbonBasedGhost New Member

    If there is an event that returns the point of view you will want to use that and an event that rertuns the hitbox you will want to use aswell. Look into the player class.
     
  10. HeilMewTwo

    HeilMewTwo New Member

    Thanks, I'll see what I can find.
     
  11. chbachman

    chbachman Guest

    Item.getItemFromStrijg or something like that I think.
     
  12. goldenapple

    goldenapple Well-Known Member Mod Developer

    Here's my question: I've heard that Minecraft has a "Debug Mode" that allows you to edit code in real-time without having to restart it every time. But how do I do it? (using Idea)
     
    Last edited: Sep 19, 2014
  13. Strikingwolf

    Strikingwolf New Member

    Yeah I found it, I am just working out some small...things in my code right now. After that I will be doing a lot of C&P to get all the mobs working
     
  14. Democretes

    Democretes New Member

    IDEA, if it's anything like eclipse, should have a debug mode. Just run the program in this mode and should auto update minecraft as stuff changes. You have to pause it though if you're doing anything but changes values.
     
  15. Wavebrother

    Wavebrother New Member

    Can someone help me? Eclipse does not show the Minecraft client as a program. When I click on run there is no "Client".
     
  16. SatanicSanta

    SatanicSanta New Member

    Edit your run configurations.
     
  17. Wavebrother

    Wavebrother New Member

    How exactly? I might have done that already.
     
  18. SatanicSanta

    SatanicSanta New Member

    I don't remember. I haven't had to do it in over a year, and I use IDEA now too *shrug*

    Best bet at this point would be to Google it, you're bound to find something.
     
  19. Wavebrother

    Wavebrother New Member

    I have googled it. I haven't found anything. Please help because I want to get back to coding but I cant test to see if it works. :(
    PS: This happened right after I tried uploading to Github.
     
  20. Strikingwolf

    Strikingwolf New Member

    Use IDEA jk :p, but in all honesty it is a better IDE
     

Share This Page