Coder Social home page Coder Social logo

extendedblocks's Introduction

ExtendedBlocks Poggit-CI

This plugin adds the compatibility to add more blocks above the 255 ID in Pocketmine API 3.0.0+

Archived

This repository is archived because PM4 has just released so this plugin is completely pointless. If you wish to convert these blocks into PM4 blocks you should use ExtendedBlocksConverter

Important

Warning: If you remove this plugin after some blocks has been placed it may transform into a Reserved6 block and can't be reversible. Also this plugin is a temporary solution until PM 4 is fully released so don't except this to work or any updates.

Note: This plugin may affect your server performance if too many blocks are in your world. Use this plugin at your own risk!

To update this plugin safely you must stop your server and install the updated version, then you can start the server again.

How the plugins works

This plugin uses a Tile Entity which saves the registered blocks from another plugin and a Placeholder block which replaces the Reserved6 that makes instance with the block you want that uses PlaceholderTrait and gives info to the server.

It checks when a LevelChunkPacket is sent and finds every tile within the chunk that is a Placeholder block and sends the block to the player.

How to use the plugin

For now you would need to use another plugin that register the blocks itself.

For the blocks to be able to register correctly you must add this trait in the block class:

use JavierLeon9966\ExtendedBlocks\block\PlaceholderTrait;

Soon It'll be able to add new blocks in a configuration, but for now it's just like a API plugin.

It's recommended to use this methods when the plugin starts loading:

use pocketmine\block\BlockFactory;
use pocketmine\item\ItemBlock;
use pocketmine\plugin\PluginBase;
use JavierLeon9966\ExtendedBlocks\item\ItemFactory;
class Plugin extends PluginBase{
  public function onLoad(){
    BlockFactory::registerBlock($block);
    ItemFactory::addCreativeItem(ItemFactory::get(255 - $block->getId())); //Usually most blocks
  }
  ...
}

Format you must use

This is a example of how your class must look for it to work properly

use pocketmine\block\Block; //You can extend any class but be a Block
use JavierLeon9966\ExtendedBlocks\block\PlaceholderTrait;
class Sample extends Block{
  use PlaceholderTrait;
  protected $id = 526; //The id of the block must be positive
  public function __construct(int $meta = 0){ //Optional
    $this->meta = $meta;
  }
  ...
}

extendedblocks's People

Contributors

fuyutsuki avatar javierleon9966 avatar poggit-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

extendedblocks's Issues

variable found

Hello when I put
public function onLoad(){ BlockFactory::registerBlock($block); ItemFactory::addCreativeItem(ItemFactory::get(255 - $block->getId()));
This puts me variable not found
Thanks.

Support

Not Support AntiXray? The Box Can Update To Unknown block update

Too many blocks in a chunk.

Hello an error occurred due to too large a quantity of block with an id greater than 255 in a single one is even chunck I would like to have an answer and not a closure of this issue.
IMG_20210417_143544

ExtendedBlocks Server Crash

DG-Blocks = ExtendedBlocks

Too many packets in a single batch
File: pmsrc/src/pocketmine/network/mcpe/protocol/BatchPacket
Line: 101
Type: UnexpectedValueException

#0 plugins/DG-Blocks.3.9.0.phar/src/JavierLeon9966/ExtendedBlocks/Main(331): pocketmine\network\mcpe\protocol\BatchPacket->getPackets()
#1 pmsrc/src/pocketmine/plugin/MethodEventExecutor(42): JavierLeon9966\ExtendedBlocks\Main->onDataPacketSend(object pocketmine\event\server\DataPacketSendEvent)
#2 pmsrc/src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object JavierLeon9966\ExtendedBlocks\Main, object pocketmine\event\server\DataPacketSendEvent)
#3 pmsrc/src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\server\DataPacketSendEvent)
#4 pmsrc/src/pocketmine/Player(3354): pocketmine\event\Event->call()
#5 pmsrc/src/pocketmine/Server(1761): pocketmine\Player->sendDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket, boolean , boolean )
#6 pmsrc/src/pocketmine/Server(1743): pocketmine\Server->broadcastPacketsCallback(object pocketmine\network\mcpe\protocol\BatchPacket, array[1], boolean )
#7 pmsrc/src/pocketmine/level/Level(1024): pocketmine\Server->batchPackets(array[1], array[1200], boolean , boolean )
#8 plugins/DG-Blocks.3.9.0.phar/src/JavierLeon9966/ExtendedBlocks/Main(344): pocketmine\level\Level->sendBlocks(array[1], array[1200], integer 11)
#9 pmsrc/src/pocketmine/scheduler/ClosureTask(61): JavierLeon9966\ExtendedBlocks\Main::JavierLeon9966\ExtendedBlocks{closure}(integer 160801)
#10 pmsrc/src/pocketmine/scheduler/TaskHandler(137): pocketmine\scheduler\ClosureTask->onRun(integer 160801)
#11 pmsrc/src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 160801)
#12 pmsrc/src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 160801)
#13 pmsrc/src/pocketmine/Server(2389): pocketmine\plugin\PluginManager->tickSchedulers(integer 160801)
#14 pmsrc/src/pocketmine/Server(2152): pocketmine\Server->tick()
#15 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
#16 pmsrc/src/pocketmine/Server(1586

PM4

add example to add the block

How can i fox this ?

InvalidArgumentException: "Unmapped ID/metadata combination 526:0" (EXCEPTION) in "pmsrc/src/pocketmine/network/mcpe/convert/ItemTranslator" at line 149

[00:16:17] [Server thread/CRITICAL]: #0 pmsrc/src/pocketmine/network/mcpe/NetworkBinaryStream(262): pocketmine\network\mcpe\convert\ItemTranslator->toNetworkId(integer 526, integer 0)

Idea

Can you plz code the config.

its very hard to add evry Block science the 1.14 Update

But great job👍

Error by ExtendedBlocks

[20:37:48] [Server thread/CRITICAL]: Error: "Call to a member function toArray() on array" (EXCEPTION) in "plugins/ExtendedBlocks_dev-28.phar/src/JavierLeon9966/ExtendedBlocks/item/ItemFactory" at line 20

[20:37:48] [Server thread/CRITICAL]: #0 plugins/ExtendedBlocks_dev-28.phar/src/JavierLeon9966/ExtendedBlocks/Main(63): JavierLeon9966\ExtendedBlocks\item\ItemFactory::init()

[20:37:48] [Server thread/CRITICAL]: #1 pmsrc/src/pocketmine/plugin/PluginManager(182): JavierLeon9966\ExtendedBlocks\Main->onLoad()

[20:37:48] [Server thread/CRITICAL]: #2 pmsrc/src/pocketmine/plugin/PluginManager(346): pocketmine\plugin\PluginManager->loadPlugin(string[50] /home/minecraft/plugins/ExtendedBlocks_dev-28.phar, array[2])

SERVER crashed for this problem

Error: Too many packets in a single batch
File: pmsrc/src/pocketmine/network/mcpe/protocol/BatchPacket
Line: 101
Type: UnexpectedValueException

A PLUGIN WAS INVOLVED IN THIS CRASH
BAD PLUGIN: DG-Blocks v3.8.0

Code:

Backtrace:
#0 plugins/DG-Blocks.3.9.0.phar/src/JavierLeon9966/ExtendedBlocks/Main(331): pocketmine\network\mcpe\protocol\BatchPacket->getPackets()
#1 pmsrc/src/pocketmine/plugin/MethodEventExecutor(42): JavierLeon9966\ExtendedBlocks\Main->onDataPacketSend(object pocketmine\event\server\DataPacketSendEvent)
#2 pmsrc/src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object JavierLeon9966\ExtendedBlocks\Main, object pocketmine\event\server\DataPacketSendEvent) #3 pmsrc/src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\server\DataPacketSendEvent) #4 pmsrc/src/pocketmine/Player(3356): pocketmine\event\Event->call() #5 pmsrc/src/pocketmine/Server(1761): pocketmine\Player->sendDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket, boolean , boolean ) #6 pmsrc/src/pocketmine/Server(1743): pocketmine\Server->broadcastPacketsCallback(object pocketmine\network\mcpe\protocol\BatchPacket, array[1], boolean ) #7 pmsrc/src/pocketmine/level/Level(923): pocketmine\Server->batchPackets(array[1], array[2072], boolean , boolean ) #8 pmsrc/src/pocketmine/level/Level(787): pocketmine\level\Level->actuallyDoTick(integer 5367) #9 pmsrc/src/pocketmine/Server(2265): pocketmine\level\Level->doTick(integer 5367) #10 pmsrc/src/pocketmine/Server(2396): pocketmine\Server->checkTickUpdates(integer 5367, double 1623437020.1214) #11 pmsrc/src/pocketmine/Server(2152): pocketmine\Server->tick() #12 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor() #13 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start() #14 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/minecraft/, string[24] /home/minecraft/plugins/) #15 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server() #16 pmsrc(11): require(string[68] phar:///home/minecraft/pocketmine.phar/src/pocketmine/PocketMine.php)

PocketMine-MP version: 3.20.0 [Protocol 440]
Git commit: 99964709c932089189f921f62c6474a67fb94c9c
uname -a: Linux 39fbfa08ce36 5.7.0-0.bpo.2-amd64 #1 SMP Debian 5.7.10-1~bpo10+1 (2020-07-30) x86_64
PHP Version: 7.4.13
Zend version: 3.4.0
OS : Linux, linux

	 * @priority MONITOR
	 * @ignoreCancelled true
	 */
	public function onDataPacketSend(DataPacketSendEvent $event): void{
		$packet = $event->getPacket();
		$player = $event->getPlayer();
		$level = $player->getLevel();
		if($packet instanceof BatchPacket){
			$blocks = [];
			$packet->decode();
			foreach($packet->getPackets() as $buf){

Pls help worlds crashed

[FR] Button

Add the "button" option in:

type: 'normal' #Optional normal, stair, trapdoor, wall, fence, fence gate, slab (Won't spawn a double slab, you have to register it)

How can I add full working stairs?

I've tryed to add full working blackstone stairs but Idk how I can do that with ExtendedBlocks.
Can you send a code example in this Issue and paste it in the documantation?

getPacket()

Hello your plugin crash when we generate too many blocks in one and the same chuncks because the packet limit is 500. So here is a screen shoot of the error.
IMG_20210417_143544

Block direct replace to air

The block got replaced directly to air.

@JavierLeon9966

My Block.php:

namespace KeksDev\MoreBlocks\block;

use pocketmine\entity\Entity;
use pocketmine\Player;
use pocketmine\block\Block;
use pocketmine\item\Item;
use pocketmine\math\Vector3;
use JavierLeon9966\ExtendedBlocks\block\PlaceholderTrait;

class LagerFeuer extends Block{
  
  use PlaceholderTrait;

  protected $id = 464;

  public function __construct(int $meta = 0){
  	$this->meta = $meta;
  	$this->itemId = 720;
  }

  public function getName() : string{
  	return "campfire";
  }

  public function isSolid() : bool{
  	return true;
  }
  
  public function getLightLevel() : int{
  	return 15;
  }

  public function getHardness() : float{
  	return 10;
  }
  
  public function place(Item $item, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector, Player $player = null) : bool {
  	$this->getLevel()->setBlock($this, $this, true, true);
  }

  
}```

Example Plugin

Hello,
can you code an example plugin for other developers?

That would surely help many davelopers.

Thx :)

bug

extendblock my join the server pocketmine 3.21.0 is crash and internal server error

My plugin is not work

hello I can not create a block with a lower id with your plugin while I am what is marked in the readme.md

[CRASH:] To many packets in single batch

Crash Error:

2021-04-28 [21:09:13] [Server thread/WARNING]: [easycommands-by-supercrafter333] WorldChange: supercrafter333   world -> vorbereitung2
2021-04-28 [21:09:13] [Server thread/CRITICAL]: UnexpectedValueException: "Too many packets in a single batch" (EXCEPTION) in "pmsrc/src/pocketmine/network/mcpe/protocol/BatchPacket" at line 101
2021-04-28 [21:09:13] [Server thread/CRITICAL]: #0 plugins/MissingBlockX/src/JavierLeon9966/ExtendedBlocks/Main(151): pocketmine\network\mcpe\protocol\BatchPacket->getPackets()
2021-04-28 [21:09:13] [Server thread/CRITICAL]: #1 pmsrc/src/pocketmine/plugin/MethodEventExecutor(42): JavierLeon9966\ExtendedBlocks\Main->onDataPacketSend(object pocketmine\event\server\DataPacketSendEvent)
2021-04-28 [21:09:13] [Server thread/CRITICAL]: #2 pmsrc/src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object JavierLeon9966\ExtendedBlocks\Main, object pocketmine\event\server\DataPacketSendEvent)
2021-04-28 [21:09:13] [Server thread/CRITICAL]: #3 pmsrc/src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\server\DataPacketSendEvent)
2021-04-28 [21:09:13] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/Player(3354): pocketmine\event\Event->call()
2021-04-28 [21:09:13] [Server thread/CRITICAL]: #5 pmsrc/src/pocketmine/Server(1761): pocketmine\Player->sendDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket, boolean , boolean )
2021-04-28 [21:09:13] [Server thread/CRITICAL]: #6 pmsrc/src/pocketmine/Server(1743): pocketmine\Server->broadcastPacketsCallback(object pocketmine\network\mcpe\protocol\BatchPacket, array[1], boolean )
2021-04-28 [21:09:13] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/level/Level(1024): pocketmine\Server->batchPackets(array[1], array[512], boolean , boolean )
2021-04-28 [21:09:13] [Server thread/CRITICAL]: #8 plugins/MissingBlockX/src/JavierLeon9966/ExtendedBlocks/Main(164): pocketmine\level\Level->sendBlocks(array[1], array[512], integer 11)
2021-04-28 [21:09:13] [Server thread/CRITICAL]: #9 pmsrc/src/pocketmine/scheduler/ClosureTask(61): JavierLeon9966\ExtendedBlocks\Main::JavierLeon9966\ExtendedBlocks\{closure}(integer 1974)
2021-04-28 [21:09:13] [Server thread/CRITICAL]: #10 pmsrc/src/pocketmine/scheduler/TaskHandler(137): pocketmine\scheduler\ClosureTask->onRun(integer 1974)
2021-04-28 [21:09:13] [Server thread/CRITICAL]: #11 pmsrc/src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 1974)
2021-04-28 [21:09:13] [Server thread/CRITICAL]: #12 pmsrc/src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1974)
2021-04-28 [21:09:13] [Server thread/CRITICAL]: #13 pmsrc/src/pocketmine/Server(2389): pocketmine\plugin\PluginManager->tickSchedulers(integer 1974)
2021-04-28 [21:09:13] [Server thread/CRITICAL]: #14 pmsrc/src/pocketmine/Server(2152): pocketmine\Server->tick()
2021-04-28 [21:09:13] [Server thread/CRITICAL]: #15 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
2021-04-28 [21:09:13] [Server thread/CRITICAL]: #16 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
2021-04-28 [21:09:13] [Server thread/CRITICAL]: #17 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[11] /home/Dev2/, string[19] /home/Dev2/plugins/)
2021-04-28 [21:09:13] [Server thread/CRITICAL]: #18 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
2021-04-28 [21:09:13] [Server thread/CRITICAL]: #19 pmsrc(11): require(string[63] phar:///home/Dev2/pocketmine.phar/src/pocketmine/PocketMine.php)
2021-04-28 [21:09:13] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump

Can't add 1.17 Blocks

Hi ✌️
I can't add Block of the 1.17.0, like Block of Copper or other blocks.
The ID of the blocks is over 469 (Block of Copper: 595).

There no errors in the console.

Please fix the probem. (I think it's caused by ExtendedBlocks)

Feature request

Can you add support for stairs, fences and signs, please?

That where VERY useful.

Thx :)

[BUG:] Can't register blocks with latest version

Hey,
I use V1.1.2 (from the last commit) and now new blocks aren't added.

The Error:

2021-04-28 [19:15:50] [Server thread/INFO]: Loading MissingBlockX v0.0.1
2021-04-28 [19:15:50] [Server thread/CRITICAL]: RuntimeException: "Index invalid or out of range" (EXCEPTION) in "pmsrc/src/pocketmine/block/BlockFactory" at line 376
2021-04-28 [19:15:50] [Server thread/CRITICAL]: #0 plugins/MissingBlockX/src/supercrafter333/MissingBlockX/MissingBlockX(71): pocketmine\block\BlockFactory::registerBlock(object supercrafter333\MissingBlockX\block\others\campfire, boolean 1)
2021-04-28 [19:15:50] [Server thread/CRITICAL]: #1 pmsrc/src/pocketmine/plugin/PluginManager(182): supercrafter333\MissingBlockX\MissingBlockX->onLoad()
2021-04-28 [19:15:50] [Server thread/CRITICAL]: #2 pmsrc/src/pocketmine/plugin/PluginManager(346): pocketmine\plugin\PluginManager->loadPlugin(string[32] /home/Dev2/plugins/MissingBlockX, array[1])
2021-04-28 [19:15:50] [Server thread/CRITICAL]: #3 plugins/PocketMine-DevTools (5).phar/src/DevTools/DevTools(69): pocketmine\plugin\PluginManager->loadPlugins(string[19] /home/Dev2/plugins/, array[1])
2021-04-28 [19:15:50] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/plugin/PluginBase(116): DevTools\DevTools->onEnable()
2021-04-28 [19:15:50] [Server thread/CRITICAL]: #5 pmsrc/src/pocketmine/plugin/PluginManager(552): pocketmine\plugin\PluginBase->setEnabled(boolean 1)
2021-04-28 [19:15:50] [Server thread/CRITICAL]: #6 pmsrc/src/pocketmine/Server(1785): pocketmine\plugin\PluginManager->enablePlugin(object DevTools\DevTools)
2021-04-28 [19:15:50] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/Server(1771): pocketmine\Server->enablePlugin(object DevTools\DevTools)
2021-04-28 [19:15:50] [Server thread/CRITICAL]: #8 pmsrc/src/pocketmine/Server(1530): pocketmine\Server->enablePlugins(integer 0)
2021-04-28 [19:15:50] [Server thread/CRITICAL]: #9 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[11] /home/Dev2/, string[19] /home/Dev2/plugins/)
2021-04-28 [19:15:50] [Server thread/CRITICAL]: #10 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
2021-04-28 [19:15:50] [Server thread/CRITICAL]: #11 pmsrc(11): require(string[63] phar:///home/Dev2/pocketmine.phar/src/pocketmine/PocketMine.php)
2021-04-28 [19:15:50] [Server thread/CRITICAL]: Could not load plugin 'MissingBlockX'

My Code:

//Campfire (-209)
$campfire = new campfire(0);
BlockFactory::registerBlock($campfire, true);
ItemFactory::registerItem(new ItemBlock($campfire->getId(), 0, 255 - $campfire->getId()), true);
ItemFactory::addCreativeItem(ItemFactory::get(255 - $campfire->getId()));

Pls fix it or help meee!!!

Issues with the config.yml

Hea,

i must say before: NICE Plug-in Dude!

But it have some Problems with the config.yml... or I‘m to stupid for the config.
i don‘t can register other Blocks than the Anchient Debris.

What‘s wrong?
Here the config:

"Quartz Bricks": #Required The name of the block
id: 559 #Required
hardness: 0.8 #Optional
toolType: 5 #Optional 0-32 (More info at BlockToolType interface)
toolHarvestLevel: 5 #Optional 1-6 (1: Wood, 2: Gold, 3: Stone, 4: Iron, 5: Diamond, 6: Netherite)
drops: [559] #Optional [526, ..] or [[id: 526, meta: 0], ..]
xpDrops: [0, 0] #Optional
itemId: -271 #Optional The item form of this block
variantBitmask: 0 #Optional The meta which the item is allowed
isReplaceable: false #Optional If the block can be replaced with any other
breakable: true #Optional If can be broken (Eg: Barrier, Command Block, Bedrock, etc.)
frictionFactor: 0.6 #Optional How much is the block slippery (Eg: Blue Ice), Note: This won't affect client side
transparent: false #Optional
solid: true #Optional
isFlowable: false #Optional If liquids can destroy this block
entityCollision: true #Optional If server entities can collide with this block
passThrough: false #Optional If server entities can pass through this block (Eg: Ladder, Vines, etc.)
canClimb: false #Optional Note: Doesn't affect client side
silkTouch: true #Optional If silk touch works with this block
fuelTime: 0 #Optional How much time in ticks it consumes fuel in a furnace
flameEncouragement: 0 #Optional Chance of this block getting caught in fire
flammibility: 0 #Optional Chance of this block burning out
burnsForever: false #Optional If fire stays forever in this block
type: 'normal' #Optional normal, stair, trapdoor, wall, fence, fence gate, slab (Won't spawn a double slab, you have to register it)
creativeItem: true #Optional If this block should appear in the creative menu
...

Not an instance of Block

Hey, I tried to register the Block like you said it works. But I get the error message
JavierLeon9966\ExtendedBlocks\block\BlockFactory::registerBlock() must be an instance of pocketmine\block\Block

how can i set a block in onRandomTick y + 1

hi i try to set the block y + 1 but its always updateblock with id 255,
i hope you can help me

public function onRandomTick(): void{
if($this->getDamage() === 0 and mt_rand(0, 50) == 16 and mt_rand(1, 5) == 3 and mt_rand(1, 6) == 3){
$block = clone $this;
$block->setDamage(1);
$this->getLevel()->setBlock($block, new Placeholder($block), true, true);
$this->getLevel()->setBlock(new Vector3($block->x, $block->y + 1, $block->z), new Placeholder($block), true, true);
}

How I can register Blocks?

Good Morning everyone,

How I can register Blocks?

And Can I only register Blocks with an ID that is higher than 256?

For the Author: Plz add an Description.

Crash

20.04 10:50:17 [Server] Server thread/CRITICAL TypeError: "Argument 1 passed to JavierLeon9966\ExtendedBlocks\block\CustomBlock::getSlabVariantBitmask() must be of the type int, null given, called in phar:///plugins/ExtendedBlocks_dev-39.phar/src/JavierLeon9966/ExtendedBlocks/block/CustomBlock.php on line 275" (EXCEPTION) in "plugins/ExtendedBlocks_dev-39.phar/src/JavierLeon9966/ExtendedBlocks/block/CustomBlock" at line 95
20.04 10:50:17 [Server] Server thread/CRITICAL #0 plugins/ExtendedBlocks_dev-39.phar/src/JavierLeon9966/ExtendedBlocks/block/CustomBlock(275): JavierLeon9966\ExtendedBlocks\block\CustomBlock::getSlabVariantBitmask(NULL )
20.04 10:50:17 [Server] Server thread/CRITICAL #1 pmsrc/src/pocketmine/block/Block(566): class@anonymousphar:///plugins/ExtendedBlocks_dev-39.phar/src/JavierLeon9966/ExtendedBlocks/block/CustomBlock.php:270$31a->recalculateBoundingBox()
20.04 10:50:17 [Server] Server thread/CRITICAL #2 pmsrc/src/pocketmine/block/Block(556): pocketmine\block\Block->recalculateCollisionBoxes()
20.04 10:50:17 [Server] Server thread/CRITICAL #3 plugins/ExtendedBlocks_dev-39.phar/src/JavierLeon9966/ExtendedBlocks/block/CustomBlock(297): pocketmine\block\Block->getCollisionBoxes()
20.04 10:50:17 [Server] Server thread/CRITICAL #4 pmsrc/src/pocketmine/block/Block(556): JavierLeon9966\ExtendedBlocks\block\CustomBlock->recalculateCollisionBoxes()
20.04 10:50:17 [Server] Server thread/CRITICAL #5 plugins/ExtendedBlocks_dev-39.phar/src/JavierLeon9966/ExtendedBlocks/block/Placeholder(197): pocketmine\block\Block->getCollisionBoxes()
20.04 10:50:17 [Server] Server thread/CRITICAL #6 pmsrc/src/pocketmine/block/Block(538): JavierLeon9966\ExtendedBlocks\block\Placeholder->getCollisionBoxes()
20.04 10:50:17 [Server] Server thread/CRITICAL #7 pmsrc/src/pocketmine/level/Level(1248): pocketmine\block\Block->collidesWithBB(object pocketmine\math\AxisAlignedBB)
20.04 10:50:17 [Server] Server thread/CRITICAL #8 plugins/Lunar_dev-50.phar/src/blackjack200/lunar/user/processor/MovementProcessor(59): pocketmine\level\Level->getCollisionBlocks(object pocketmine\math\AxisAlignedBB, boolean 1)
20.04 10:50:17 [Server] Server thread/CRITICAL #9 plugins/Lunar_dev-50.phar/src/blackjack200/lunar/listener/DefaultListener(77): blackjack200\lunar\user\processor\MovementProcessor->processClient(object pocketmine\network\mcpe\protocol\MovePlayerPacket)
20.04 10:50:17 [Server] Server thread/CRITICAL #10 pmsrc/src/pocketmine/plugin/MethodEventExecutor(42): blackjack200\lunar\listener\DefaultListener->onDataPacketReceive(object pocketmine\event\server\DataPacketReceiveEvent)
20.04 10:50:17 [Server] Server thread/CRITICAL #11 pmsrc/src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object blackjack200\lunar\listener\DefaultListener, object pocketmine\event\server\DataPacketReceiveEvent)
20.04 10:50:17 [Server] Server thread/CRITICAL #12 pmsrc/src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\server\DataPacketReceiveEvent)
20.04 10:50:17 [Server] Server thread/CRITICAL #13 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(108): pocketmine\event\Event->call()
20.04 10:50:17 [Server] Server thread/CRITICAL #14 pmsrc/src/pocketmine/network/mcpe/protocol/BatchPacket(130): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\MovePlayerPacket)
20.04 10:50:17 [Server] Server thread/CRITICAL #15 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
20.04 10:50:17 [Server] Server thread/CRITICAL #16 pmsrc/src/pocketmine/Player(3311): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
20.04 10:50:17 [Server] Server thread/CRITICAL #17 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
20.04 10:50:17 [Server] Server thread/CRITICAL #18 pmsrc/vendor/pocketmine/raklib/src/server/ServerHandler(95): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[17] 81.0.33.238 20116, object raklib\protocol\EncapsulatedPacket, integer 0)
20.04 10:50:17 [Server] Server thread/CRITICAL #19 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
20.04 10:50:17 [Server] Server thread/CRITICAL #20 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
20.04 10:50:17 [Server] Server thread/CRITICAL #21 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
20.04 10:50:17 [Server] Server thread/CRITICAL #22 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()
20.04 10:50:17 [Server] Server thread/CRITICAL #23 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1618915817.3825)
20.04 10:50:17 [Server] Server thread/CRITICAL #24 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
20.04 10:50:17 [Server] Server thread/CRITICAL #25 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
20.04 10:50:17 [Server] Server thread/CRITICAL #26 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[48] /, string[56] /plugins/)
20.04 10:50:17 [Server] Server thread/CRITICAL #27 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
20.04 10:50:17 [Server] Server thread/CRITICAL #28 pmsrc(11): require(string[103] phar:///custom-php7.4.phar/src/po)

Dev 39

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.