Standalone [1.3] tModLoader - A Modding API

Discussion in 'Works-in-Progress' started by blushiemagic, Jul 7, 2015.

  1. Jofairden

    Jofairden Golem

    I need to be able to craft multiple things in 1 craft.

    For example 1 soul can craft 3 souls.. Is this possible yet?
     
    Dan Yami and Modiceai like this.
  2. ok now i've got it working, not sure exactly what changed but it's working :)
     
    Dan Yami and Modiceai like this.
  3. Kronos Magniratha

    Kronos Magniratha Pixel Pirate

    Poor Tapi... No more is the world of mods revolving around you but instead a new age of inspiration and aspiring learners of the code!
     
  4. Jofairden

    Jofairden Golem

    Well this thing is really quite early.. Can't create any blocks or so.. like a custom craft station. Needs time
     
    Dan Yami and Modiceai like this.
  5. blushiemagic

    blushiemagic Retinazer

    Two main problems with gifs are that they use lossy compression, making them less desirable than pngs, and there's no simple way that I know of to read animated gifs into the program. As far as I know all animations in terrara consists of multiple frames in a single png file.

    For that you can use the stack parameter in SetResult. It's 1 by default if you don't provide a value. For example, the example mod lets you craft 15 life crystals from one dirt block.
     
    Dan Yami, Modiceai and king40606 like this.
  6. Jofairden

    Jofairden Golem

    But I need to craft 3 seperate items, not 3 times the same one.

    For example

    xyz crafts Apple
    but apple should also craft xyz
     
    Dan Yami and Modiceai like this.
  7. Chakratos

    Chakratos Terrarian

    Is there a method like "OnCraft" ?
    If yes then you could make it so that if the item is crafted give it the player the other 2 items manually
     
    Dan Yami and Modiceai like this.
  8. Jofairden

    Jofairden Golem

    That sucks though.
     
    Dan Yami and Modiceai like this.
  9. Chakratos

    Chakratos Terrarian

    Can you get multiple items from 1 craft in vanilla?

    Or you could do:

    Make a summoning Item that will spawn an enemy with 100% Drop chanche that 3 Items.

    Make a bag that will have the 3 items inside.
     
    Dan Yami and Modiceai like this.
  10. Jofairden

    Jofairden Golem

    You can, right?
     
    Dan Yami and Modiceai like this.
  11. Chakratos

    Chakratos Terrarian

    I don´t know, ive stopped playing before hardmode came out.
    But im back since yesterday and only making my Mod^^
     
    Dan Yami and Modiceai like this.
  12. superhc

    superhc Spazmatism

    *giggles uncontrollably* :naughty:
     
  13. Chakratos

    Chakratos Terrarian

    There was an Update that makes it unable to insert the Modloader into the new Terraria.exe
    So safe your already patched .exe! It will still work with the old!
     
    Dan Yami and Modiceai like this.
  14. Jofairden

    Jofairden Golem

    You mean the 1.3.0.4 update?
    Haven't tried it with that yet, 1.3.0.3 worked (with a lot of user input though :sigh:)
    Also, 1.3.1 is confirmed.
     
    Dan Yami and Modiceai like this.
  15. Chakratos

    Chakratos Terrarian

    Dan Yami and Modiceai like this.
  16. Jofairden

    Jofairden Golem

    They did change things in their connection with Steam, so OP will need to look into that.
     
    Dan Yami and Modiceai like this.
  17. Chakratos

    Chakratos Terrarian

    I hope it will be fast, already finished my Mod >_<
     
    Dan Yami and Modiceai like this.
  18. Jofairden

    Jofairden Golem

    Using this?
     
    Dan Yami and Modiceai like this.
  19. Chakratos

    Chakratos Terrarian

    Yes.
    So far:
    7 Items | 3 Pre HC / 4 HC
    4 Weapons | 2 Pre HC / 2 HC
     
    Dan Yami and Modiceai like this.
  20. Jofairden

    Jofairden Golem

    Cool! Willing to share any details? I'll try your mod if you release it :p
     
    Dan Yami and Modiceai like this.