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.

  • /give pretty_blue_things, obviously – Sumurai8 Mar 2 '16 at 18:07

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 4

These 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

  • 9
    Now I understand how wood works too! Do you have any idea what a ****ing nightmare it is just trying to look up how to give yourself wood? ...that came out wrong. – user45623 Mar 2 '16 at 8:46

From the wiki:

Lapis Lazuli has the ID name minecraft:dye, with a data value of 4. So do this:

/give player minecraft:dye 1 4

To get one of them.

  • Damn. You ninja'd me. +1 – aytimothy Mar 2 '16 at 4:40
  • @aytimothy - sorry! :) – ire_and_curses Mar 2 '16 at 4:41
  • FYI, prepending the ID names with "minecraft:" is totally unnecessary and just making more work for yourself. I gave Tim the check because his answer was slightly more thorough, but you get an upvote – user45623 Mar 2 '16 at 8:48
  • @user45623 - no problem, glad we both could help. Yes, the 'minecraft' bit is not needed because that's the default namespace. I included it for clarity though, because it's unambiguous then. By the way, you can use /help to get the summary of any command, if you forget (this one is not particularly obvious, I have to admit). – ire_and_curses Mar 2 '16 at 17:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.