gamerule randomtickspeed что за команда

[Гайд] Команда /gamerule, все её подкоманды

Текст в ‘ ‘ нужно писать обязательно. Вместо него нужно поместить игровое правило без скобок, список игровых правил описан ниже.

[true|false]‘, вместо него нужно поместить true или false. true — это правда, false — ложь. Писать так же нужно без скобок.

На момент релиза 1.9.4 существует 18 игровых правил.

commandBlockOutput — Предупреждать ли админов о выполнении команд в командном блоке (по умолчанию true)
disableElytraMovementCheck — Должен ли сервер пропускать проверку скорости игроков с надетыми надкрыльями (не рекомендуется изменять) (работает только на серверах) (по умолчанию false)
doDaylightCycle — Должен ли цикл дня/ночи изменять свой процесс (время также не изменяется во время сна в кровати) (по умолчанию true)
doEntityDrops — Должны ли существа, не являющиеся мобами дропать предметы (такие как падающий песок) (по умолчанию true)
doFireTick — Должен ли огонь тушится ветром или переходить на другие горючие блоки (по умолчанию true)
doMobLoot — Должны ли мобы дропать предметы (по умолчанию true)
dpMobSpawning — Должны ли мобы естественно спаунится (по умолчанию true)
doTileDrops — Дроп предметов после разрушения блоков (по умолчанию true)
keepInventory — Должен ли инвентарь сохранятся после смерти игрока (по умолчанию false)
logAdminCommands — Запись команд администратора в лог сервера (работает только в мультиплеере) (по умолчанию true)
mobGriefing — Должны ли криперы, зомби, эндермены, гасты, иссушители, эндер драконы, овцы, кролики и деревенские жители иметь право изменять блоки и должны ли деревенские жители, зомби, скелеты и зомби-свинолюди поднимать выпавшие предметы (по умолчанию true)
naturalRegeneration — Должен ли игрок естественно регенерировать своё здоровье, если его сытость почти полна (нет эффекта на дополнительную регенерацию, такие как золотые яблоки, эффект регенерации и т. п.) (по умолчанию true)
randomTickSpeed — Как часто должен происходить случайный игровой тик (такие как рост растений, опадение листвы и т. п.) на каждый игровой чанк каждый игровой тик. Значение 0 отключает случайные тики, большие значения увеличивают время между случайными тиками (по умолчанию 3)
reducedDebugInfo — неизвестно, но лучше не включать (по умолчанию false)
sendCommandFeedback — Выводить ли в чат информацию при успешном выполнении команды в чате (по умолчанию true)
showDeathMessages — Должно ли после смерти появляться соответствующее сообщение (по умолчанию true
spectatorsGenerateChunks — Должны ли игроки в режиме наблюдения (/gamemode 3) генерировать новые чанки (по умолчанию true)

Если введено только правило, в чате отобразится его установленное на данный момент значение.

Источник

Как использовать команду скорости Minecraft Tick?

Игровой тик

Прежде чем перейти к деталям темы, давайте сначала обсудим, что такое галочка. Итак, это характерно практически для всех видеоигр. Это наиболее важно для программирования игры. Действия и продвижение игрового моделирования синхронизируются с игровым циклом. Ровно один цикл игрового цикла называется тиком.

Обычно игровой цикл Minecraft работает с фиксированной скоростью, которая составляет 20 тиков в секунду. Это делает 1 тик каждые 0.05 секунды. Однако многие компьютеры в зависимости от их скорости могут иметь разную скорость тиков и тиков в секунду (TPS).

Итак, какая польза от этих клещей? Движения в игре рассчитываются по этим тикам, а не по часам. Так что иногда вы также можете столкнуться с задержками движений и действий в игре на медленном компьютере.

Различные аспекты игры, такие как изменение положения движущихся объектов, изменение поведения мобов и его обновление в соответствии с их окружением, происходят за такт. Более того, на здоровье и голод влияют обстоятельства игрока и многое другое.

Все это происходит на игровом сервере, той части программы, которая обрабатывает игровую логику (даже в однопользовательском режиме). В результате действия клиента, например рисование графики, не влияют на скорость тиков независимо от того, насколько медленно или быстро он выполняется.

Клещи могут быть далее разделены на типы в зависимости от того, как они вызывают изменение различных аспектов. Типы: тик фрагмента, случайный тик, запланированный тик и тик Редстоуна.

Объяснение команды скорости тика в Minecraft

В играх Minecraft доступна тиковая скорость от 0 до 256 тиков в секунду. Но обычно доступно 20 тиков в секунду, которые можно увеличивать с повышением уровня. Таким образом, более высокие уровни могут дать вам приращение TPS.

Но есть ли способ изменить эти тики в секунду или, другими словами, просто указать скорость в Minecraft. Да, способ есть. Эта команда называется командой / gamerule, которая доступна в некоторых версиях Minecraft: Java Edition (ПК / Mac), Pocket Edition (PE), Xbox One, PS4, Nintendo Switch, Windows 10 Edition и Education Edition.

В первую очередь, это две разные команды с небольшими различиями: одна для проверки правила игры, а другая для установки определенного значения правила игры. Они есть:

/ gamerule [Чтобы дать определенное значение]

/ gamerule [Просто чтобы проверить правило]

Это общая команда для выполнения ряда задач. Например, правило doFireTick устанавливает, должен ли пожар естественным образом распространяться, а затем гаснет doMobSpawning исправляет, должны ли мобы появляться естественным образом. Таких командных правил несколько.

Правило, которое мы желаем для Tick Speed: randomTickSpeed. Эта команда обычно устанавливает скорость роста или разрушения объектов (например, рост молодого деревца в дерево или движение игрового персонажа). 0 отключает случайный тик. Чем выше значение, тем быстрее будет случайный тик.

Как ввести команду

Теперь вам просто нужно ввести желаемую команду, которая указана выше, чтобы изменить скорость тика вашей игры.

Наслаждайтесь другой статьей Топор удачи Майнкрафт.

Заключение

Надеюсь, вам понравилась статья. Пожалуйста, дайте нам знать в комментариях, считаете ли вы это полезным и как общая скорость тиков повлияла на вашу игру.

Источник

Gamerules what are they?

A gamerule is a command that a player can run to change how the game is played. So in general a gamerule command can change allot of things. As of the latest update to the game 1.7.5 there are 11 gamerule commands. To run any of these commands just copy them from the page and put them in the chat window. Then hit enter, it’s as simple as that. When you run these gamerule commands they are not permanent but, will stay in motion till you change them with a changing gamerule command.

Command Block Output is a command for command blocks. This command will tell the game whether or not the game will tell a player if a command has been run in a command block and if it was successful or not. Now if you are running lots of commands though command blocks this will cause your chat to fill up with tons of code. So if you want to get rid of the command block output in chat, just run this command.

/gamerule commandBlockOutput false

But if some reason you want to see the command block output run this command

/gamerule commandBlockOutput true

Finally if you are using tellraw or the say command; They will still show up in chat when the gamerule is set to false.


Command Block Output False


Command Block Output True

Now the doDaylightCycle command controls how the sun and the moon work. When this command is set to true the day night cycle will act as normal does. But when set to false this command will tell the game to stop time from moving. So if you run this command during a Minecraft day it will say day forever and vise versa if you run this command in the night it will say night forever. Side note you can still use the /time set command with this command set to false.

/gamerule doDaylightCycle true

/gamerule doDaylightCycle false

This game rule controls how fire and lava act. When this command is set to true fire and lava will act as it always does, spreading and causing general chaos. But when this command is set to false, fire will not spread or go out. So you can use fire anywhere without the fear of it spreading and destroying a build. Little side note lava will still set stuff on fire but the fire will not consume anything. Also fire and lava will still set the player and other mobs on fire no matter what the state of the command is.

/gamerule doFireTick true

/gamerule doFireTick false

Mob loot is an interesting command, when you kill any mob and this command is set to true you will get your normal drops from the dead mob. However, if the doMobLoot command is set to false, the killed mobs will not drop anything. Now this command only applies to loot not experience that the mob drops.

/gamerule doMobLoot true

/gamerule doMobLoot false

Now mob spawning is one of the most powerful commands. It tells the game if mobs should spawn and this applies to all mobs. That includes all natural spawning peaceful and hostile mobs. Now the player can still spawn in mobs with spawn eggs, commands, or monster spawners. Now when this command only applies to mobs that haven’t been spawned in yet by the game. All mobs in the game at the moment the command activated will not be affected by this command. So when this command is set to true mobs will spawn normally. When the command is set to false mobs will not spawn.

/gamerule doMobSpawning true

/gamerule doMobSpawning false

First of all a Tile is a block, so when you set this command to false, the game will not produce any items when you break a block. In addition, this includes any tile broken even if the player didn’t break it. This feature can be useful for the elimination of lag, keeping creative building inventories clean of pointless items, and if you are making a mini game and you don’t want the players of the game from cheating. Therefore, when this command is set to true the game will act normal with tile drops. Then when the command is set to false there will be no tile drops.

Читайте также:  ftgfop что это чай

/gamerule doTileDrops true

/gamerule doTileDrops false

This gamerule applies to the players inventory. When this command is set to False, the player will lose their inventory as normal. However, when this command is set to True the player will keep their inventory when they die. This also is true for the experience the player has.

/gamerule keepInventory true

/gamerule keepInventory false

This game rule mostly applies to sever. When you are running a server, it will keep a log of all actions that happen in the game. Like deaths, players joining and leving the game, and command block read outs. However, if you are running allot of commands from command blocks it will fill this log up really fast. So to combat this you set this command to false and it will stop command blocks from spamming this log.

/gamerule logAdminCommands true

/gamerule logAdminCommands false

Mob griefing can be very frustrating and annoying when playing the game. This command can stop all mob griefing; Enderman will not be steeling any more blocks, Creepers will not be destroying any blocks when they blowup, Zombies will stop breaking doors, Ghast’s fire balls will not destroy the terrain, and the Ender Dragon will not be able to destroy everything it touches. When the command is set to false all mob griefing will stop.

/gamerule mobGriefing true

/gamerule mobGriefing false

Natural regeneration is the regeneration of health, when in survival mode or adventure mode. So when this command is set to false a player can only regenerate health from beacons, golden apples, and potions. A full hunger bar will not regenerate more health. This game rule is used in all the UHC matches to increase the intensity of the game. Therefore, when the game rule is set to true a player can regenerate health with a full hunger bar. If it’s set to false the player cannot regenerate health from their hunger bar.

/gamerule naturalRegeneration true

/gamerule naturalRegeneration false

random tick speed is how fast the game lets plaints grow and leaves decay. With most plaints in minecraft there are different grow stages. For a plaint to grow it must receive a tick update from the game.
These are generated randomly throughout the game. This gamerule can edit how often these events happen. The game is normally set to 3 but you can increase or decrees this as much as you want. If you have
a custom map you may want to set this to 0. So there will be less lag and non of you plaints will change. But if you have a survival world and you want to decrees the amount of time you spent waiting on plaints
to grow, increase this gamerule. Be warned that if you raise this number to much you can lag out your world. If you want you plaints to grow faster keep the number 20 and you should be fine. You can set this gamerule to True and False but I’m not really sure what that does.

/gamerule randomTickSpeed 0

/gamerule randomTickSpeed 20

Now death messages are when the game tells you when a player dies in chat. Weather that be in single player or multi-player it works either way. If the gamerule is set to false the game will not tell you when a player dies, but when set to true the game will. Also this gamerule is set to true when you start a new world

/gamerule showDeathMessages true

/gamerule showDeathMessages false

Personal Preference of GameRules
Now when I set up a new world for a build project I like setting these gamerules. Therefore, the game will be more enjoyable to play.

Источник

Minecraft Wiki

The Minecraft Wiki is no longer considered as official by Microsoft and therefore several changes are required to be made, including to the wiki’s logo. Please read this announcement for more information.

Game rule

Game rules are a set of customizable options for a specific in-game world.

Contents

Modifying game rules [ ]

The «Edit Game Rules» section of the «Create World» screen on Java Edition.

in Java Edition, game rules can be changed using toggle buttons on the «Edit Game Rules» menu built into the «Create World» screen. The game rules are split into categories named «Player», «Mobs», «Spawning», «Drops», «World updates», «Chat», and «Miscellaneous».

in Bedrock Edition, many (about half) of the game rules can be changed using toggles on the «World settings» and «Cheats» sections of the world’s Game settings screen. The remainder can only be changed with commands.

List of game rules [ ]

The following is a list of game rules available in-game, their allowed values, and their availability in Java Edition and Bedrock Edition.

Additional behavior [ ]

This section explains more complex behaviors of certain gamerules.

Источник

How to Use the Gamerule Command in Minecraft

This Minecraft tutorial explains how to use the /gamerule command with screenshots and step-by-step instructions.

You can either set or check the value of a game rule using the /gamerule command in Minecraft. Let’s explore how to use this cheat (game command).

Supported Platforms

The /gamerule command is available in the following versions of Minecraft:

Platform Supported (Version*)
Java Edition (PC/Mac) Yes (1.4.2)
Pocket Edition (PE) Yes (1.0.5)
Xbox 360 No
Xbox One Yes (1.2)
PS3 No
PS4 Yes (1.14.0)
Wii U No
Nintendo Switch Yes (1.5.0)
Windows 10 Edition Yes (1.0.5)
Education Edition Yes

* The version that it was added or removed, if applicable.
NOTE: Pocket Edition (PE), Xbox One, PS4, Nintendo Switch, and Windows 10 Edition are now called Bedrock Edition. We will continue to show them individually for version history.

Requirements

To run game commands in Minecraft, you have to turn cheats on in your world.

Gamerule Command

Gamerule Command in Minecraft Java Edition (PC/Mac)

In Minecraft Java Edition (PC/Mac), the gamerule command has different syntaxes depending on whether you want to set or check the gamerule.

To set the value of a gamerule:

To check the value of a gamerule:

Definitions

value is the value to assign to a rule name. See possible values below.

Rule Description Possible Values Default Value
announceAdvancements Whether advancements are announced true or false true
commandBlockOutput Whether command blocks notify admins when commands are executed true or false true
disableElytraMovementCheck Disables the check in a server whether a player is moving too fast true or false false
disableRaids Disables Raids (added in 1.14.3) true or false false
doDaylightCycle Whether time advances in the day/night cycle. If set to false, time will stop at the current moment. true or false true
doEntityDrops Whether entities should have drops true or false true
doFireTick Whether fire should naturally spread and then extinguish true or false true
doImmediateRespawn Whether player immediately respawns without seeing the respawn menu (the respawn menu displays the message that you died with the options to respawn or go to the main menu) (added in 1.15) true or false false
doInsomnia Whether phantoms will spawn at night if a player hasn’t slept (added in 1.15) true or false true
doLimitedCrafting Limit crafting to recipes that are unlocked true or false false
doMobLoot Whether mobs should have drops true or false true
doMobSpawning Whether mobs should spawn naturally true or false true
doPatrolSpawning Whether patrols should spawn (added in 1.15.2) true or false true
doTileDrops Whether blocks should have drops true or false true
doTraderSpawning Whether wandering traders should spawn (added in 1.15.2) true or false true
doWeatherCycle Whether weather changes. If set to false, weather will stop at current cycle. true or false true
drowningDamage Whether drowning causes damage (added in 1.15) true or false true
fallDamage Whether falls cause damage (added in 1.15) true or false true
fireDamage Whether fire causes damage (added in 1.15) true or false true
KeepInventory Whether players keep their inventory after dying true or false false
logAdminCommands Whether admin commands are added to the server log true or false true
maxCommandChainLength Maximum length of command chain 65536
maxEntityCramming Maximum number of entities that can be crammed 24
mobGriefing Whether mobs can pick up items or change blocks true or false true
naturalRegeneration Whether players can regenerate health naturally through their hunger bar true or false true
randomTickSpeed Sets the speed of how fast things grow or decay (such as the growth of a sapling into a tree).
0 disables the random tick. The higher the value, the faster the random tick.
3
reducedDebugInfo Whether debug screen hides some information true or false false
sendCommandFeedback Whether feedback from player commands appears in the chat true or false true
showDeathMessages Whether a message appears in the chat when a player dies true or false true
spawnRadius Controls how far from the world spawn point you can spawn 10
spectatorsGenerateChunks Whether spectators can generate chunks in the game true or false true

Gamerule Command in Minecraft Pocket Edition (PE)

In Minecraft Pocket Edition (PE), the gamerule command has different syntaxes depending on whether you want to set, check or list the gamerule.

To set the value of a gamerule:

To check the value of a gamerule:

To list all gamerules:

Definitions

value is the value to assign to a rule name. See possible values below.

Rule Description Possible Values Default Value
commandblockoutput Whether command blocks notify admins when commands are executed true or false true
commandblocksenabled Whether command blocks are enabled in the world true or false true
dodaylightcycle Whether time advances in the day/night cycle. If set to false, time will stop at the current moment. true or false true
doentitydrops Whether entities should have drops true or false true
dofiretick Whether fire should naturally spread and then extinguish true or false true
doimmediaterespawn Whether player immediately respawns without seeing the respawn menu (the respawn menu displays the message that you died with the options to respawn or go to the main menu) true or false false
doinsomnia Whether phantoms will spawn at night if a player hasn’t slept true or false true
domobloot Whether mobs should have drops true or false true
domobspawning Whether mobs should spawn naturally true or false true
dotiledrops Whether blocks should have drops true or false true
doweathercycle Whether weather changes. If set to false, weather will stop at current cycle. true or false true
drowningdamage Whether drowning causes damage true or false true
falldamage Whether falls cause damage true or false true
firedamage Whether fire causes damage true or false true
functioncommandlimit Maximum length for function commands 10000
keepinventory Whether players keep their inventory after dying true or false false
maxcommandchainlength Maximum length of command chain 65536
mobgriefing Whether mobs can pick up items or change blocks true or false true
naturalregeneration Whether players can regenerate health naturally through their hunger bar true or false true
pvp Whether players can cause damage to other players true or false true
randomtickspeed Random tick speed 1
respawnblocksexplode Whether Respawn Anchors and Beds explode (added in 1.17.30) true or false true
sendcommandfeedback Whether feedback from player commands appears in the chat true or false true
showcoordinates Whether coordinates should be displayed on the screen true or false false
showdeathmessages Whether death messages are displayed in the Chat window true or false true
showtags Whether tags (such as «Can place on» and «Can destroy» block lists) should be displayed in item lore true or false true
spawnradius Controls how far from the world spawn point you can spawn 5
tntexplodes Whether TNT explodes true or false true
Читайте также:  какой знак обозначает женский пол

Gamerule Command in Xbox One Edition

In Minecraft Xbox One Edition, the gamerule command has different syntaxes depending on whether you want to set, check or list the gamerule.

To set the value of a gamerule:

To check the value of a gamerule:

To list all gamerules:

Definitions

value is the value to assign to a rule name. See possible values below.

Rule Description Possible Values Default Value
commandblockoutput Whether command blocks notify admins when commands are executed true or false true
commandblocksenabled Whether command blocks are enabled in the world true or false true
dodaylightcycle Whether time advances in the day/night cycle. If set to false, time will stop at the current moment. true or false true
doentitydrops Whether entities should have drops true or false true
dofiretick Whether fire should naturally spread and then extinguish true or false true
doimmediaterespawn Whether player immediately respawns without seeing the respawn menu (the respawn menu displays the message that you died with the options to respawn or go to the main menu) true or false false
doinsomnia Whether phantoms will spawn at night if a player hasn’t slept true or false true
domobloot Whether mobs should have drops true or false true
domobspawning Whether mobs should spawn naturally true or false true
dotiledrops Whether blocks should have drops true or false true
doweathercycle Whether weather changes. If set to false, weather will stop at current cycle. true or false true
drowningdamage Whether drowning causes damage true or false true
falldamage Whether falls cause damage true or false true
firedamage Whether fire causes damage true or false true
functioncommandlimit Maximum length for function commands 10000
keepinventory Whether players keep their inventory after dying true or false false
maxcommandchainlength Maximum length of command chain 65536
mobgriefing Whether mobs can pick up items or change blocks true or false true
naturalregeneration Whether players can regenerate health naturally through their hunger bar true or false true
pvp Whether players can cause damage to other players true or false true
randomtickspeed Random tick speed 1
respawnblocksexplode Whether Respawn Anchors and Beds explode (added in 1.17.30) true or false true
sendcommandfeedback Whether feedback from player commands appears in the chat true or false true
showcoordinates Whether coordinates should be displayed on the screen true or false false
showdeathmessages Whether death messages are displayed in the Chat window true or false true
showtags Whether tags (such as «Can place on» and «Can destroy» block lists) should be displayed in item lore true or false true
spawnradius Controls how far from the world spawn point you can spawn 5
tntexplodes Whether TNT explodes true or false true

Gamerule Command in PS4 Edition

In Minecraft PS4 Edition, the gamerule command has different syntaxes depending on whether you want to set, check or list the gamerule.

To set the value of a gamerule:

To check the value of a gamerule:

To list all gamerules:

Definitions

value is the value to assign to a rule name. See possible values below.

Rule Description Possible Values Default Value
commandblockoutput Whether command blocks notify admins when commands are executed true or false true
commandblocksenabled Whether command blocks are enabled in the world true or false true
dodaylightcycle Whether time advances in the day/night cycle. If set to false, time will stop at the current moment. true or false true
doentitydrops Whether entities should have drops true or false true
dofiretick Whether fire should naturally spread and then extinguish true or false true
doimmediaterespawn Whether player immediately respawns without seeing the respawn menu (the respawn menu displays the message that you died with the options to respawn or go to the main menu) true or false false
doinsomnia Whether phantoms will spawn at night if a player hasn’t slept true or false true
domobloot Whether mobs should have drops true or false true
domobspawning Whether mobs should spawn naturally true or false true
dotiledrops Whether blocks should have drops true or false true
doweathercycle Whether weather changes. If set to false, weather will stop at current cycle. true or false true
drowningdamage Whether drowning causes damage true or false true
falldamage Whether falls cause damage true or false true
firedamage Whether fire causes damage true or false true
functioncommandlimit Maximum length for function commands 10000
keepinventory Whether players keep their inventory after dying true or false false
maxcommandchainlength Maximum length of command chain 65536
mobgriefing Whether mobs can pick up items or change blocks true or false true
naturalregeneration Whether players can regenerate health naturally through their hunger bar true or false true
pvp Whether players can cause damage to other players true or false true
randomtickspeed Random tick speed 1
respawnblocksexplode Whether Respawn Anchors and Beds explode (added in 1.17.30) true or false true
sendcommandfeedback Whether feedback from player commands appears in the chat true or false true
showcoordinates Whether coordinates should be displayed on the screen true or false false
showdeathmessages Whether death messages are displayed in the Chat window true or false true
showtags Whether tags (such as «Can place on» and «Can destroy» block lists) should be displayed in item lore true or false true
spawnradius Controls how far from the world spawn point you can spawn 5
tntexplodes Whether TNT explodes true or false true

Gamerule Command in Minecraft Nintendo Switch Edition

In Minecraft Nintendo Switch Edition, the gamerule command has different syntaxes depending on whether you want to set, check or list the gamerule.

To set the value of a gamerule:

To check the value of a gamerule:

To list all gamerules:

Definitions

value is the value to assign to a rule name. See possible values below.

Rule Description Possible Values Default Value
commandblockoutput Whether command blocks notify admins when commands are executed true or false true
commandblocksenabled Whether command blocks are enabled in the world true or false true
dodaylightcycle Whether time advances in the day/night cycle. If set to false, time will stop at the current moment. true or false true
doentitydrops Whether entities should have drops true or false true
dofiretick Whether fire should naturally spread and then extinguish true or false true
doimmediaterespawn Whether player immediately respawns without seeing the respawn menu (the respawn menu displays the message that you died with the options to respawn or go to the main menu) true or false false
doinsomnia Whether phantoms will spawn at night if a player hasn’t slept true or false true
domobloot Whether mobs should have drops true or false true
domobspawning Whether mobs should spawn naturally true or false true
dotiledrops Whether blocks should have drops true or false true
doweathercycle Whether weather changes. If set to false, weather will stop at current cycle. true or false true
drowningdamage Whether drowning causes damage true or false true
falldamage Whether falls cause damage true or false true
firedamage Whether fire causes damage true or false true
functioncommandlimit Maximum length for function commands 10000
keepinventory Whether players keep their inventory after dying true or false false
maxcommandchainlength Maximum length of command chain 65536
mobgriefing Whether mobs can pick up items or change blocks true or false true
naturalregeneration Whether players can regenerate health naturally through their hunger bar true or false true
pvp Whether players can cause damage to other players true or false true
randomtickspeed Random tick speed 1
respawnblocksexplode Whether Respawn Anchors and Beds explode (added in 1.17.30) true or false true
sendcommandfeedback Whether feedback from player commands appears in the chat true or false true
showcoordinates Whether coordinates should be displayed on the screen true or false false
showdeathmessages Whether death messages are displayed in the Chat window true or false true
showtags Whether tags (such as «Can place on» and «Can destroy» block lists) should be displayed in item lore true or false true
spawnradius Controls how far from the world spawn point you can spawn 5
tntexplodes Whether TNT explodes true or false true
Читайте также:  Что значит скелет во сне

Gamerule Command in Minecraft Windows 10 Edition

In Minecraft Windows 10 Edition, the gamerule command has different syntaxes depending on whether you want to set or check the gamerule.

To set the value of a gamerule:

To check the value of a gamerule:

To list all gamerules:

Definitions

value is the value to assign to a rule name. See possible values below.

Rule Description Possible Values Default Value
commandblockoutput Whether command blocks notify admins when commands are executed true or false true
commandblocksenabled Whether command blocks are enabled in the world true or false true
dodaylightcycle Whether time advances in the day/night cycle. If set to false, time will stop at the current moment. true or false true
doentitydrops Whether entities should have drops true or false true
dofiretick Whether fire should naturally spread and then extinguish true or false true
doimmediaterespawn Whether player immediately respawns without seeing the respawn menu (the respawn menu displays the message that you died with the options to respawn or go to the main menu) true or false false
doinsomnia Whether phantoms will spawn at night if a player hasn’t slept true or false true
domobloot Whether mobs should have drops true or false true
domobspawning Whether mobs should spawn naturally true or false true
dotiledrops Whether blocks should have drops true or false true
doweathercycle Whether weather changes. If set to false, weather will stop at current cycle. true or false true
drowningdamage Whether drowning causes damage true or false true
falldamage Whether falls cause damage true or false true
firedamage Whether fire causes damage true or false true
functioncommandlimit Maximum length for function commands 10000
keepinventory Whether players keep their inventory after dying true or false false
maxcommandchainlength Maximum length of command chain 65536
mobgriefing Whether mobs can pick up items or change blocks true or false true
naturalregeneration Whether players can regenerate health naturally through their hunger bar true or false true
pvp Whether players can cause damage to other players true or false true
randomtickspeed Random tick speed 1
respawnblocksexplode Whether Respawn Anchors and Beds explode (added in 1.17.30) true or false true
sendcommandfeedback Whether feedback from player commands appears in the chat true or false true
showcoordinates Whether coordinates should be displayed on the screen true or false false
showdeathmessages Whether death messages are displayed in the Chat window true or false true
showtags Whether tags (such as «Can place on» and «Can destroy» block lists) should be displayed in item lore true or false true
spawnradius Controls how far from the world spawn point you can spawn 5
tntexplodes Whether TNT explodes true or false true

Gamerule Command in Minecraft Education Edition

In Minecraft Education Edition, the gamerule command has different syntaxes depending on whether you want to set, check or list the gamerule.

To set the value of a gamerule:

To check the value of a gamerule:

To list all gamerules:

Definitions

value is the value to assign to a rule name. See possible values below.

Rule Description Possible Values Default Value
allowdestructiveobjects Whether destructive objects should be allowed true or false true
allowmobs Whether mobs should be allowed true or false true
commandblockoutput Whether command blocks notify admins when commands are executed true or false true
commandblocksenabled Whether command blocks are enabled in the world true or false true
dodaylightcycle Whether time advances in the day/night cycle. If set to false, time will stop at the current moment. true or false true
doentitydrops Whether entities should have drops true or false true
dofiretick Whether fire should naturally spread and then extinguish true or false true
doimmediaterespawn Whether player immediately respawns without seeing the respawn menu (the respawn menu displays the message that you died with the options to respawn or go to the main menu) true or false false
doinsomnia Whether phantoms will spawn at night if a player hasn’t slept true or false true
domobloot Whether mobs should have drops true or false true
domobspawning Whether mobs should spawn naturally true or false true
dotiledrops Whether blocks should have drops true or false true
doweathercycle Whether weather changes. If set to false, weather will stop at current cycle. true or false true
drowningdamage Whether drowning causes damage true or false true
falldamage Whether falls cause damage true or false true
firedamage Whether fire causes damage true or false true
functioncommandlimit Maximum length for function commands 10000
globalmute Whether the world should be muted true or false false
keepinventory Whether players keep their inventory after dying true or false false
maxcommandchainlength Maximum length of command chain 65536
mobgriefing Whether mobs can pick up items or change blocks true or false true
naturalregeneration Whether players can regenerate health naturally through their hunger bar true or false true
pvp Whether players can cause damage to other players true or false true
randomtickspeed Random tick speed 1
sendcommandfeedback Whether feedback from player commands appears in the chat true or false true
showbordereffect Whether border effect should be displayed true or false true
showcoordinates Whether coordinates should be displayed on the screen true or false false
showdeathmessages Whether death messages are displayed in the Chat window true or false true
showtags Whether tags (such as «Can place on» and «Can destroy» block lists) should be displayed in item lore true or false true
tntexplodes Whether TNT explodes true or false true

Examples

Example in Java Edition (PC/Mac)

To set the doDayLightCycle gamerule to false and stop time in Minecraft Java Edition (PC/Mac):

To check the value of the KeepInventory gamerule:

Example in Pocket Edition (PE)

To prevent players from taking drowning damage by setting the drowningdamage gamerule to false in Minecraft PE:

To check the value of the dodaylightcycle gamerule:

Example in Xbox One Edition

To freeze time and stop it from advancing in Minecraft Xbox One Edition:

To check the value of the doweathercycle gamerule:

Example in PS4 Edition

To prevent players from taking fall damage by setting the falldamage gamerule to false in Minecraft PS4 Edition:

To check the value of the dodaylightcycle gamerule:

Example in Nintendo Switch Edition

To stop the weather from changing in Minecraft Nintendo Switch Edition:

To check the value of the tntexplodes gamerule:

Example in Windows 10 Edition

To prevent players from causing damage to other players by setting the pvp gamerule to false in Minecraft Windows 10 Edition:

To check the value of the doweathercycle gamerule:

Example in Education Edition

To display your coordinates on the screen in Minecraft Education Edition:

To check the value of the globalmute gamerule:

How to Enter the Command

1. Open the Chat Window

The easiest way to run a command in Minecraft is within the chat window. The game control to open the chat window depends on the version of Minecraft:

2. Type the Command

We will cover examples of how to use the /gamerule command to set a gamerule as well as how to see what the current setting is for a gamerule.

Set the Value of a Gamerule

In the first example, we will show you how to use the /gamerule command to stop time from advancing by setting the doDaylightCycle gamerule to false.

To set the doDayLightCycle gamerule to false and stop time, you would need to type the following command:

Type the command in the chat window. As you are typing, you will see the command appear in the lower left corner of the game window. Press the Enter key to run the command.

This gamerule command would stop time at the current moment. Time would no longer advance. Since we are in daytime, it would remain daytime forever. You can run this command at any time of the day and it will stop time at that moment.

You will see the message » Game rule has been updated » appear in the lower left corner of the game window to indicate that the gamerule command has completed.

Check the Value of a Gamerule

In this next example, we will show you how to check the value of a gamerule for your world.

In this example, we want to see what our KeepInventory gamerule is currently set to. This is the gamerule that allows you to keep your inventory after dying.

To check the value of the KeepInventory gamerule, you would need to type the following command:

Type the command in the chat window and press the Enter key to run the command.

This command would display what the KeepInventory gamerule is currently set to. The value returned is either true or false.

In this example, you will see the message » KeepInventory = false » appear in the lower left corner of the game window. Since the KeepInventory gamerule is set to false, you lose all of your inventory when you die. You can use the gamerule command to set KeepInventory to true to retain your inventory after dying.

Congratulations, you have learned how to use the /gamerule command in Minecraft.

Other Game Commands

You can use other commands and cheats in Minecraft such as:

Источник

Сказочный портал