My Little Mod "Item Kit"

Home Forums Wayward My Little Mod "Item Kit"

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #4188
    burakalkan
    Member

    I’m make a mod but have 1-2 errors,

    [1.6]

    http://s23.postimg.org/ow34xuw0r/mod.jpg

    this is .json code

    http://www.mediafire.com/view/h625qjq9l9a062u/Item%20Kit%20By%20Burakalkan.js

    and download link

    http://www.mediafire.com/download/h625qjq9l9a062u/Item+Kit+By+Burakalkan.js

    Sorry My English is bad :-/

    • This topic was modified 6 years, 9 months ago by burakalkan.
    • This topic was modified 6 years, 9 months ago by burakalkan.
    #4192
    Grom PE
    Moderator

    Some item names are incorrect, that’s why you’re getting errors.

    #4195
    burakalkan
    Member

    yep, idk some item names; wooden door,wooden wall, wooden chest etc. where can i find correct names?

    #4197

    In your browser console, you can type in console.log(items); to get a proper listing.

    #4206
    JamesIII
    Moderator

    Is there a way to do the same thing to get a list of the all the current monsters with proper names?

    #4207

    Not sure what you mean by proper names, but you could do:
    for (var i in npcs) { console.log(npcs[i].name); }

    Otherwise, just:
    console.log(npcs);

    Should suffice.

    #4208
    burakalkan
    Member

    Hey what’s spawn monster command?

    or pls how to find commands?
    like
    $("#optionswindow").on("click", '#carving', function(e) {itemGet("shale");});

    #4247

    There’s no proper API or modding documentation as of yet, so it’s just mostly looking through the source to find em’ ๐Ÿ™‚

    Spawn monster can be used like:

    spawnMonster("", player.x+1, player.y);
    spawnMonster("giantrat", player.x+1, player.y);
    spawnMonster("pirateghost", player.x+1, player.y, true);

    The last parameter “true” forces the spawn, even if the monster shouldn’t normally be spawned in that location.

    #4263
    JamesIII
    Moderator

    The renderTiles function no longer seems to work, is there a new method of tile manipulation that was implented? If so, could you give me an example of how to render a specific tile now?

    #4268

    It’s now:

    changeTile(change, changeX, changeY, stackBypass);

    Parameters:
    change: tile’s name, example “dirt”.
    changeX: tile’s x value, example 244.
    changeY: tile’s y value, example 244.
    stackBypass: either true or false (or nothing), if true, it will place the tile on top of the stack of tiles at that x/y.

    You may also want to call game.updateTiles = true; so the change is shown immediately.

    #4271
    JamesIII
    Moderator

    Would modifying the space 1 square above your current still be done as changeTile(dirt,x,y+1);?
    I only ask because 244 seemed like a rather large number to use.

    #4289

    Using it like player.x, player.y+1 for example would still work just fine with it.

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.