Its me again. Lets say, i have a spawn egg. As we all know, spawneggs can spawn mobs. But isnt a minecart also a spawn egg? A spawn egg for a minecart entity? Still dont get the point? Okay.. The minecart item class is empty (see pocketmine). Can i add a class via plugin so lets say.. I want to rewrite the class and implement it.. I tried it in several ways, but most times when i select the minecart-item i get raklib errors.. (I really hate raklib)
Minecart is not a spawn egg. It has slightly different behaviour from a spawn egg. For instance, minecart can only be placed on rails, and minecarts always face the orientation of the rail. I think the RakLib error you got came from the client sending a packet that PocketMine doesn't support yet (related to riding). Can you show the error?
you can use player input packet and setEntityLinkPacket from riding work branch but im not sure what is passenger and vechicle variable in setEntityLinkPacket, mayybe entity id? https://github.com/PocketMine/Pocke...mine/network/protocol/SetEntityLinkPacket.php
The error is: [RakLib] Error: blocked xxxx for 10 seconds And yes, the behaviour is a bit different. But i want to place down the minecart everywhere, so like a car.
idk i tested it too and i can place minecart etc but i get blocked too but idk why, maybe PacketLogger xD
I don't have PacketLogger installed. And on me the minecart disappears after some seconds. For the rails the same
so idk for me it works well and minecart is spawned after restart too but i implement it into pocketmine and i meant try PacketLogger
If RakLib blocks you, that means that the client did something wrong (or just PocketMine/RakLib doesn't know about it), at the RakNet level. PacketLogger won't help with that - you need Wireshark, or simpler, modify PM source.