Posts: 12
Threads: 2
Joined: May 2015
Thanks: 0
Given 0 thank(s) in 0 post(s)
Can i somehow send from LUA fake entity packets ? They will be diffrent for diffrent players. They are : EntitySpawn, EntityMetadata, and EntityDestroyPackets. All of them i want for my minigame server.
Also i want to send Title(0x45) packets too.
So how can i send custom packets from LUA ?
Posts: 12
Threads: 2
Joined: May 2015
Thanks: 0
Given 0 thank(s) in 0 post(s)
Thanks for answer. One more question: can i take you server as core, and rewrite it for my needs ? Beacos implementing all that stuff could take a long time , and i need even more features.
So can i use MCServer as base and rewrite it ?
Posts: 1,469
Threads: 57
Joined: Jul 2012
Thanks: 66
Given 127 thank(s) in 108 post(s)
Yes, MCServer is open source.
As long as you have a notification that your project is based on MCServer you can "fork" it and modify it to your needs.
Posts: 4,628
Threads: 115
Joined: Dec 2011
Thanks: 693
Given 494 thank(s) in 423 post(s)
We might want to allow custom packets if we want to support mods later on. This could be done by exporting the cPacketizer class, with a cClientHandle function to send it.
Posts: 783
Threads: 12
Joined: Jan 2014
Thanks: 2
Given 73 thank(s) in 61 post(s)
How many minecraft mods don't use the plugin channels?
Also we would need to rewrite the protocol classes significantly, because just being able to send custom packets is not very useful without being able to receive them. And people would use it to send the official packets, rather than going through the API's that handle those things, preventing cross protocol support.
How about we expose cProtocol, and add a way to register protocols with extension's, though I'm not sure how protocol recognizer can tell a forge connection from a offical one.
Posts: 783
Threads: 12
Joined: Jan 2014
Thanks: 2
Given 73 thank(s) in 61 post(s)
Then we just need to expose cProtocol, and plugins can send additional packets.
Posts: 1,162
Threads: 68
Joined: Mar 2013
Thanks: 245
Given 125 thank(s) in 100 post(s)
Would that made posible to make an MCPE plugin for MCServer?
Posts: 783
Threads: 12
Joined: Jan 2014
Thanks: 2
Given 73 thank(s) in 61 post(s)
No, because you wouldn't be able to create a cProtocol descendent. Also MCPE connects with UDP, so we would need to modify the server to listen for it.