mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-05 17:41:46 +00:00
Added Cakes
This commit is contained in:
parent
bbbdaa30d1
commit
d8bf5ce711
@ -129,6 +129,8 @@ define("NETHERRACK", 87);
|
|||||||
define("SOUL_SAND", 88);
|
define("SOUL_SAND", 88);
|
||||||
define("GLOWSTONE_BLOCK", 89);
|
define("GLOWSTONE_BLOCK", 89);
|
||||||
|
|
||||||
|
define("CAKE_BLOCK", 92);
|
||||||
|
|
||||||
define("TRAPDOOR", 96);
|
define("TRAPDOOR", 96);
|
||||||
|
|
||||||
define("STONE_BRICKS", 98);
|
define("STONE_BRICKS", 98);
|
||||||
|
@ -123,7 +123,7 @@ define("COOKED_FISH", 350);
|
|||||||
define("DYE", 351);
|
define("DYE", 351);
|
||||||
define("BONE", 352);
|
define("BONE", 352);
|
||||||
define("SUGAR", 353);
|
define("SUGAR", 353);
|
||||||
|
define("CAKE", 354);
|
||||||
define("BED", 355);
|
define("BED", 355);
|
||||||
|
|
||||||
|
|
||||||
|
@ -109,6 +109,8 @@ abstract class Block extends Vector3{
|
|||||||
SOUL_SAND => "SoulSandBlock",
|
SOUL_SAND => "SoulSandBlock",
|
||||||
GLOWSTONE_BLOCK => "GlowstoneBlock",
|
GLOWSTONE_BLOCK => "GlowstoneBlock",
|
||||||
|
|
||||||
|
CAKE_BLOCK => "CakeBlock",
|
||||||
|
|
||||||
TRAPDOOR => "TrapdoorBlock",
|
TRAPDOOR => "TrapdoorBlock",
|
||||||
|
|
||||||
STONE_BRICKS => "StoneBricksBlock",
|
STONE_BRICKS => "StoneBricksBlock",
|
||||||
|
@ -36,6 +36,7 @@ class Item{
|
|||||||
WATER_BUCKET => "WaterBucketItem",
|
WATER_BUCKET => "WaterBucketItem",
|
||||||
LAVA_BUCKET => "LavaBucketItem",
|
LAVA_BUCKET => "LavaBucketItem",
|
||||||
IRON_DOOR => "IronDoorItem",
|
IRON_DOOR => "IronDoorItem",
|
||||||
|
CAKE => "CakeItem",
|
||||||
BED => "BedItem",
|
BED => "BedItem",
|
||||||
PAINTING => "PaintingItem",
|
PAINTING => "PaintingItem",
|
||||||
COAL => "CoalItem",
|
COAL => "CoalItem",
|
||||||
|
33
src/material/block/solid/Cake.php
Normal file
33
src/material/block/solid/Cake.php
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
-
|
||||||
|
/ \
|
||||||
|
/ \
|
||||||
|
/ PocketMine \
|
||||||
|
/ MP \
|
||||||
|
|\ @shoghicp /|
|
||||||
|
|. \ / .|
|
||||||
|
| .. \ / .. |
|
||||||
|
| .. | .. |
|
||||||
|
| .. | .. |
|
||||||
|
\ | /
|
||||||
|
\ | /
|
||||||
|
\ | /
|
||||||
|
\ | /
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
class CakeBlock extends TransparentBlock{
|
||||||
|
public function __construct(){
|
||||||
|
parent::__construct(CAKE_BLOCK, 0, "Cake Block");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
34
src/material/item/generic/Cake.php
Normal file
34
src/material/item/generic/Cake.php
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
-
|
||||||
|
/ \
|
||||||
|
/ \
|
||||||
|
/ PocketMine \
|
||||||
|
/ MP \
|
||||||
|
|\ @shoghicp /|
|
||||||
|
|. \ / .|
|
||||||
|
| .. \ / .. |
|
||||||
|
| .. | .. |
|
||||||
|
| .. | .. |
|
||||||
|
\ | /
|
||||||
|
\ | /
|
||||||
|
\ | /
|
||||||
|
\ | /
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
class CakeItem extends Item{
|
||||||
|
public function __construct($meta = 0, $count = 1){
|
||||||
|
$this->block = BlockAPI::get(CAKE_BLOCK);
|
||||||
|
$this->maxStackSize = 1;
|
||||||
|
parent::__construct(CAKE, 0, $count, "Cake");
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user