Minecraft Blogs / Tutorial

Command Block Important Commands

  • 28,531 views, 5 today
  • 29
  • 14
  • 26
enderman96271's Avatar enderman96271
Level 34 : Artisan Dragon
10
Main usage/Commands:



@p = player
@a = all players
@r = random player
@f = player farthest away


Command Blocks can also be used with the new /gamerule command. The /gamerule command changes the rules of the game. It can be used to turn fire spread on and off, to change whether or not mobs spawn, blocks drop, whether a player can keep their inventory after death and others.


A quick guide to minecraft /gamerule commands:


commandBlockOutput o Changes whether or not the command block outputs text to the console, ie, whether the player will be notified as to changes of game rules or not.
doFireTick o Turns fire spread on or off.
doMobLoot o Turns mob drops on or off.
doMobSpawning o Turns mob spawning on or off.
doTileDrops o Turns block drops off (ie, if you break a block, it will or will not drop and be able to be picked up.)
keepInventory o Decides whether a player can keep their inventory after death.
mobGriefing o Turns the ability of mobs to destroy blocks through creeper explosions or endermen grazing.

/give (player name) (id) (ammount) (data/for wool, potions, etc.)

/tp (player) (x y z/player)

/say (somhening)

/clear (player name)

/gamemode (survival,adventure,creative) (player name)

/gamerule (gamerule) (true/false)

/spawnpoint (player name) (x y z)

/toggledownfall

/weather (rain, clear, thunder, etc.)

/xp (amount) @p -give xp to the nearest player or /xp (amount) (player name)

New commands:

/spreadfire off/on/ --- pretty self explanatory, turns off the ability for fire to "spread" from one block to another in that world

/naturalspawn on/off - toggles the natural spawning of a specified monster (natural spawning = any non mob egg/spawn cage spawn), so "/naturalspawn creeper off" would prevent creepers spawning in an area a distance away with the correct light level.

/explosionblockbreak on/off - explosions (ghast fireballs, creepers, wither hits, tnt, beds in the nether) will explode and damage players but not break any blocks

/icemelt on/off - ice will not melt, regardless of light level around it.

/crafting on/off - toggles whether players can craft items in their 2x2 inventory grid or a 3x3 table, useful if crafting items could bypass an intended section of a map

/tradechange on/off - toggles whether or not villager trades will appear or dissapear(or have a chance to) after use

Source: Minecraft Wikki, SethBling

If you have problem with setting the commands just watch SethBling's video: www.youtube.com/watch?v=e5ww0c8wxzs

PS: I'm not sure if the /explosionblockbreak command works.
Tags

Create an account or sign in to comment.

1
11/14/2015 9:35 pm
Level 1 : New Miner
wildcat04
wildcat04's Avatar
I tried turning the ice melting off, but it didnt work.why?
1
06/25/2018 6:30 am
Level 45 : Master Miner
SternGlint59448
SternGlint59448's Avatar
Maybe It's Not Your Version?
1
10/26/2015 8:48 pm
Level 35 : Artisan Taco
FunkyMunkey
FunkyMunkey's Avatar
Thanks,this helped a lot!!!!
1
08/02/2015 4:46 am
Level 1 : New Miner
I_want_pizza
I_want_pizza's Avatar
how do I use the new commands? I put them into a command block and put them into the chat box, but it says the commands are Unknown, and it does nothing in the command block.
1
06/25/2018 6:31 am
Level 45 : Master Miner
SternGlint59448
SternGlint59448's Avatar
Again, Not Your Version?
1
07/21/2015 6:47 am
Level 1 : New Miner
Stan_Lee_Excelsior
Stan_Lee_Excelsior's Avatar
https://www.youtube.com/watch?v=d7_SstGQE9o  This guy taught me most of the things that I could've learnt. His command block series has 8 parts, going into detail about the main things; /give,/summon etc...
Really cool, check it out.
1
01/25/2015 8:44 am
Level 31 : Artisan Blacksmith
ZenKarateMaster
ZenKarateMaster's Avatar
@e all entity
1
12/22/2014 1:19 pm
Level 6 : Apprentice Mage
Hades2004pi
Hades2004pi's Avatar
I knew all of this.
1
12/02/2014 11:33 am
Level 25 : Expert Engineer
Frigo103
Frigo103's Avatar
https://www.youtube.com/watch?v=0cLMrbZ9UNM&list=UUoemiHLebfHjDCXHYcMbaog
hey guys I made a video about how to use testfor a named snowball in
the active item in inventory to change between commands its a quite
usefull tutorial
1
11/19/2014 1:55 pm
Level 16 : Journeyman Engineer
Chita00
Chita00's Avatar
needs some 1.8 updates...
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome