mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 04:17:07 +00:00
Added Wooden Tools Item Settings
This commit is contained in:
parent
13ae305bdd
commit
38d361bb07
@ -37,10 +37,10 @@ define("DIAMOND", 264);//Implemented
|
|||||||
define("IRON_INGOT", 265);//Implemented
|
define("IRON_INGOT", 265);//Implemented
|
||||||
define("GOLD_INGOT", 266);//Implemented
|
define("GOLD_INGOT", 266);//Implemented
|
||||||
define("IRON_SWORD", 267);
|
define("IRON_SWORD", 267);
|
||||||
define("WOODEN_SWORD", 268);
|
define("WOODEN_SWORD", 268);//Implemented
|
||||||
define("WOODEN_SHOVEL", 269);
|
define("WOODEN_SHOVEL", 269);//Implemented
|
||||||
define("WOODEN_PICKAXE", 270);
|
define("WOODEN_PICKAXE", 270);//Implemented
|
||||||
define("WOODEN_AXE", 271);
|
define("WOODEN_AXE", 271);//Implemented
|
||||||
define("STONE_SWORD", 272);
|
define("STONE_SWORD", 272);
|
||||||
define("STONE_SHOVEL", 273);
|
define("STONE_SHOVEL", 273);
|
||||||
define("STONE_PICKAXE", 274);
|
define("STONE_PICKAXE", 274);
|
||||||
|
@ -48,6 +48,10 @@ class Item{
|
|||||||
IRON_PICKAXE => "IronPickaxeItem",
|
IRON_PICKAXE => "IronPickaxeItem",
|
||||||
IRON_AXE => "IronAxeItem",
|
IRON_AXE => "IronAxeItem",
|
||||||
IRON_HOE => "IronHoeItem",
|
IRON_HOE => "IronHoeItem",
|
||||||
|
WOODEN_SWORD => "WoodenSwordItem",
|
||||||
|
WOODEN_SHOVEL => "WoodenShovelItem",
|
||||||
|
WOODEN_PICKAXE => "WoodenPickaxeItem",
|
||||||
|
WOODEN_AXE => "WoodenAxeItem",
|
||||||
);
|
);
|
||||||
protected $block;
|
protected $block;
|
||||||
protected $id;
|
protected $id;
|
||||||
|
33
src/material/item/generic/WoodenAxe.php
Normal file
33
src/material/item/generic/WoodenAxe.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 WoodenAxeItem extends Item{
|
||||||
|
public function __construct($meta = 0, $count = 1){
|
||||||
|
parent::__construct(WOODEN_AXE, 0, $count, "WoodenAxeItem");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
33
src/material/item/generic/WoodenPickaxe.php
Normal file
33
src/material/item/generic/WoodenPickaxe.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 WoodenPickaxeItem extends Item{
|
||||||
|
public function __construct($meta = 0, $count = 1){
|
||||||
|
parent::__construct(WOODEN_PICKAXE, 0, $count, "WoodenPickaxeItem");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
33
src/material/item/generic/WoodenShovel.php
Normal file
33
src/material/item/generic/WoodenShovel.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 WoodenShovelItem extends Item{
|
||||||
|
public function __construct($meta = 0, $count = 1){
|
||||||
|
parent::__construct(WOODEN_SHOVEL, 0, $count, "WoodenShovelItem");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
33
src/material/item/generic/WoodenSword.php
Normal file
33
src/material/item/generic/WoodenSword.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 WoodenSwordItem extends Item{
|
||||||
|
public function __construct($meta = 0, $count = 1){
|
||||||
|
parent::__construct(WOODEN_SWORD, 0, $count, "WoodenSwordItem");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user