mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 03:47:16 +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("GOLD_INGOT", 266);//Implemented
|
||||
define("IRON_SWORD", 267);
|
||||
define("WOODEN_SWORD", 268);
|
||||
define("WOODEN_SHOVEL", 269);
|
||||
define("WOODEN_PICKAXE", 270);
|
||||
define("WOODEN_AXE", 271);
|
||||
define("WOODEN_SWORD", 268);//Implemented
|
||||
define("WOODEN_SHOVEL", 269);//Implemented
|
||||
define("WOODEN_PICKAXE", 270);//Implemented
|
||||
define("WOODEN_AXE", 271);//Implemented
|
||||
define("STONE_SWORD", 272);
|
||||
define("STONE_SHOVEL", 273);
|
||||
define("STONE_PICKAXE", 274);
|
||||
@ -142,4 +142,4 @@ define("NETHER_BRICK", 405);
|
||||
define("QUARTZ", 406);
|
||||
define("NETHER_QUARTZ", 406);
|
||||
|
||||
define("CAMERA", 456);
|
||||
define("CAMERA", 456);
|
||||
|
@ -48,6 +48,10 @@ class Item{
|
||||
IRON_PICKAXE => "IronPickaxeItem",
|
||||
IRON_AXE => "IronAxeItem",
|
||||
IRON_HOE => "IronHoeItem",
|
||||
WOODEN_SWORD => "WoodenSwordItem",
|
||||
WOODEN_SHOVEL => "WoodenShovelItem",
|
||||
WOODEN_PICKAXE => "WoodenPickaxeItem",
|
||||
WOODEN_AXE => "WoodenAxeItem",
|
||||
);
|
||||
protected $block;
|
||||
protected $id;
|
||||
@ -139,4 +143,4 @@ class Item{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
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