All Projects → TheBlackPlague → PlagueEntity

TheBlackPlague / PlagueEntity

Licence: other
A general-purpose custom entity API for PocketMine-MP.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to PlagueEntity

ServerTools
ServerTools is Pocketmine-MP plugin containing a set of tools that allows you to manage your server directly from the game!
Stars: ✭ 23 (+76.92%)
Mutual labels:  pmmp
S3DItemToolS
[Plugin] A Plugin implement 3D Modeling Item in API 3 and 4.
Stars: ✭ 29 (+123.08%)
Mutual labels:  pmmp
CommandShop
Players have to pay items or money to use specific commands! A PocketMine plugin.
Stars: ✭ 32 (+146.15%)
Mutual labels:  pmmp
skinapi
A virion library for saving, modifying and getting skins from png's
Stars: ✭ 19 (+46.15%)
Mutual labels:  pmmp
MagicWE2
[MagicWE2] Lag free asynchronous world editor for PMMP with plenty of options
Stars: ✭ 109 (+738.46%)
Mutual labels:  pmmp
VirionTools
A handy plugin for developers who wish to compile and inject virions without using Poggit.
Stars: ✭ 17 (+30.77%)
Mutual labels:  pmmp
Slapper
The new home of Slapper, the NPC plugin for PocketMine.
Stars: ✭ 99 (+661.54%)
Mutual labels:  pmmp
Pocketmine-School
A Website To Teach Everything About PocketMine-MP
Stars: ✭ 15 (+15.38%)
Mutual labels:  pmmp
WarpUI
A warp UI and world UI teleportation plugin that supports rotation and pitch.
Stars: ✭ 14 (+7.69%)
Mutual labels:  pmmp
SimplePets
🐕‍🦺 An Ultimate Pets plugin for PocketMine-MP.
Stars: ✭ 20 (+53.85%)
Mutual labels:  pmmp
EasyEdit
A feature-rich World Editor for PocketMine-MP
Stars: ✭ 26 (+100%)
Mutual labels:  pmmp
SkyBlock
🦅 SkyBlock for PocketMine-MP
Stars: ✭ 102 (+684.62%)
Mutual labels:  pmmp
Emotes
This plugin allows players to use their favorite emotes on the server!
Stars: ✭ 15 (+15.38%)
Mutual labels:  pmmp
Pathfinding
A pmmp virion (library) for pathfinding using A*
Stars: ✭ 36 (+176.92%)
Mutual labels:  pmmp
InvSee
A PocketMine-MP plugin that lets you view and modify offline and online players' inventories in real-time!
Stars: ✭ 19 (+46.15%)
Mutual labels:  pmmp
CustomItemLoader
This is a plugin that brings the custom item to your server for PocketMine-MP!
Stars: ✭ 87 (+569.23%)
Mutual labels:  pmmp
RapidPM
High performance extension that implements parts of PocketMine-MP (PMMP) with Zephir
Stars: ✭ 31 (+138.46%)
Mutual labels:  pmmp
Discord-MCPE
Connect your PMMP server with Discord!
Stars: ✭ 27 (+107.69%)
Mutual labels:  pmmp
NPC
The NPC plugin for PocketMine-MP
Stars: ✭ 28 (+115.38%)
Mutual labels:  pmmp
MysteryBox
Crate implemention for PocketMine-MP (PMMP)
Stars: ✭ 19 (+46.15%)
Mutual labels:  pmmp

PlagueEntity

A general-purpose custom entity API for PocketMine-MP.

SplashImage

Documentation

This is a very basic guide of spawning your entity using clear standard methods available in the API.

  • First you must have a resources directory in your plugin base directory. Documentation on how to create a directory is not provided. This resources folder must contain the skin, and custom geometry for the custom entity you're trying to spawn.

    Custom geometry and skin can be created using BlockBench. An example is available in the example directory of the repository.

    Expected structure:

    - <Plugin Name>
    |- plugin.yml
    |- src
    |- resources
     | - Skin001.png <in PNG FORMAT ONLY>
     | - Geometry001.json <in JSON FORMAT ONLY>
    

    If your structure is not similar, you will not be provided any help by me in any way.

  • Copy the PlagueEntity directory in the project repository to your src directory. Then import it your class using:

    use PlagueEntity\PE;
  • Then create an array containing the names and format of these files:

    $myFile = ["Skin001.png", "Geometry001.json"];
  • Setup the API by calling the Setup()method:

    PE::Setup(<PluginBase Instance>, $myFile);
  • Spawn an entity for player using the API:

    $entityName = "Skin001"; // can set to anything. Must be unique to each entity. Generate it however you like.
    $entitySkinPNG = "Skin001"; // Your skin file name.
    $entityGeometryName = "geometry001"; // Your model name inside the JSON.
    $entityGeometryJSONFile = "Geometry001"; // Your JSON file name.
    $position = new Vector3(<int|float>x, <int|float>y, <int|float>z);
    PE::SpawnPlagueEntity(<Player Instance>, $position, $entityName, $entitySkinPNG, $entityGeometryName, $entityGeometryJSONFile);
  • [OPTIONAL] DeSpawn an entity for player using the API:

    $entityName = "Skin001"; // Your unique entity name.
    PE::DeSpawnPlagueEntity(<Player Instance>, $entityName);

It is that simple. If you use this API in your server, please let me know and I'll add your server to this page. (I can choose not to)

License

PlagueEntity License

Copyright (c) 2019 Shaheryar Sohail

...

The full version of license is available on this repository. By using this API, you're by default agreeing to it.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].