-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nhớ 2 năm trước ngồi máy dịch plugin này gãy cả tay =)))))) Ám ảnh vãi cả l*z
- Loading branch information
Showing
36 changed files
with
4,214 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,38 @@ | ||
name: PiggyCustomEnchants | ||
main: PiggyCustomEnchants\Main | ||
version: 1.1.3 | ||
api: [1.1.3, 2.0.0, 2.0.1, 3.0.0, 3.0.1, 3.0.0-ALPHA1, 3.0.0-ALPHA2, 3.0.0-ALPHA3, 3.0.0-ALPHA4, 3.0.0-ALPHA5, 3.0.0-ALPHA6, 3.0.0-ALPHA7, 3.0.0-ALPHA8, 3.0.0-ALPHA9, 3.0.0-ALPHA10, 3.0.0-ALPHA11, 3.0.0-ALPHA12, 3.0.0-ALPHA13, 3.0.0-ALPHA14, 3.0.0-ALPHA15] | ||
load: POSTWORLD | ||
author: DaPigGuy | ||
translator: GamerSoiCon | ||
permissions: | ||
piggycustomenchants: | ||
default: false | ||
description: "Sử dụng mọi thứ trong PiggyCustomEnchants" | ||
children: | ||
piggycustomenchants.command: | ||
default: op | ||
description: "Sử dụng tất cả lệnh trong PiggyCustomEnchants " | ||
children: | ||
piggycustomenchants.command.ce: | ||
default: op | ||
description: "Sử dụng /customenchant" | ||
children: | ||
piggycustomenchants.command.ce.about: | ||
default: true | ||
description: "Sử dụng /customenchant about" | ||
piggycustomenchants.command.ce.enchant: | ||
default: op | ||
description: "Sử dụng /customenchant enchant" | ||
piggycustomenchants.command.ce.help: | ||
default: true | ||
description: "Sử dụng /customenchant help" | ||
piggycustomenchants.command.ce.info: | ||
default: true | ||
description: "Sử dụng /customenchant info" | ||
piggycustomenchants.command.ce.list: | ||
default: true | ||
description: "Sử dụng /customenchant list" | ||
piggycustomenchants.overridecheck: | ||
default: false | ||
description: "Có thể dùng CustomEnchants Book lên Item và Enchant lên vật phẩm với bất cứ CE nào" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,40 @@ | ||
# config.yml được việt hóa bởi Sói | ||
#,-.----. | ||
#\ / \ ,----.. ,---,. | ||
#| : \ ,--, / / \ ,' .' | | ||
#| | .\ :,--.'| | : :,---.' | | ||
#. : |: || |, ,----._,. ,----._,. . | ;. /| | .' | ||
#| | \ :`--'_ / / ' / / / ' / .--,. ; /--` : : |-, | ||
#| : . /,' ,'| | : || : | /_ ./|; | ; : | ;/| | ||
#; | |`-' ' | | | | .\ .| | .\ ., ' , ' :| : | | : .' | ||
#| | ; | | : . ; '; |. ; '; /___/ \: |. | '___ | | |-, | ||
#: ' | ' : |__' . . |' . . |. \ ' |' ; : .'|' : ;/| | ||
#: : : | | '.'|`---`-'| | `---`-'| | \ ; :' | '/ :| | \ | ||
#| | : ; : ;.'__/\_: | .'__/\_: | \ \ ;| : / | : .' | ||
#`---'.| | , / | : : | : : : \ \\ \ .' | | ,' | ||
# `---` ---`-' \ \ / \ \ / \ ' ; `---` `----' | ||
# `--`-' `--`-' `--` | ||
|
||
# Tùy chỉnh màu cho Enchants tùy vào độ hiếm | ||
# Danh sách màu có thể dùng : | ||
# black, dark_blue, dark_green, dark_aqua, dark_red, dark_purple, gold, gray, dark_gray, blue, green, aqua, red, light_purple, yellow, and white. | ||
color: | ||
common: yellow | ||
uncommon: blue | ||
rare: gold | ||
mythic: light_purple | ||
# true/false để bật/tắt tính năng (UIs) FormAPI bởi Jojoe77777. Yêu cầu cài plugin FormAPI tại đây : http://123link.pw/1v62p | ||
forms: | ||
enabled: false | ||
# Vô hiệu hóa để ngăn chặn lửa lan từ Blaze Enchants. (Khuyên các bạn nên để false) | ||
blaze: | ||
flames: false | ||
# Drop vật phẩm khi giết vật/người từ Chicken Enchant. Mẫu: ("id:meta:số lượng"). Nếu lượng drop nhiều, plugin sẽ tự chọn ngẫn nhiên <3 VD : ["266:0:1", "264:0:64"] | ||
chicken: | ||
rare-drop: ["266:0:1"] | ||
# Nếu bạn để trống phần này, vật phẩm có Enchant Jetpack sẽ có thể bay bất kì nơi nào trong server, ngược lại khi điền tên world, Jetpack sẽ không thể bay ở world đó, VD : ["PvPArena", "AnotherWorld"] | ||
jetpack: | ||
disabled: [] | ||
# Vô hiệu hóa để ngăn chặn lửa lan từ Lightning Enchants. (Khuyên các bạn nên để false) | ||
lightning: | ||
flames: false |
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,64 @@ | ||
<?php | ||
|
||
namespace PiggyCustomEnchants\Blocks; | ||
|
||
use pocketmine\block\Block; | ||
use pocketmine\block\Obsidian; | ||
use pocketmine\item\Item; | ||
use pocketmine\Player; | ||
|
||
class PiggyObsidian extends Obsidian | ||
{ | ||
private $age = 0; | ||
|
||
public function __construct($meta = 0) | ||
{ | ||
parent::__construct($meta); | ||
} | ||
|
||
public function getName(): string | ||
{ | ||
return $this->isMagmaWalker() ? "Magmawalker Obsidian" : "Obsidian"; | ||
} | ||
|
||
public function isMagmaWalker() | ||
{ | ||
return $this->getDamage() == 15; | ||
} | ||
|
||
public function onRandomTick() : void | ||
{ | ||
if ($this->isMagmaWalker()) { | ||
$count = 0; | ||
$random = mt_rand(0, 100); | ||
for ($x = -1; $x <= 1; $x++) { | ||
for ($z = -1; $z <= 1; $z++) { | ||
$pos = $this->add($x, 0, $z); | ||
if ($this !== $pos) { | ||
$block = $this->getLevel()->getBlock($pos); | ||
if ($block->getId() == $this->getId() && $block->isMagmaWalker()) { | ||
$count++; | ||
} | ||
} | ||
} | ||
} | ||
if ($random <= 33.33 || $count < 4) { | ||
$this->age++; | ||
} | ||
if ($this->age >= 4) { | ||
$this->getLevel()->useBreakOn($this); | ||
} | ||
$this->getLevel()->scheduleDelayedBlockUpdate($this, mt_rand(1, 2) * 20); | ||
} | ||
} | ||
|
||
public function onBreak(Item $item, Player $player = null): bool | ||
{ | ||
return $this->getLevel()->setBlock($this, Block::get($this->isMagmaWalker() ? Block::LAVA : Block::AIR), true, true); | ||
} | ||
|
||
public function getDrops(Item $item): array | ||
{ | ||
return $this->isMagmaWalker() ? [] : parent::getDrops($item); | ||
} | ||
} |
Oops, something went wrong.