satoshinm / WebSandboxMC

Bukkit plugin providing a web-based interface with an interactive WebGL 3D preview or glimpse of your server 🕷⏳📦 ⛺
https://www.spigotmc.org/resources/websandboxmc.39415/
MIT License
19 stars 5 forks source link

Player position updates #10

Closed satoshinm closed 7 years ago

satoshinm commented 7 years ago

https://github.com/satoshinm/WebSandboxMC/issues/2 Player position updates

satoshinm commented 7 years ago

screen shot 2017-04-12 at 8 13 12 pm

satoshinm commented 7 years ago

Got the bukkit players bridged well, position and even rotation updates, including sandboxed within the range with join/leave, tracking entity IDs.

Now for the web client entities: spawn in the world and track it from client updates.


but, world.spawn(location, HumanEntity.class) throws NPE on Glowstone: https://gist.github.com/satoshinm/ebc87cdf1d782ba91b893fe24cd8ffd2

workaround, using Sheep - can spawn it and move around, though setCustomNameVisible(false) causes this save error: https://gist.github.com/satoshinm/8a7cb999c09bb42048e70647875f53c8

and setGravity(false) seems to have no effect? (drops like a rock)

satoshinm commented 7 years ago

Web users now visible as sheep:

screen shot 2017-04-12 at 11 02 08 pm

but need to make web users visible to each other, too.


screen shot 2017-04-12 at 11 31 41 pm

Picture-in-picture even works (Craft feature):

screen shot 2017-04-12 at 11 40 26 pm