Minecraft Blogs / Tutorial

Command tutorial: /gamerule

  • 1,313 views, 2 today
  • 2
  • 0
JoelCohen's Avatar JoelCohen
Level 44 : Master Electrician
17
/gamerule:

Hi! Welcome to mu new blog of this serie called command tutorial. In this blog I will explain the command /gamerule.

For what´s serving: With this command you can change a rule of a world like if a mob can edit the terrain by exploding or throwing fire charges.

How it works: Put this command where you chat or in a command block: /gamerule [rulename] <true/false>. If true or false is not given it will only displays the current status of that rule.

Where you can use it: You can use this command in singleplayer if cheats are enabled or in multiplayer if you are op.

Here is a list of all the available rules. (Respect the capital letters):

1) commandBlockOutput: true: notify the the person who puts the command the command output. False: not notify the person who put the command the command output.
2) doFireTick: true: the fire spread (default). False: the fire doesn´t spread.
3) doMobLoot: true: the mobs drop items (default). False: The mobs doesn´t drop items.
4) doMobSpawning: true: the mobs spawn naturally (default). False: the mobs doesn´t spawn naturally.
5) doTileDrops: true: the blocks have drops while breaking them (default). False: the blocks doesn´t have drops while breaking them.
6) keepInventory: true: the player keep their objects they have in their inventory when they die. False: the players doesn´t keep their objects they have in they inventory when they die (default).
7) mobGriefing: true: the mobs can edit the terrain by exploding, throwing fire charges, etc. (default). False: the mobs can´t edit the terrain by exploding, throwing fire charges, etc.
8) naturalRegeneration: true: the players can regenerate the health naturally if their hunger is at the top (default). False: the players can´t regenerate health naturally if their hunger is at the top.
9) doDaylightCycle: true: the day/night cycle goes normally (default). False: the day/night cycle stps at the moment the command is active.

Thanks for watchin my blog.
Tags

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome