mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
added mushroom spreading
This commit is contained in:
parent
a6d96c4ac7
commit
f81c8b17bf
6 changed files with 70 additions and 42 deletions
|
|
@ -138,6 +138,7 @@ class ServerAPI{
|
|||
"enable-mob-ai" => true,
|
||||
"abort-reading-after-N-packets" => PocketMinecraftServer::$PACKET_READING_LIMIT,
|
||||
"ticking-mode" => "legacy",
|
||||
"mushroom-spread" => Block::$mushroomSpread
|
||||
], comments: [
|
||||
"level-type" => [
|
||||
"Alowed types:",
|
||||
|
|
@ -178,8 +179,12 @@ class ServerAPI{
|
|||
" decoration(treecount=<N> grasscount=<M>) - sets amount of decorations",
|
||||
"Preset example:",
|
||||
"2;7,59x1,3x3,2;1;spawn(radius=10 block=89),decoration(treecount=80 grasscount=45)"
|
||||
],
|
||||
"mushroom-spread" => [
|
||||
"Enable or disable mushroom spreading"
|
||||
]
|
||||
]);
|
||||
Block::$mushroomSpread = $this->getProperty("mushroom-spread", Block::$mushroomSpread);
|
||||
Entity::$allowFly = $this->getProperty("allow-flight", true);
|
||||
if(!Entity::$allowFly){
|
||||
ConsoleAPI::warn("Fly checking is enabled! Players may experience issues with kicking while not flying!");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue