Dismiss Notice
Wynncraft, the Minecraft MMORPG. Play it now on your Minecraft client at (IP): play.wynncraft.com. No mods required! Click here for more info...

/setblock Command Sucks. I Need Some Help.

Discussion in 'Minecraft' started by Zelefant, Nov 15, 2015.

Thread Status:
Not open for further replies.
  1. Zelefant

    Zelefant wizard fortress will return one day HERO

    Messages:
    4,926
    Likes Received:
    7,932
    Trophy Points:
    217
    Guild:
    Minecraft:
    yes. it does.


    I need some help with /setblock. I'm using this command:

    Code:
    /setblock ~12 ~ ~1 minecraft:air 0 replace

    It says the Block couldn't be placed. Is it because I'm replacing a CMD Block with air?
     
  2. Frostburn

    Frostburn Famous Adventurer

    Messages:
    2,040
    Likes Received:
    1,970
    Trophy Points:
    130
    Try setting it with stone instead
    Code:
    setblock ~12 ~ ~1 stone 0 replace
    I haven't played with commandblocks recently, I definitely dont know what i'm doing.
     
  3. Zelefant

    Zelefant wizard fortress will return one day HERO

    Messages:
    4,926
    Likes Received:
    7,932
    Trophy Points:
    217
    Guild:
    Minecraft:
    I figured it out. I got the Y coordinate off, so it was placing air on air. Thanks! the stone marked why it messed up.
     
    Frostburn likes this.
  4. McMasterx

    McMasterx ༼ つ ◕_◕ ༽つ Valar MorGavelis HERO

    Messages:
    3,886
    Likes Received:
    2,388
    Trophy Points:
    125
    Guild:
    Minecraft:
    You can also set it to simply destroy, instead of using a replace command.
     
  5. rockso7

    rockso7 arcanist enjoyer

    Messages:
    1,366
    Likes Received:
    599
    Trophy Points:
    111
    Minecraft:
    These commands will totally not crash your game..

    /fill ~10 ~-5 ~10 ~-5 ~-10 ~-5 tnt
    /setblock ~ ~-7 ~ redstone_block
     
  6. Zelefant

    Zelefant wizard fortress will return one day HERO

    Messages:
    4,926
    Likes Received:
    7,932
    Trophy Points:
    217
    Guild:
    Minecraft:
    or make a world with a huge layer of tnt above, redstone torches, and then bedrock.
    ________________________________
    Destroy drops the item, i don't want the command block to drop...
     
  7. Frostburn

    Frostburn Famous Adventurer

    Messages:
    2,040
    Likes Received:
    1,970
    Trophy Points:
    130
    /gamerule doTileDrops prevents blocks from dropping.
     
  8. Zelefant

    Zelefant wizard fortress will return one day HERO

    Messages:
    4,926
    Likes Received:
    7,932
    Trophy Points:
    217
    Guild:
    Minecraft:
    that makes all tiles stop dropping. I need things to drop.
     
  9. Uknownymous

    Uknownymous Creator of Creations

    Messages:
    95
    Likes Received:
    51
    Trophy Points:
    49
    Guild:
    Minecraft:
    What exactly do you need this for though?
     
  10. Zelefant

    Zelefant wizard fortress will return one day HERO

    Messages:
    4,926
    Likes Received:
    7,932
    Trophy Points:
    217
    Guild:
    Minecraft:
    A map im working on.
     
    Uknownymous likes this.
  11. Uknownymous

    Uknownymous Creator of Creations

    Messages:
    95
    Likes Received:
    51
    Trophy Points:
    49
    Guild:
    Minecraft:
    Well, good luck with your map ;) Be sure to ask here if you do need help though, you'll get more intelligent responses than many others because people here actually play Minecraft ;)
     
  12. TheNecromancer

    TheNecromancer dead

    Messages:
    447
    Likes Received:
    327
    Trophy Points:
    72
    Minecraft:
    command blocks don't drop the item
     
  13. Uknownymous

    Uknownymous Creator of Creations

    Messages:
    95
    Likes Received:
    51
    Trophy Points:
    49
    Guild:
    Minecraft:
    /destroy = Destroys target block resulting in it dropping.
    You may always play with /gamerule doTileDrops false, but that doesn't change the fact ;/
     
    Zelefant likes this.
  14. NyanCatSith

    NyanCatSith Well-Known Adventurer

    Messages:
    10
    Likes Received:
    1
    Trophy Points:
    46
    Command Blocks don't drop items, they can only be broken through Creative and CM doesn't drop items unless there's a certain item.
     
  15. Zelefant

    Zelefant wizard fortress will return one day HERO

    Messages:
    4,926
    Likes Received:
    7,932
    Trophy Points:
    217
    Guild:
    Minecraft:
    the Destroy modifier on the setblock command will also break a command block, and it will drop the block.
     
    Uknownymous likes this.
  16. blankman

    blankman Wynncraft Boomer VIP+

    Messages:
    1,932
    Likes Received:
    1,221
    Trophy Points:
    117
    Minecraft:
    That is uneeded. Do /setblock [x] [y] [z] minecraft:[block]
     
    Uknownymous likes this.
Thread Status:
Not open for further replies.