• 0

    posted a message on How to /w @a [command output]

    While there isn't a simple way to whisper command outputs your problem still has an easy solution. By using execute you can run the command as the player(s) and they will receive the output (as if they had run the command). The following should work:

    /execute as [players] run scoreboard team list [team name]

    This should work to send players the output of the scoreboard command. Hope this helps.

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on 1.14 command help

    This is because the game assumes you want to search infinitely from the given source. In order to only work in a given area you need to use the following:

    /kill @e[x=,y=,z=,dx=,dy=,dz=]

    This allows you to create a kill-area with the given coordinates as one corner. The dx, dy, and dz values indicate how far you want to search in the positive x, y, and z directions. This means that you'll need to choose your starting location in the most north-western corner of the area. If you only want one coordinate location to kill entities you can set the value of dx, dy, and dz to 0. As a note, coordinates are accurate to the thousandth so you'll most likely want to have a search value of at least 1. Hope this helps.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Camera control

    So there isn't any way to turn off player-controlled camera movement (without reducing their sensitivity or something). However, you are able to move the camera with commands using the /tp command:

    /tp [player] ~ ~ ~ [horizontal direction] [vertical direction]


    As a note, this will move the camera to the exact horizontal or vertical direction rather than relative to where they were looking previously. You can make the camera change relatively by putting a ~ before the horizontal or vertical input. Hope this helps.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Help with my map with commands block

    This is actually really simple and won't require any commands or command-blocks. You simply need to fill the hopper's inventory with the item that you want to be taken by it. For example, if you wanted only yellow wool blocks to be picked up by a hopper you just need to fill all 5 slots of the hopper with a single yellow wool block (1 block in each slot). Hope this helps.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on I need command help!!! Please.

    You can use /scoreboard and the following command:

    /scoreboard objectives setdisplay sidebar mostWins

    The only player that should be added to the mostWins objective is the person that you want to display. If you set the score of mostWins for any other player (even if it's set to 0) that player will also be displayed on the sidebar. In order to remove the player displayed you need to use the following:

    /scoreboard players reset (player) mostWins

    You must use reset to remove the score otherwise the player will still be displayed in the sidebar. Hope this helps.

    Posted in: Redstone, Commands and Mechanisms
  • 0

    posted a message on Where can I find tutorials on every command for 1.14.1?

    There's actually a website that generates these complicated summon commands for you here. For your instance I was able to generate the following command:

    /summon minecraft:skeleton ~ ~1 ~ {CustomName:"\"Rattle\"",CustomNameVisible:1,PersistenceRequired:1b,Health:40,Attributes:[{Name:"generic.maxHealth",Base:40}],ArmorItems:[{},{},{id:"minecraft:leather_chestplate",tag:{display:{color:10485760}},Count:1},{}],ActiveEffects:[{Id:12,Amplifier:0,Duration:2147483647}],Team:1}


    This also stops the mobs from attacking each other by putting them on the same team. If you don't want any of the mobs to attack each other you need to make sure they are all on the same team. Hope this helps.


    Edit: Also to answer the question in your title, you can find fairly accurate documentation of every command on the Minecraft Wiki.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Execute Command Not Triggering Every Time

    You're combining arguments from Bedrock and post-Bedrock. Bedrock edition cannot include NBT data points within the selector argument (in this case your use of scores={} doesn't work). In order to run the command you need to do the following:

    /execute @e[type=Snowball] ~ ~ ~ scoreboard player set @e[r=2,type=!item,score_Class=1] Chicken 1


    In this case, the scoreboard command will execute for all players within a set radius of the snowball. However, it will only affect players with a maximum "Class" score of 1. As a note, this will not affect players with a score higher than 2 (but that can be remedied with a duplication of the above command with a set minimum and a different maximum). Hope this helps!

    Posted in: Redstone, Commands and Mechanisms
  • 0

    posted a message on need some help with scoreboards

    This is super late, but this is possible by creating a dummy scoreboard (your final score) and then adding different values to that whenever a player kills a mob. The following should work:


    Setup:

    /scoreboard objectives add finalScore dummy

    /scoreboard objectives add pigKill minecraft.killed:minecraft.pig

    /scoreboard objectives add sheepKill minecraft.killed:minecraft.sheep

    You'll also need to make sure that every player is tracked by each of these scoreboards (so add a score of zero for each objective to every player).


    Repeating nonconditional:

    /execute if entity @a[scores={pigKill=1}] run scoreboard players add @a[scores={pigKIll=1}] finalScore 5

    Chain conditional (attached to the previous block):

    /scoreboard players set @a[scores={pigKill=1}] pigKill 0

    Repeating nonconditional:

    /execute if entity @a[scores={sheepKill=1}] run scoreboard players add @a[scores={sheepKill=1}] add finalScore 1

    Chain conditional (attached to the previous block):

    /scoreboard players set @a[scores={sheepKill=1}] sheepKill 0

    This should function to test for whenever a player kills either a pig or sheep and add different scores to the finalScore objective. As a note, this doesn't specifically trigger on only bow kills but that could be added if needed. Hope this helps.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on How to set accurate worldspawn

    As a note, you could also use the /setworldspawn command to achieve a similar effect.

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Command Blocks - Bredrock Ed

    As a small note you are actually trying to do it on Java edition. In Bedrock the tag would be

    score_points_min=2500

    However the newest version (Java) would use the first reply's method of

    scores={points=2500..}
    Posted in: Redstone, Commands and Mechanisms
  • 0

    posted a message on [SOLVED] [1.13] add CanPlaceOn tag on crafted and dropped items

    I can't find any way to do exactly what you're asking. Sadly there isn't any way to remove an item that doesn't have an NBT tag (although you can remove items with NBT tags). If you want to do something similar you could remove one item and then give the player a different similar item (like torches to redstone torches). The following would work for that (repeating):

    /clear @p minecraft:torch 1

    Chained:

    /give @p minecraft:redstone_torch{CanPlaceOn:["minecraft:dark_oak_planks"]} 1

    Sorry that I couldn't find a way to do your exact request.

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Cloning a block from one armor stand's location to another armor stand's location

    You can't actually clone form an entity to another. However, you can clone a block to a location and then clone from that location. The following should work:

    /execute at @e[type=minecraft:armor_stand,tag=armorStand1] run clone ~ ~-1 ~ ~ ~-1 ~ [x] [y] [z]

    then use

    /execute at @e[type=minecraft:armor_stand,tag=armorStand2] run clone [x] [y] [z] [x] [y] [z] ~ ~-1 ~

    The first command should be repeating and the second should be a chained to the first. As a note, you will need to ensure that the armor stands are tagged correctly (the tags I used can be changed though). Hope this helps.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Need help! Minecraft 1.13 /team command!

    If you want the players to run a command you won't be able to limit it to only one command (unless you use bukkit stuff idk). However, you can use a command block that will set the player to a team when they stand on a specific block. The following command should work for that:

    /execute as entity @e[type=minecraft:player,x=[x],y=[y],z=[z],dx=0] run team join DUMMY @s


    You would only need to replace the x, y, and z's with your desired block coordinates. Hope this helps.


    EDIT:

    If you want to simplify the command you can also just use selectors with a repeating /team command like so:

    /team join DUMMY @a[x=[x],y=[y],z=[z],dx=0]

    Overall this is simpler but either command should work.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on How do you detect items in an item frame?

    This is actually pretty simple. You can just use /execute (with the if argument) and then have your command. The following should work:

    /execute if entity @e[x=[x],y=[y],z=[z],dx=0,type=minecraft:item_frame,nbt={Item:{id:minecraft:[item id]}}] run [your command]

    You will have to change the [x], [y], [z], etc with your values. So for example, if you wanted to test for a stone block in the item frame and have the command block say "test" you would need to replace [item id] with stone and the [your command] with say test. If this doesn't work it's most likely because the nbt has changed. I'll try to find revisions if that's the case. Hope this helps.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Is there a command do set a players health?

    As an additional note the values for <your amount> would be 1 level for every 2 hearts (so if you set it to 4 the affected player would receive 8 extra hearts).

    Posted in: Commands, Command Blocks and Functions
  • To post a comment, please or register a new account.