Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

I wanted to do some testing with the Nether so I made a fresh world on Survival, with cheats enabled. I used the following command to give myself 64 diamonds:

/give [me] 264 64 264

But for some reason I can't craft with them:

enter image description here

I tried this on a couple different worlds and I have the same problem. So I downloaded a fresh Minecraft install from the website (1.4.2), and deleted the .minecraft folder so a new one would be generated. Created a brand new world, survival, with cheats enabled, same problem.

What am I doing wrong? Is it normal to not be able to craft with cheated items?

share|improve this question
1  
It's simpler and less error-prone to just use /gamemode to switch yourself Creative (mode 1), pick your resources, and switch back to Survival (mode 2). –  SevenSidedDie Oct 31 '12 at 14:57
5  
Survival is mode 0 –  Joe the Person Oct 31 '12 at 15:02
1  
@Joe Right! I'm so used to seeing people mixing those up that now I'm remembering it wrong… Arg, dammit. –  SevenSidedDie Oct 31 '12 at 16:59

1 Answer 1

up vote 18 down vote accepted

The command you have used is incorrect, the format for giving items is:

/give <player> <id> [amount] [data]

So as you can see, you've actually given yourself a stack of 64 diamonds with a data value of 264. The kind of diamonds needed to craft armour with has a value of 0, and so the recipe doesn't work.

The amount and data values are both optional (hence the square brackets), with the amount defaulting to 1 and the data defaulting to 0.

share|improve this answer
11  
This is actually really cool. For adventure-type maps it allows you to give people usable items/rewards without them being able to cheat by crafting those items into something else. –  fredley Oct 31 '12 at 15:09
    
@GrayStoat Yes but be careful -- an unused data value could become used in a future version and you'll find your items mutating! –  Yamikuronue Nov 5 '12 at 19:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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