In Minecraft, when cheats are enabled you can give yourself items using the command /give [user] [item] [count], e.g. /give user45623 dirt 32.
What is the item name to use for Lapis Lazuli? I've tried lapis_lazuli, lapis, lazuli, dye4, and dye_4, but it's none of those.
4 Answers
Lapis Lazuli is a dye. Each dye shares the same name and relies on the data value to determine what type of dye it is. To spawn it in, you need to specify that data value using /give's fourth argument:
/give <player> <item> [count] [datavalue]To give a player one Lapis Lazuli, you need to specify a data value of 4:
/give <player> dye 1 4These data values encompass other items too, like cocoa beans, bone meal, and ink sacs, which have data values 3, 15, and 0, respectively.
Source: Data value of Lapis Lazuli
2From the wiki:
Lapis Lazuli has the ID name minecraft:dye, with a data value of 4. So do this:
/give player minecraft:dye 1 4To get one of them.
41.13+ Update
Data values have been abolished in favour of separate item IDs. So now instead of dye with the data value for a colour, they now go by the item name. Lapis Lazuli's item name is minecraft:lapis_lazuli
/give @s minecraft:lapis_lazuli To give lapis lazuli to yourself:
/give @s lapis_lazuli <amount>