mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 13:09:44 +00:00
Added InfoUpdate, InfoUpdate2, Reserved6, InvisibleBedrock blocks
This commit is contained in:
parent
9e4d6ee479
commit
77967e482b
6 changed files with 133 additions and 0 deletions
|
|
@ -133,6 +133,7 @@ define("LIT_PUMPKIN", 91);
|
||||||
define("JACK_O_LANTERN", 91);
|
define("JACK_O_LANTERN", 91);
|
||||||
define("CAKE_BLOCK", 92);
|
define("CAKE_BLOCK", 92);
|
||||||
|
|
||||||
|
define("INVISIBLE_BEDROCK", 95);
|
||||||
define("TRAPDOOR", 96);
|
define("TRAPDOOR", 96);
|
||||||
|
|
||||||
define("STONE_BRICKS", 98);
|
define("STONE_BRICKS", 98);
|
||||||
|
|
@ -191,3 +192,7 @@ define("BEETROOT_BLOCK", 244);
|
||||||
define("STONECUTTER", 245);
|
define("STONECUTTER", 245);
|
||||||
define("GLOWING_OBSIDIAN", 246);
|
define("GLOWING_OBSIDIAN", 246);
|
||||||
define("NETHER_REACTOR", 247);
|
define("NETHER_REACTOR", 247);
|
||||||
|
define("INFO_UPDATE", 248);
|
||||||
|
define("INFO_UPDATE2", 249);
|
||||||
|
|
||||||
|
define("RESERVED6", 255);
|
||||||
|
|
@ -102,6 +102,8 @@ abstract class Block extends Position{
|
||||||
GLOWSTONE_BLOCK => "GlowstoneBlock",
|
GLOWSTONE_BLOCK => "GlowstoneBlock",
|
||||||
|
|
||||||
LIT_PUMPKIN => "LitPumpkinBlock",
|
LIT_PUMPKIN => "LitPumpkinBlock",
|
||||||
|
INVISIBLE_BEDROCK => "InvisibleBedrockBlock",
|
||||||
|
|
||||||
CAKE_BLOCK => "CakeBlock",
|
CAKE_BLOCK => "CakeBlock",
|
||||||
|
|
||||||
TRAPDOOR => "TrapdoorBlock",
|
TRAPDOOR => "TrapdoorBlock",
|
||||||
|
|
@ -146,6 +148,9 @@ abstract class Block extends Position{
|
||||||
STONECUTTER => "StonecutterBlock",
|
STONECUTTER => "StonecutterBlock",
|
||||||
GLOWING_OBSIDIAN => "GlowingObsidianBlock",
|
GLOWING_OBSIDIAN => "GlowingObsidianBlock",
|
||||||
NETHER_REACTOR => "NetherReactorBlock",
|
NETHER_REACTOR => "NetherReactorBlock",
|
||||||
|
INFO_UPDATE => "InfoUpdateBlock",
|
||||||
|
INFO_UPDATE2 => "InfoUpdate2Block",
|
||||||
|
RESERVED6 => "Reserved6Block",
|
||||||
);
|
);
|
||||||
protected $id;
|
protected $id;
|
||||||
protected $meta;
|
protected $meta;
|
||||||
|
|
|
||||||
29
src/material/block/solid/InfoUpdate.php
Normal file
29
src/material/block/solid/InfoUpdate.php
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* @author PocketMine Team
|
||||||
|
* @link http://www.pocketmine.net/
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
class InfoUpdateBlock extends SolidBlock{
|
||||||
|
public function __construct(){
|
||||||
|
parent::__construct(INFO_UPDATE, 0, "InfoUpdate");
|
||||||
|
$this->breakable = true;
|
||||||
|
$this->hardness = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
29
src/material/block/solid/InfoUpdate2.php
Normal file
29
src/material/block/solid/InfoUpdate2.php
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* @author PocketMine Team
|
||||||
|
* @link http://www.pocketmine.net/
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
class InfoUpdate2Block extends SolidBlock{
|
||||||
|
public function __construct(){
|
||||||
|
parent::__construct(INFO_UPDATE2, 0, "InfoUpdate2");
|
||||||
|
$this->breakable = true;
|
||||||
|
$this->hardness = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
36
src/material/block/solid/InvisibleBedrock.php
Normal file
36
src/material/block/solid/InvisibleBedrock.php
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* @author PocketMine Team
|
||||||
|
* @link http://www.pocketmine.net/
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
class InvisibleBedrockBlock extends SolidBlock{
|
||||||
|
public function __construct(){
|
||||||
|
parent::__construct(INVISIBLE_BEDROCK, 0, "InvisibleBedrock");
|
||||||
|
$this->breakable = false;
|
||||||
|
$this->hardness = 3600000;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function isBreakable(Item $item, Player $player){
|
||||||
|
if(($player->gamemode & 0x01) === 0x01){
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
29
src/material/block/solid/Reserved6.php
Normal file
29
src/material/block/solid/Reserved6.php
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* @author PocketMine Team
|
||||||
|
* @link http://www.pocketmine.net/
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
class Reserved6Block extends SolidBlock{
|
||||||
|
public function __construct(){
|
||||||
|
parent::__construct(RESERVED6, 0, "reserved6");
|
||||||
|
$this->breakable = true;
|
||||||
|
$this->hardness = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue