• 1

    posted a message on How in what order do you need to type to make the command block say a players name in a specific color?

    You will need to use tellraw. This is the command you'll want:

    /tellraw @a {"selector":"@r","color":"green","extra":[{"text":" : yolo","color":"red"}]}

    Also, to copy+paste text into command blocks you need to use keyboard shortcuts. Use Ctrl+C to copy and Ctrl+V to paste.

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Detecting NBT data? [SOLVED]
    Quote from Chu_Buh_Kuh»

    I tried this and it works excellently I just have one problem what do I put under

    /scoreboard players set @e[type=Item] Item 1 {OnGround:1b,Item:{id:"minecraft:your_block/item_id_required_for_crafting",AddYourExtraNBTDataHere:1}}

    Not sure what the actual nbt data is and or how to summon an item with nbt data. :P I am somewhat new to command blocks and don't know everything about them like you do. (Btw watched your videos and subscribed you'er cool)



    First off, thank you!

    NBT data is specific information stored on the item. For example, there is NBT data to specify how much items there are. That NBT data is Count:#. Where the # represents the amount of items. So, if you wanted it to be 32 items, it would look like this:

    /scoreboard players set @e[type=Item] Item 1 {OnGround:1b,Item:{id:"minecraft:your_block/item_id_required_for_crafting",Count:32}}


    There are many NBT data's out there, that's just one.


    Quote from Chu_Buh_Kuh»

    Thank you for responding so fast it is greatly appreciated I will try your method and look into it. There is another thing I found while looking that checks the names of entities on the ground just haven't got it to work yet.


    /testfor @e[type=Item] {Item:{id:minecraft:stone,tag:{display:{Name:"grenade"}}}}


    Anyways thanks for your help I will try this.


    You're welcome! :)

    Yup! That testfor command will work. Anything after the first curly bracket { and before the last } is NBT data. So, all of that in between the {} is NBT data. If you need anymore help on it, just tell me! :)
    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Detecting NBT data? [SOLVED]

    The way I do my floor crafting looks a bit different. (I haven't watched the video but by your desc. it seems different.)

    The floor crafting commands I use are these:

    /scoreboard objectives add Item dummy
     
    /scoreboard objectives add Crafted dummy
     
    /scoreboard players set @e[type=Item] Item 1 {OnGround:1b,Item:{id:"minecraft:your_block/item_id_required_for_crafting"}}
     
    /scoreboard players set @e[type=Item] Item 2 {OnGround:1b,Item:{id:"minecraft:2nd_block/item_id_required_for_crafting"}}
     
    /execute @e[type=Item,score_Item_min=1,score_Item=1] ~ ~ ~ execute @e[type=Item,score_Item_min=2,score_Item=2,r=1] ~ ~ ~ /scoreboard players set @e[type=Item,r=1] Crafted 1
     
    /execute @e[type=Item,score_Item_min=1,score_Item=1] ~ ~ ~ execute @e[type=Item,score_Item_min=2,score_Item=2,r=1] ~ ~ ~ /summon Item ~ ~ ~ {Item:{id:"minecraft:your_block/item_that_gets_crafted",Count:1}}
    Count:1 is required in order to work!   ↑↑↑
     
    (Optional): 1.8: /execute @e[type=Item,score_Crafted_min=1,c=1] ~ ~ ~ /playsound random.anvil_use @p ~ ~ ~ 1
                1.9+: /execute @e[type=Item,score_Crafted_min=1,c=1] ~ ~ ~ /playsound block.anvil.use block @p ~ ~ ~ 10 1
     
    (Optional): /execute @e[type=Item,score_Crafted_min=1,c=1] ~ ~ ~ /particle smoke ~ ~ ~ 0.1 0.5 0.1 0.1 100
     
    /kill @e[type=Item,score_Crafted_min=1]


    So, just add the NBT data to the scoreboard commands and boom! You're set!

    So, the scoreboard command would look kinda like this:

    /scoreboard players set @e[type=Item] Item 1 {OnGround:1b,Item:{id:"minecraft:your_block/item_id_required_for_crafting",AddYourExtraNBTDataHere:1}}

    :)

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on [1.10] Setblock sign with text problem

    You are welcome! :)

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on [1.10] Setblock sign with text problem

    Try adding proper JSON to the other texts.


    Like this:

    /setblock -771 7 -1109 minecraft:wall_sign 0 replace {Text1:"{\"text\":\"\"}",Text2:"{\"text\":\"Dust\"}",Text3:"{\"text\":\"\"}",Text4:"{\"text\":\"\"}"}
    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Summoning "Items"

    Yup! Here is the command:

    /summon Item ~ ~ ~ {Item:{id:"minecraft:redstone_block",Count:1b}}


    And that will summon a redstone block item.

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on How to test for a dropped item at a specific set of coordinates

    This is the command that you need to use:

    /testfor @e[-209,68,135,r=0,type=Item] {Item:{id:"minecraft:ladder"}}

    You don't need to quotations around the minecraft:ladder, but it's good practice to do so.

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on How to give entities a custom UUID in 1.9?
    Quote from JochCool»

    That would be pretty annoying to work with, especially to debug. It's just much easier if the ArmorStands have custom UUIDs so it's easier to see.

    Thanks!

    You're welcome! :D
    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on How to give entities a custom UUID in 1.9?

    You need to use UUIDLeast: and UUIDMost:


    For example:

    /summon ArmorStand ~ ~ ~ {UUIDLeast:1L,UUIDMost:2L}

    That will summon an ArmorStand with an UUID of 1.


    The UUIDMost must be 1 more than the least. As you can see, my least was 1, and my most was 2. (1 + 1 = 2) :D

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on type argument

    No, it will ignore the type=!Player, and will immediately obey the type=!Item.


    However, you can use scoreboard tags to not select them.


    Tag all players with "dontSelect":

    /scoreboard players tag @a add dontSelect

    Then, tag all items with "dontSelect":

    /scoreboard players tag @e[type=Item] add dontSelect

    Finally, select everything that doesn't have the tag "dontSelect":

    @e[tag=!dontSelect]
    Posted in: Commands, Command Blocks and Functions
  • To post a comment, please .