-
Notifications
You must be signed in to change notification settings - Fork 8
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
6 changed files
with
121 additions
and
14 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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: EasyWing | ||
main: phuongaz\EasyWing\Loader | ||
author: phuongaz | ||
version: 1.0.2 | ||
api: 3.15.0 | ||
version: 1.0.3 | ||
api: 3.0.0 |
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 @@ | ||
tick-update: 10 #0.5s | ||
|
||
title: "WINGS FORM" | ||
|
||
turn-on: "Turn on wing" | ||
turn-off: "Turn off wing" |
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
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
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 @@ | ||
<?php | ||
|
||
namespace phuongaz\EasyWing\utils; | ||
|
||
use pocketmine\level\particle\Particle; | ||
use pocketmine\math\Vector3; | ||
use pocketmine\network\mcpe\protocol\SpawnParticleEffectPacket; | ||
|
||
class Particles extends Particle { | ||
|
||
public const DRAGON_BREATH_TRAIL = "minecraft:dragon_breath_trail"; | ||
public const DRAGON_BREATH_LINGERING = "minecraft:dragon_breath_lingering"; | ||
public const VILLAGER_HAPPY = "minecraft:villager_happy"; | ||
public const MOBSPELL_EMITTER = "minecraft:mobspell_emitter"; | ||
public const FLAME = "minecraft:basic_flame_particle"; | ||
public const VILLAGER_ANGRY = "minecraft:villager_angry"; | ||
public const BLUE_FLAME = "minecraft:blue_flame_particle"; | ||
|
||
/** @var string $name */ | ||
private $name; | ||
|
||
/** | ||
* CustomParticle constructor. | ||
* @param string $particleName | ||
* @param Vector3 $pos | ||
*/ | ||
public function __construct(string $particleName, Vector3 $pos) { | ||
$this->name = $particleName; | ||
parent::__construct($pos->getX(), $pos->getY(), $pos->getZ()); | ||
} | ||
|
||
public function encode() { | ||
$pk = new SpawnParticleEffectPacket(); | ||
$pk->position = $this->asVector3(); | ||
$pk->particleName = $this->name; | ||
return $pk; | ||
} | ||
} |