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...

Command Help

Discussion in 'Minecraft' started by StarchPlatinum, May 23, 2016.

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

    StarchPlatinum Back with a starchy vengence

    Messages:
    276
    Likes Received:
    164
    Trophy Points:
    70
    Guild:
    Minecraft:
    I am attempting to create a command block/set of command blocks that will make it such that if I drop a stick within two blocks of an armor stand, it will gain the tags {ShowArms:1} and {NoBasePlate:1}. How should I go about doing this?
     
  2. blankman

    blankman Wynncraft Boomer VIP+

    Messages:
    1,932
    Likes Received:
    1,221
    Trophy Points:
    115
    Minecraft:
    This is the best I've got. It might not work, but if it does, it will also activate for any items named "Stick". It won't work for renamed sticks. But, here it is:

    /execute @e[type=item,name=Stick] ~ ~ ~ execute @e[type=ArmorStand,r=2] ~ ~ ~ entitydata ArmorStand {ShowArms:1,NoBasePlate:1}
     
  3. Nirguy

    Nirguy Nirguy

    Messages:
    557
    Likes Received:
    121
    Trophy Points:
    62
    Guild:
    Minecraft:

    Noy exactly, this os the closest I can get right now, I can fix it lster if its wrong
    /execute @e[type=Item,*not sure whats here, I will check when I will can(its makes the item be stick)*] ~ ~ ~ entitydata @e[type=ArmorStand, r=2] {ShowArms:1, NoBaseplate:1}
     
  4. CoinSmasher

    CoinSmasher Well-Known Adventurer

    Messages:
    202
    Likes Received:
    99
    Trophy Points:
    67
    Minecraft:
    Maybe what you can do, is make it so that instead of using a command block to detect this, you can have a hopper under a armor stand, which leads into a dropper wich drops the item onto a pressure plate that powers a command block with this command: /entitydata @e[type=ArmorStand,r=5] {ShowArms:1, NoBaseplate:1} and then does /fill (the exact coords of the hopper, then ~ ~1 ~ minecraft:(whatever block you are using for the floor(or the ID of the block) so that you don't see a hopper under the armor stand when it has arms and no baseplate.

    (Note: I'm just trying to simplify things instead of you have to use commands.)
    (r=radius, I just used 5 for an example)
     
    Jacksohn_01 likes this.
  5. Nirguy

    Nirguy Nirguy

    Messages:
    557
    Likes Received:
    121
    Trophy Points:
    62
    Guild:
    Minecraft:
    He
    I think he wants it to be for every armor stand in the world, so he won't put hopper and command blocks under all of them...
     
  6. CoinSmasher

    CoinSmasher Well-Known Adventurer

    Messages:
    202
    Likes Received:
    99
    Trophy Points:
    67
    Minecraft:
    Well then he can have a radius of like 10000000 (just an example) so that it covers the entire world and gets all the armor stands...
     
  7. Nirguy

    Nirguy Nirguy

    Messages:
    557
    Likes Received:
    121
    Trophy Points:
    62
    Guild:
    Minecraft:
    And btw I think you shout remove the stick with /kill @e[type=Item,*again the stick tag here*] and maybe do the same thing with an axe to remove the arms but not too kill the axe. The base plate could be the same with picks e and stone slab. I might try to create it when I will have time and if I will remember to
    ________________________________
    He wants just some of the armor stands not all of them to be like that... I think the way I said is the easiest to do
     
  8. CoinSmasher

    CoinSmasher Well-Known Adventurer

    Messages:
    202
    Likes Received:
    99
    Trophy Points:
    67
    Minecraft:
    -_- well then he can have a radius depending on the amount of armor stands he wants to to this...
     
  9. Ask4

    Ask4 Well-Known Adventurer

    Messages:
    61
    Likes Received:
    9
    Trophy Points:
    47
    Guild:
    Minecraft:
    I thought about it and programmed this. It's important that you use the right order:

    first you have to do /scoreboard objectives add stick dummy

    (CB = Command Block)
    1. CB /execute @e[score_stick_min=1] ~ ~ ~ entitydata @e[type=ArmorStand,c=1,r=2] {ShowArms:1b,NoBasePlate:1b,Tags:["UTF"]}

    2. CB /execute @e[score_stick_min=1] ~ ~ ~ execute @e[type=ArmorStand,c=1,r=2,tag=UTF] ~ ~ ~ /particle witchMagic ~ ~ ~ 0.5 1 0.5 1 50

    3. CB /execute @e[score_stick_min=1] ~ ~ ~ execute @e[type=ArmorStand,r=2,tag=UTF] ~ ~ ~ /playsound minecraft:block.anvil.land block @a[r=10]

    4. CB /execute @e[score_stick_min=1] ~ ~ ~ execute @e[type=ArmorStand,c=1,r=2,tag=UTF] ~ ~ ~ /kill @e[score_stick_min=1]

    5. CB /execute @e[score_stick_min=1] ~ ~ ~ execute @e[type=ArmorStand,c=1,r=2,tags=UTF] ~ ~ ~ /scoreboard players tag @e[type=ArmorStand] remove UTF {ShowArms:1b,NoBasePlate:1b}

    6. CB /scoreboard players set @e[type=Item] stick 0

    7. CB /execute @e[type=ArmorStand] ~ ~ ~ /scoreboard players set @e[type=Item,r=2] stick 1 {OnGround:1b,Thrower:"NAME",Item:{id:"minecraft:stick",Count:1b,Damage:0s}}

    8. CB execute @e[type=ArmorStand,tag=UTF] ~ ~ ~ /scoreboard players set @e[type=Item,r=2] stick 0 {OnGround:1b,Thrower:"NAME",Item:{id:"minecraft:stick",Count:1b,Damage:0s}}

    CB 2 and CB 3 aren't necessary, they are only for visual effects. You can delete them if you want

    if you want to change the item (Stick) you have to edit the entitydata in CB 8
    there is also a Thrower dataTag in CB 8 (and in CB 7 too), you can delete it or change 'NAME' to a minecraft username. This detects who has thrown the stick

    of course you can add more dataTags in CB 8 if you know how and if you want

    in CB 1 you can change the ArmorStand result by changing the entitydata from the ArmorStand (don't change the 'Tags:["UTF"]' thing!)
     
  10. Nirguy

    Nirguy Nirguy

    Messages:
    557
    Likes Received:
    121
    Trophy Points:
    62
    Guild:
    Minecraft:
    I never understood how to use tags, can you plz help me?
     
  11. Ask4

    Ask4 Well-Known Adventurer

    Messages:
    61
    Likes Received:
    9
    Trophy Points:
    47
    Guild:
    Minecraft:
    You can use tags to choose a specific entity out of many others.
    For example if you have 100 ArmorStands and you want to edit one of them, you could give this one a tag like different. After that, you can access this ArmorStand by doing a command.
    /tp @e[tag=different] ~ ~1 ~ would teleport the ArmorStand one block higher. To remove this tag you have to do /scoreboard players tag @e[tag=different] remove different. This removes the different tag from the ArmorStand.
    The tags are useful if you want to create something like groups for example if you want to make a game with two teams of Zombies. For that you give a few Zombies the tag team1 and some others team2. Then you can access this different teams separate from each other. Of course you could make some groups in this teams too like Berserker or Knight. Then you can do something with the Knights of team1 or the Knights of team2 without doing something with the rest of the team. If you want to access two tags at the same time you have to do something like that: /execute @e[tag=team1] ~ ~ ~ execute @e[tag=Knight] ~ ~ ~ <command> (This would be executing a command at all Knights of team1)
    Before tags where added in Minecraft you had to use scores or names to detect a special entity. But the problem with the names is that you can only have one name at the same time. And the scores are a bit more complicated to use, because you have to test like this: @e[score_team1_min=1,score_team1=1]
    You can also add tags with /entitydata @e[something what defines the entity] {Tags:["tag1","tag2",...]}
     
  12. Nirguy

    Nirguy Nirguy

    Messages:
    557
    Likes Received:
    121
    Trophy Points:
    62
    Guild:
    Minecraft:
    oh, its like scoreboard but easier
     
  13. Ask4

    Ask4 Well-Known Adventurer

    Messages:
    61
    Likes Received:
    9
    Trophy Points:
    47
    Guild:
    Minecraft:
    Correct
     
Thread Status:
Not open for further replies.