This repository has been archived by the owner on Nov 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
276 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
name: AdvancedNetherite | ||
main: skh6075\AdvancedNetherite\AdvancedNetherite | ||
author: AvasKr | ||
api: 3.10.0 | ||
version: 1.0.0 | ||
website: https://github.com/GodVas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
|
||
namespace skh6075\AdvancedNetherite; | ||
|
||
use pocketmine\plugin\PluginBase; | ||
use pocketmine\item\Item; | ||
use pocketmine\item\ItemFactory; | ||
|
||
use skh6075\AdvancedNetherite\item\armor\{ | ||
NetheriteHelmet, | ||
NetheriteChestplate, | ||
NetheriteLeggings, | ||
NetheriteBoots | ||
}; | ||
use skh6075\AdvancedNetherite\item\tool\{ | ||
NetheriteAxe, | ||
NetheriteHoe, | ||
NetheritePickaxe, | ||
NetheriteShovel, | ||
NetheriteSword | ||
}; | ||
|
||
class AdvancedNetherite extends PluginBase { | ||
|
||
|
||
public function onLoad (): void{ | ||
/** Netherite Armor Item */ | ||
ItemFactory::registerItem (new NetheriteHelmet (), true); | ||
ItemFactory::registerItem (new NetheriteChestplate (), true); | ||
ItemFactory::registerItem (new NetheriteLeggings (), true); | ||
ItemFactory::registerItem (new NetheriteBoots (), true); | ||
/** Netherite Tool Item */ | ||
ItemFactory::registerItem (new NetheriteAxe (), true); | ||
//ItemFactory::registerItem (new NetheriteHoe (), true); | ||
ItemFactory::registerItem (new NetheritePickaxe (), true); | ||
ItemFactory::registerItem (new NetheriteShovel (), true); | ||
ItemFactory::registerItem (new NetheriteSword (), true); | ||
|
||
Item::initCreativeItems (); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/skh6075/AdvancedNetherite/item/armor/NetheriteBoots.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
|
||
namespace skh6075\AdvancedNetherite\item\armor; | ||
|
||
use pocketmine\item\Armor; | ||
|
||
class NetheriteBoots extends Armor { | ||
|
||
|
||
public function __construct (int $meta = 0) { | ||
parent::__construct (751, $meta, 'Netherite Boots'); | ||
} | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getDefensePoints (): int{ | ||
return 3; | ||
} | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getMaxDurability (): int{ | ||
return 481; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/skh6075/AdvancedNetherite/item/armor/NetheriteChestplate.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
|
||
namespace skh6075\AdvancedNetherite\item\armor; | ||
|
||
use pocketmine\item\Armor; | ||
|
||
class NetheriteChestplate extends Armor { | ||
|
||
|
||
public function __construct (int $meta = 0) { | ||
parent::__construct (749, $meta, 'Netherite Chestplate'); | ||
} | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getDefensePoints (): int{ | ||
return 8; | ||
} | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getMaxDurability (): int{ | ||
return 592; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/skh6075/AdvancedNetherite/item/armor/NetheriteHelmet.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
|
||
namespace skh6075\AdvancedNetherite\item\armor; | ||
|
||
use pocketmine\item\Armor; | ||
|
||
class NetheriteHelmet extends Armor { | ||
|
||
|
||
public function __construct (int $meta = 0) { | ||
parent::__construct (748, $meta, 'Netherite Helmet'); | ||
} | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getDefensePoints (): int{ | ||
return 3; | ||
} | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getMaxDurability (): int{ | ||
return 407; | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
src/skh6075/AdvancedNetherite/item/armor/NetheriteLeggings.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
|
||
namespace skh6075\AdvancedNetherite\item\armor; | ||
|
||
use pocketmine\item\Armor; | ||
|
||
class NetheriteLeggings extends Armor { | ||
|
||
|
||
|
||
public function __construct (int $meta = 0) { | ||
parent::__construct (750, $meta, 'Netherite Leggings'); | ||
} | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getDefensePoints (): int{ | ||
return 6; | ||
} | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getMaxDurability (): int{ | ||
return 555; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
|
||
namespace skh6075\AdvancedNetherite\item\tool; | ||
|
||
use pocketmine\item\Tool; | ||
use pocketmine\item\Durable; | ||
|
||
class NetheriteAxe extends Tool { | ||
|
||
|
||
public function __construct (int $meta = 0, int $count = 1) { | ||
parent::__construct (746, $meta, $count, 'Netherite Axe'); | ||
} | ||
|
||
public function isAxe () { | ||
return Tool::TIER_DIAMOND; | ||
} | ||
|
||
public function getMaxDurability (): int{ | ||
return 407; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
|
||
namespace skh6075\AdvancedNtherite\item\tool; | ||
|
||
use pocketmine\item\Tool; | ||
use pocketmine\item\Durable; | ||
|
||
class NetheriteHoe extends Tool { | ||
|
||
|
||
public function __construct (int $meta = 0, int $count = 1) { | ||
parent::__construct (747, $meta, $count, 'Netherite Hoe'); | ||
} | ||
|
||
public function isHoe () { | ||
return Tool::TIER_DIAMOND; | ||
} | ||
|
||
public function getMaxDurability (): int{ | ||
return 407; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
src/skh6075/AdvancedNetherite/item/tool/NetheritePickaxe.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
|
||
namespace skh6075\AdvancedNetherite\item\tool; | ||
|
||
use pocketmine\item\Tool; | ||
use pocketmine\item\Durable; | ||
|
||
class NetheritePickaxe extends Tool { | ||
|
||
|
||
public function __construct (int $meta = 0, int $count = 1) { | ||
parent::__construct (745, $meta, $count, 'Netherite Pickaxe'); | ||
} | ||
|
||
public function isPickaxe () { | ||
return Tool::TIER_DIAMOND; | ||
} | ||
|
||
public function getMaxDurability (): int{ | ||
return 407; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
src/skh6075/AdvancedNetherite/item/tool/NetheriteShovel.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
|
||
namespace skh6075\AdvancedNetherite\item\tool; | ||
|
||
use pocketmine\item\Tool; | ||
use pocketmine\item\Durable; | ||
|
||
class NetheriteShovel extends Tool { | ||
|
||
|
||
public function __construct (int $meta = 0, int $count = 1) { | ||
parent::__construct (744, $meta, $count, 'Netherite Shovel'); | ||
} | ||
|
||
public function isShovel () { | ||
return Tool::TIER_DIAMOND; | ||
} | ||
|
||
public function getMaxDurability (): int{ | ||
return 407; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
src/skh6075/AdvancedNetherite/item/tool/NetheriteSword.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
|
||
namespace skh6075\AdvancedNetherite\item\tool; | ||
|
||
use pocketmine\item\Tool; | ||
use pocketmine\item\Durable; | ||
|
||
class NetheriteSword extends Tool { | ||
|
||
|
||
public function __construct (int $meta = 0, int $count = 1) { | ||
parent::__construct (743, $meta, $count, 'Netherite Sword'); | ||
} | ||
|
||
public function isSword () { | ||
return Tool::TIER_DIAMOND; | ||
} | ||
|
||
public function getMaxDurability (): int{ | ||
return 407; | ||
} | ||
} |