A virion for PocketMine-MP to create and manage fake blocks

Overview

🧊 fakeblocks

Create and manage fakeblocks

Description:

A virion for PocketMine-MP to create and manage fake blocks. This virion indicates to the client that there is a block where there really isn't on the server side.

Usage

Import FakeBlockManager class.

use IvanCraft623\fakeblocks\FakeBlockManager;

Register

This virion needs to listen for events, so you will need to register it, we check that it is not registered in case some other plugin has already done it

if (!FakeBlockManager::isRegistered()) {
	FakeBlockManager::register($plugin);
}

$plugin is your Plugin object

Once registered you can do FakeBlockManager::getInstance() to get an instance

Create a FakeBlock

$fakeblock = FakeBlockManager::getInstance()->create(VanillaBlocks::DIAMOND(), $position);

$position is a Position object

$fakeblock will contain a FakeBlock object

Add a viewer for a fake block

This function adds a viewer for the fake block

$fakeblock->addViewer($player);

Remove a viewer for a fake block

This function removes a viewer from the fake block

$fakeblock->removeViewer($player);

Get all viewers of a fake block

$fakeblock->getViewers();

Destroy a fake block

This function will destroy the fake block and make it so the viewers can see the real block

FakeBlockManager::getInstance()->destroy($fakeblock);
You might also like...
Buy and sell crypto top 100 crypto with our fake currency. Donate to and use our referal links for discounts

PLEASE ENABLE SQLITE3 AND GD OR GD2 IN XAMPP TO RUN THE APP! (SEE HOW_TO_SETUP_XAMPP.gif) ![alt text](https://github.com/Tby23rd/Project1-Cryptosimul

A simple and fast pmmp js es6 promise virion

Promises A simple and fast pmmp js es6 promise virion Api usage these examples are in base injectable php these should be easily transferable. Example

[virion] It Implements Simple Using Form Library System

SimpleForm [virion] It Implements Simple Using Form Library System How To Use First, declare the use statement. use AidenKR\SimpleForm\SimpleForm; use

[Virion] A library that helps you use Discord Webhook
[Virion] A library that helps you use Discord Webhook

DiscordHelper How to register Web Hook URL How to register Web Hook URL use NewThing\DiscordHelper\DiscordHelper; DiscordHelper::setURL($YourWebHookU

A Magento 2 module that allows admins to duplicate CMS blocks and pages from their respective grids and en masse.
A Magento 2 module that allows admins to duplicate CMS blocks and pages from their respective grids and en masse.

element119 | CMS Duplicator 📝 Features ✔️ Allows merchants to duplicate CMS blocks and pages from the Action column in the admin grid ✔️ Allows merch

Mage2click toolset to create and manage the Magento Docker development environment with mutagen.io file-sync for macOS and native filesystem mounts on Linux.
Mage2click toolset to create and manage the Magento Docker development environment with mutagen.io file-sync for macOS and native filesystem mounts on Linux.

Mage2click - Magento Docker Toolset Mage2click toolset is a system-wide command-line tool for creating and managing simultaneously running Magento Doc

Highlight code blocks with league/commonmark and Shiki

Highlight code blocks with league/commonmark and Shiki This package contains a block renderer for league/commonmark to highlight code blocks using Shi

Allow SVG images to be used in Magento CMS blocks and pages via the TinyMCE Wysiwyg Editor.
Allow SVG images to be used in Magento CMS blocks and pages via the TinyMCE Wysiwyg Editor.

Hyvä Themes - SVG support for the Magento CMS Wysiwyg Editor Allow SVG images to be used in CMS blocks and pages via the TinyMCE Wysiwyg Editor. hyva-

This plugin adds 95% of 1.16 blocks & items and their functionality
This plugin adds 95% of 1.16 blocks & items and their functionality

INether This plugin adds 95% of 1.16 blocks & items and their functionality Implemented blocks Ancient Debris All types of Basalt Crimson & Warped Fun

Owner
Professional bug creator
null
Cooldown Library (virion) for PocketMine-MP

libCooldown Cooldown Library (virion) for PocketMine-MP Example // libCooldown::newTimer(int $cooldown_time, bool $first_ignore = true): libCooldown;

null 4 Aug 9, 2022
A virion for PocketMine-MP.

libIPGeolocation A virion for PocketMine-MP. You can use this to get the geolocation of an IP from ip-api.com. Usage You can see some example in here:

Hsinwei Chen 3 Feb 14, 2022
PocketMine-MP virion for easy handling of ScoreBoard packets

PocketMine-MP virion for easy handling of ScoreBoard packets

pocketmine virions of avas 3 Apr 9, 2022
InventoryUI - the PocketMine virion that implements the dummy inventory

InventoryUI This is the PocketMine virion that implements the dummy inventory. Differences from previous APIs Chests and other blocks are not placed.

tedo0627 10 Nov 16, 2022
UI virion (library) for PocketMine-MP plugins

Remark - Easy and Asynchronous Commands and Forms Quick Guide - Learn Remark by building a plugin. Install - Add Remark as a library to your plugin. E

DiamondStrider1 8 Jan 1, 2023
Silverstripe module allowing editors to create newsletters using elemental blocks and export them to a sendy instance

Silverstripe Sendy Silverstripe module allowing editors to create newsletters using elemental blocks and export them to a sendy instance. Introduction

Syntro Opensource 4 Apr 20, 2022
A plugin to add more blocks to PocketMine

This plugin aims to add all blocks not included in PocketMine. As of right now the ExtendedBlocks plugin is required to add blocks with IDs above 255.

xSuper 26 Dec 19, 2022
PocketMine-MP Plugin for converting items & blocks name to your language.

ConvertName PocketMine-MP Plugin for converting items & blocks name to your language. Usage Due to license issue, I don't put the language files direc

null 6 Aug 25, 2022
PocketMine-MP plugin that adds new blocks to the server!

CustomBlockLoader PocketMine-MP plugin that adds new blocks to the server! Reference This plugin is experimental. We are not responsible for any probl

avas 5 Aug 6, 2022