1. NOTE: These forums are no longer used. Please use Discord instead.

[Request/Help] Replace all data values

Discussion in 'CraftScripts' started by Harpspiel, Oct 27, 2014.

  1. Harpspiel

    Harpspiel New Member

    I would like a craftscript that allows replacement of all data variables for a specific block with the same data variables for a different block id.

    I can't find any plugin or script that does this already, but unfortunately I'm a bit lost when it comes to writing javascript. Any help would be greatly appreciated!

    Simple version command would look like this:
    /cs <craftscriptname.js> 53 134
    - This would find all data variables of 53 (oak stairs) in the selection, and replace them with equivalent data variables of 134 (spruce stairs), so 53:0 -> 134:0, 53:1 -> 134:1, etc.

    A more complicated version would allow either replace or replacenear to be chosen, and might have some special parameters to deal with slabs.