menu
#13474067 Undefined constant pocketmine\data\bedrock\BedrockDataFiles::CREATIVEITEMS_JSON

Submitted by PocketMine-MP 5.35.0

info You're viewing this report via an anonymous access link.
No one can view your crash report without this link except Crash Archive administrators.

General information

Version: 5.35.0
Git commit: bc17ee74
Plugin involvement: Direct
Report date: 2025-10-11 18:44:39 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 8.2.29
JIT status: Not available
Operating system: linux
System banner: Linux nikita-VivoBook-ASUSLaptop-X515EA-F515EA 6.14.0-33-generic #33~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 19 17:02:30 UTC 2 x86_64

Error information

Warning: the DummyItemsBlocks plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Undefined constant pocketmine\data\bedrock\BedrockDataFiles::CREATIVEITEMS_JSON
File: plugins/DummyItemsBlocks.phar/src/diamondgold/DummyItemsBlocks/Main
Line: #785
Type: Error
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
            foreach (GoatHornType::cases() as $type) {
$horn = (clone $item)->setType($type);
CreativeInventory::getInstance()->add($horn);
$name = explode(':', $id);
StringToItemParser::getInstance()->register($name[0] . ':' . $type->name . '_' . $name[1], fn() => clone $horn);
}
}
// im too lazy to list all the items with compound tag data, easier to just reload ;P
$creativeItems = CraftingManagerFromDataHelper::loadJsonArrayOfObjectsFile(
BedrockDataFiles::CREATIVEITEMS_JSON,
ItemStackData::class
);
// bare minimum code needed for non-functional item adapted from https://github.com/pmmp/PocketMine-MP/pull/5455
// obsolete when merged
$id = ItemTypeNames::FIREWORK_STAR;
if (Utils::removeIfPresent($id, $items)) {
$item = new FireworkStar(new ItemIdentifier(ItemTypeIds::newId()), Utils::generateNameFromId($id));
self::map1to1ItemWithMeta(
$id,
$item,
#0 plugins/DummyItemsBlocks.phar/src/diamondgold/DummyItemsBlocks/Main(225): diamondgold\DummyItemsBlocks\Main::registerSpecialItems(array[153])
#1 pmsrc/src/plugin/PluginBase(119): diamondgold\DummyItemsBlocks\Main->onEnable()
#2 pmsrc/src/plugin/PluginManager(461): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#3 pmsrc/src/Server(1450): pocketmine\plugin\PluginManager->enablePlugin(object diamondgold\DummyItemsBlocks\Main#67687)
#4 pmsrc/src/Server(1066): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#67521)
#5 pmsrc/src/PocketMine(367): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#2, object pocketmine\utils\MainLogger#6, string[23] /home/nikita/minecraft/, string[31] /home/nikita/minecraft/plugins/)
#6 pmsrc/src/PocketMine(390): pocketmine\server()
#7 pmsrc(170): require(string[72] phar:///tmp/PocketMine-MP-phar-cache.0/PMMP3sBFnJ.tar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show