Posts by Bamse

    No, they spawn only on unmodified chunks. Unmodified chunk is a chunk where you don't do anything (except killing animals/npcs). If cut a tree, pick a rock, destroy terrain, etc the chunk is modified, stored in db and here no longer spawn npc, including bandits! A chunk have size of 32x32 with 64 height. You can use a console command to show chunk borders.

    So, if you chop entire forest, no longer bandits spawn here.


    But we have hope next update will contain new console command resetchunk to aid to reclaim modified chunk as unmodified one and npc start spawning again ...

    When do mining what careful what hit. If reach gravel/sand and deep is under 90 height, stop asap! Keep a rake on hot bar. If fast and have a bit of luck, you can ''repair" accidentally hole if you are fast enough before water fill all.

    i think, in creative mode you can place "static" water. For survival no. For destroyed base with a bit of work you can save them. First you can place some raw materials (stone, dirt,sand, etc,,) to block water. After make a cavern under base and drill a hole to water go under base. All work depends how big is base. So for a relative small base it's easy to fix. For big base ...

    The best gold source is deep cavern around -500. Here you will find many exposed gold vein to easy collect them. Deep caves is a alternative too to find exposed gold vein.

    In next update, you will can collect water (barrel and water trough will be filled by rain).

    Red say update will be in very soon (less than 2 week).

    Hi.


    You can get biome of position of a player with help of the following BiomeHelper class:


    A command deletechunk i think will be god, If this command can be called from a plugin for a regular user (plugin will check if user can do that) i can achieve scope (reset chunk as a new one generated where animals/npc can spawn again, and delete all construction/modification of terrain done to that chunk). And of course this command must be working in MP running server. I think will not be a problem with old legacy world pre cave update, where some sectors have generated with another algorithm (because seed of chunks are saved in metadata of sector?)? I wait to have very soon that command (maybe red surprise us with next update? ;) )!


    Thx

    Yes. Or something that work on live server. One alternative is a command like deletesector but limited to only a chunk, not all sector. And after this command to can be used in plugin to reset a chunk.


    PS

    Trust me, is not funny to delete in a chunk thousands of construction elements with a hammer. After some number of construction elements in same chunk (more than 10-15k i see in my case) you have a huge lag when want to delete a individual element in that chunk.

    Hi


    I want to delete a specific chunk (x,y,z) and reset it's data as a fresh new one generated by game as chunk never was saved in db. Any hint how can i do that? I tried to find a specific method in API but i can't find one. Only idea i have is to delete data from Chunks/ChunkPart tables from chunks.db but this look ugly and i am not sure if i mess something if delete data of row of specific x,y,z. And how can delete these data with game running on MP server, how can players see new chunk, etc.

    Ultimate goal is to have a tool who can reset a chunk to default state and delete large data of constructions element ,large terrain terraforming, etc from that chunk and reclaim chunk to pool of untouched chunk where npc/animals can spawn again.


    Thx in advance.

    Hi.


    The short story:


    In old API version (0.7.0.3) vehicle.setPosition(x,y,z) work very well (when i was on rowboat at position 0,91,0 for example and move to 100,91,100, i got on right place with a very small deviance from desired position), but in latest API version this is unusable :( . For example i am on a rowboat and wanted to go to 100,91,100 from position 0,91,0 and bad surprise ... i landed at 4.8,91,4.8, very very far away from wanted location ...

    I think something changed between this versions.


    This is the start position (almost 0,90,0):

    and landed here after vehicle.setPosition(100,91,100):


    red51 Can you look at this issue?

    Thx.



    The Long story:


    In version 0.7.0.3 i wrote a plugin for a ferry travel route when in am in a boat. All was based on vehicle.setPosition with a player inside and some background threads who move vehicle along a predefined points of a route. Except some glitch at players animation, all worked flawless. But after update of latest version of game (not sure if Seasons update or Steam Update) plugin stop working properly. After some debug i isolate culprit at function vehicle.setPosition who not work anymore like in the past .


    PS:


    Some video from test area ... when plugin worked ...


    https://www.youtube.com/watch?v=Lo2Nqf6M-mk


    https://www.youtube.com/watch?v=deWG06sSY08