$id = 500; $meta = 1; $name = ("test"); ItemFactory::registerItem(new Item($id,1,$name), true); $this->getServer()->getPluginManager()->registerEvents($this, $this); Item::addCreativeItem(Item::get($id,$meta)); /\/\/\/\ That's the code. This is the error \/\/\/\/ [04:16:05] [Server thread/CRITICAL]: RuntimeException: "Trying to overwrite an already registered item" (EXCEPTION) in "src/pocketmine/item/ItemFactory" at line 298 How do I fix this as I already have a custom id set for $item? How would I prevent it from overwriting?
Well, I got an update it registered as a new item but is still the same png as a stick. So next I need to figure out how unlink them
Well its just the png which didn't work, the item in creative is {id} {1}<- Meta So I think you might right I need add to a resource pack properly
I read in another thread, that it's possible to add a custom item if you add it with a resource/baheviour back. Maybe try searching online on how to add items with a behaviour pack.
IKIK its change the id so it's not for something in mc, so you create your own self::Item which means it wont overwrite anything and the png with stick to that item just a random id and meta
Well, I've created a custom item not just different id, but by using a completely different name. Which means it's registered as a pocket mine item with no png right now
Yeah lol I have that set too esh123unicorn[/99.234.215.233:36759] logged in with entity id 1 at (db, 256, 66, 256) [16:35:55] [Server thread/INFO]: esh123unicorn[/99.234.215.233:36759] logged out due to timeout that's the issue now it crashes my game
How very interesting. I'm working on this exact same problem. I can create a custom item and have my resource pack, yet I cannot find a way to link the PNG to the new item :/
I told u bruh, but u can do it if you know how to install Behavior pack, just wait until pmmp implements it