RTS controls for shit :D
(a circle is a cc turtle or a vs2 vehicle)
Backend is almost done, i just need to add a way to map out the world and then save it.
The frontend is uhhhhhhhhhhhhhhh
Not done
you could make a minecraft mod which uses netty to do some simple communication and you just implement your own “protocol” and this minecraft mod is server side only and it just sends this program the map data if the program requests it and shit (and has permissions)
so basically a minecraft mod which runs on the minecraft server which opens up a small server with a custom communication protocol which allows this tool to do shit
that then also allows you to summon entities and modify the terrain and evererything
and if you do actions that are kinda height dependend, you first click on the x,z map on a position
packets sent by the client:
C00PacketRequestServerInfo()
C01PacketAuthenticate(userName: String, hashedPw: String)
C02PacketSessionInfo(sessionId: Long)
C03PacketKeepAlive(sessionId: Long)
C04PacketSessionEnd(sessionId: Long)
C05PacketRequestMinecraftInfo(sessionId: Long)
...
packets sent by the server:
S00PacketServerInfo(apiVersion: Int, lockedDown: Boolean, worldRunning: Boolean)
S01PacketAuthenticationResult(status: AuthStatus, sessionId: Long)
S02PacketSessionInfoResult(valid: Boolean, timeLeft: Long, permissions: Permissions)
S03PacketSessionAlive(alive: Boolean)
S04PacketSessionTerminated(reason: SessionTermReason)
S05PacketMinecraftInfo(address: INetAddress, mcVersion: McVersion, running: Boolean)
...
data classes (structs) and enum classes (enums):
enum class McVersion {
1_20,
1_19,
1_18,
1_17,
1_16
...
}
enum class AuthStatus {
INVALID_CREDENTIALS,
ACCOUND_DISABLED,
BLOCKED,
UNKNOWN_ERROR,
TEMPORARY_SESSION_CREATED,
SESSION_CREATED
}
data class Permissions(
val viewMap2d: Boolean,
val viewMap3d: Boolean,
val viewEntities: Boolean,
val viewShips: Boolean,
val viewPlayers: Boolean,
val viewContainerContents: Boolean,
val viewInventories: Boolean,
val viewEntityStats: Boolean,
val addBlocks: Boolean,
val remBlocks: Boolean,
val addEntities: Boolean,
val remEntities: Boolean,
val modEntities: Boolean,
val addShips: Boolean,
val remShips: Boolean,
val modShips: Boolean,
val loadChunks: Boolean,
val modWhiteList: Boolean,
val kickPlayers: Boolean,
val banPlayers: Boolean,
val stopServer: Boolean,
val modAccounts: Boolean
)
enum class SessionTermReason {
KILLED_BY_CLIENT,
KILLED_BY_ADMIN,
TIMEOUT,
NO_KEEP_ALIVE,
UNPERMITED_ACTIONS,
UNKNOWN_ERROR
}
object ProtocolConstants {
const val API_VERSION: Int = 1
const val MAX_KEEP_ALIVE_DELAY: Long = 60 // a keep alive packet needs to be sent at least every minute or it will disconnect
}
This conversation is on Discord · Reply there