I want to ask 2 questions and I want you to read it carefully so you can understand my situation.
1. When I break the yellow concrete in adventure mode with diamond pickaxe that have data tag CanDestroy, the yellow concrete will break at the same time the data tag on the yellow concrete lose.
Q: How can I gain the data tag on a yellow concrete using command?
2. I want a lever that can place on a green wool in adventure mode.
Q: How can I do that with data tag CanPlaceOn
I found it really difficult because when I do this before I create this thread, the CanPlaceOn data tag allows all of colored of wools to be place.
Good question. You have to put a number regarding the colour of the block after the name. For example:
/give @p minecraft:wool would give you white wool
/give @p minecraft:concrete 4 would give you yellow concrete etc.
These codes can be used for any block/entity with a colour code such as beds and wool. Here are the list of colours:
0 White 1 Orange 2 Magenta 3 Light Blue 4 Yellow 5 Lime 6 Pink 7 Grey 8 Light Grey 9 Cyan 10 Purple 11 Blue 12 Brown 13 Green 14 Red 15 Black
If you press F3 + H in-game, it will show the data values of each block so when you hover over a coloured block, it will say the number after it.
Seriously... you seems you don't answer my first question
In Adventure mode
1. I got a yellow concrete with NBT tag CanPlaceOn stonebrick. I put it on a stone brick. Then, I break the yellow concrete block with diamond pickaxe that has NBT tag CanDestroy tile.concrete.name . But it seems to be appeared that there are no NBT tag on yellow concrete block.
Q: How can I get the NBT tag CanPlaceOn stonebrick without typing the command (it means by using command block) or without changing the gamemodes?
I want to ask 2 questions and I want you to read it carefully so you can understand my situation.
1. When I break the yellow concrete in adventure mode with diamond pickaxe that have data tag CanDestroy, the yellow concrete will break at the same time the data tag on the yellow concrete lose.
Q: How can I gain the data tag on a yellow concrete using command?
2. I want a lever that can place on a green wool in adventure mode.
Q: How can I do that with data tag CanPlaceOn
I found it really difficult because when I do this before I create this thread, the CanPlaceOn data tag allows all of colored of wools to be place.
Please...I really want to get my map done.
Seriously... you seems you don't answer my first question
In Adventure mode
1. I got a yellow concrete with NBT tag CanPlaceOn stonebrick. I put it on a stone brick. Then, I break the yellow concrete block with diamond pickaxe that has NBT tag CanDestroy tile.concrete.name . But it seems to be appeared that there are no NBT tag on yellow concrete block.
Q: How can I get the NBT tag CanPlaceOn stonebrick without typing the command (it means by using command block) or without changing the gamemodes?
Question no.2 seems I don't have any problem
you can give the yellow concrete a tag and use an entitydata on all entityes that have that tag
Can you give me the command?
the command is
/scoreboard players tag @e[tag=!Concrete,type=Item] add Concrete {OnGround:1b,Item:{id:"minecraft:concrete",Damage:4s}}
/execute @e[tag=Concrete] ~ ~ ~ /give @p minecraft:concrete 1 4 {CanPlaceOn:["stone_brick"]}
/kill @e[tag=Concrete]