Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
skh6075 authored Jul 7, 2020
1 parent d60342e commit d009afe
Show file tree
Hide file tree
Showing 11 changed files with 276 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugin.yml
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
42 changes: 42 additions & 0 deletions src/skh6075/AdvancedNetherite/AdvancedNetherite.php
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 src/skh6075/AdvancedNetherite/item/armor/NetheriteBoots.php
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 src/skh6075/AdvancedNetherite/item/armor/NetheriteChestplate.php
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 src/skh6075/AdvancedNetherite/item/armor/NetheriteHelmet.php
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 src/skh6075/AdvancedNetherite/item/armor/NetheriteLeggings.php
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;
}
}
23 changes: 23 additions & 0 deletions src/skh6075/AdvancedNetherite/item/tool/NetheriteAxe.php
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;
}
}
23 changes: 23 additions & 0 deletions src/skh6075/AdvancedNetherite/item/tool/NetheriteHoe.php
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 src/skh6075/AdvancedNetherite/item/tool/NetheritePickaxe.php
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 src/skh6075/AdvancedNetherite/item/tool/NetheriteShovel.php
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 src/skh6075/AdvancedNetherite/item/tool/NetheriteSword.php
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;
}
}

0 comments on commit d009afe

Please sign in to comment.