We've split up the commands, scripting and mods, and add ons category! Please be sure you get your thread in the right place.

7

Enhance /fill...replace command to preserve unspecified blockstates

3 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 1
    Registered User commented
    Comment actions Permalink

    Other examples that explain how this command would work:

    /fill <fromXYZ> <toXYZ> stone_stairs[waterlogged=true] replace stone_stairs[half=bottom] preserved

    This would replace all stone stairs that are in the bottom half of their blockspace, regardless of whichever shape or facing blockstate they may have, and only affect their waterlogged blockstate for all of those.

     

    /fill <fromXYZ> <toXYZ> stone_stairs[half=bottom] replace stone_stairs[half=top,waterlogged=true] preserved

    This would do the same as above example but only for the slabs in the top of their blockspace, and not just turn them waterlogged but also position them in the bottom half, all while preserving the not mentioned shape and facing blockstates.

     

    /fill <fromXYZ> <toXYZ> stone_brick_stairs[half=bottom] replace stone_stairs[half=bottom] preserved

    This would replace all types of stone stairs that are in the bottom half of their blockspace with their stone brick counterpart, while not changing the orientation and not adding/removing the waterlogged state on any of them.

  • 0
    Registered User commented
    Comment actions Permalink

    Love this! I think it's much more common to want to change the material of things, so making that the default would be so useful! Using the blockstate identifiers would still be able to change the specific orientation if you wanted, but it wouldn't be the default

  • 0
    Registered User commented
    Comment actions Permalink

    This seems like such a no-brainer to me. It would save me so much time and headache.