1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

MobSpawners in Adventure mode

Discussion in 'Software/Coding' started by CptSwollhouse, Oct 16, 2016.

  1. CptSwollhouse

    CptSwollhouse Member

    Joined:
    Jul 12, 2016
    Messages:
    351
    Likes Received:
    193
    Trophy Points:
    43
    Gender:
    Male
    Occupation:
    Department Manager, H-E-B
    Location:
    Houston, Texas
    Hey everyone! Currently I'm working on my first ever adventure map that is going to include all kinds of fun puzzles and objectives, as well as battles. I've gotten to the point where I can place mob spawners throughout the map. I want the player to be able to destroy the spawners with a pick axe using canDestroy, but I simply can't seem to get it to work. I keep getting "missingno" as a tag, but can't figure how how the spawner would be tagged. I spent a good deal of time last night looking for it and couldn't find a thing!
     
  2. xFirelion

    xFirelion Member

    Joined:
    May 7, 2016
    Messages:
    958
    Likes Received:
    911
    Trophy Points:
    93
    Gender:
    Male
    Occupation:
    The best feeling when people call you a hacker :)
    Location:
    The Netherlands.
    Can you show us maybe some video evidence. :)
     
  3. ♡♡♡♡

    ♡♡♡♡ Member

    Joined:
    Apr 20, 2016
    Messages:
    2,604
    Likes Received:
    1,175
    Trophy Points:
    113
    Gender:
    Male
    Occupation:
    Location:
    The ♡Land
    I'll test this in a creative world and get back to this thread when I find out the tag :D
     
  4. CptSwollhouse

    CptSwollhouse Member

    Joined:
    Jul 12, 2016
    Messages:
    351
    Likes Received:
    193
    Trophy Points:
    43
    Gender:
    Male
    Occupation:
    Department Manager, H-E-B
    Location:
    Houston, Texas
    Well I just got home from work, signed in to get some screen shots and copy my command for yall to see, when i realized how to fix it! :p

    The correct code for it for future reference or anyone else who stumbles upon this would be.

    give @p minecraft:diamond_pickaxe 1 0 {canDestroy:["mob_spawner"]}

    I'm embarrassed of the mistake i was making all last night and refuse to disclose what it was :p

    Thanks!
     
    ♡♡♡♡ likes this.
  5. NubsUnitedYT

    NubsUnitedYT Member

    Joined:
    Jul 18, 2016
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Male
    I think changing the id from mob_spawner to 52 may work.