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

3

Get block ID with command

1 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 0
    Registered User commented
    Comment actions Permalink

    the command /block could be added to replace the command /setblock, and add the feature you described in this post, with following syntaxes: 

    /block set <pos> <block>

    • <pos> - the position of the block to be changed.
    • <block> - the new block.
    • /setblock ~ ~1 ~ air will be /block set ~ ~1 ~ air

    /block store <pos> (append|insert <index>|merge|prepend) (block <pos>|entity <target>|storage <target>) <path>

    • <pos> - the position of the block whose namespaced id will be stored.
    • other argruments follow those of /data.
    • /block storage ~ ~1 ~ merge storage minecraft:foo baz.id will get the namespaced id of the block at ~ ~1 ~ and will store to the path "baz.id" in the storage "minecraft:foo". 

    i am not a native english speaker, so do not mind my grammar mistakes :)