1

Command Blocks

Nyx72 11/8/12 5:29 pm
1.5k
11/10/2012 7:51 pm
been having troubles recently with two particular commands:

the give command: ive been writing it as
/give @p 1 388
to give an emerald to the nearest player

but its not working, and i was wondering how to give something with a damage value (e.g. lapis lazuli which is 351:4)

secondly is the set spawn command: ive tried
/spawnpoint @p x y z
and
/setspawn @p x y z

any help is welcome
Posted by
Nyx72
Level 32 : Artisan Architect
21

  Have something to say?

JoinSign in

4

Nyx72
11/10/2012 7:51 pm
Level 32 : Artisan Architect
The spawnpoint one works now (thanks!) but my give command still isnt

I tried "give @p 264 64" (without quotation marks, of course) as a test and it still wouldnt give me diamonds

Another question: how do i change the gamemode of every player (to adventure, specifically)? Ive tried
/gamemode 2 @a
/gamemode @a 2
/gamemode @a [r=10] 2
/gamemode 2
/gamemode 2 @a [r=10]
1
Falconblade99
11/09/2012 1:14 am
Level 31 : Artisan Architect
As yamina said the give emerald command should read: give @p 388 1 (the 1 isn't required as it will give you 1 if no amount is set)

The lapis command you need to put in: give @p 351 1 4
The give command works as follows: give [target player/parameters] [block id] [amount] [data value]. So you type in the block id then how much you want and then data value( yeah it's weird that data value isn't right after block id, but thats probably so you can set an amount for other blocks without data values)

For spawnpoint you type in: spawnpoint @p x y z so yours should work, even with a slash. Take another look at how you are typing in your spawnpoint command because you might have made a typo or something.
I Hope I helped
1
Capritorne
11/09/2012 12:56 am
Level 37 : Artisan Dragon
dont do /
1
yamina_chan
11/08/2012 7:11 pm
Level 1 : New Explorer
The spawnpoint should work with /spawnpoint @p x y z
You may need to add 1 each to the numbers your coordinates on F3 will show you tough, that's what I needed to do to get it to work.
The give command is right in itself, only you've got the numbers backwarts. The first is the item ID, the second how many of it you'll get =)
1

Welcome