NBTExplorer | A graphical NBT editor for all Minecraft NBT data sources | Video Game library
kandi X-RAY | NBTExplorer Summary
kandi X-RAY | NBTExplorer Summary
NBTExplorer is an open-source NBT editor for all common sources of NBT data. It's mainly intended for editing Minecraft game data.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of NBTExplorer
NBTExplorer Key Features
NBTExplorer Examples and Code Snippets
Community Discussions
Trending Discussions on NBTExplorer
QUESTION
The problem I am trying to solve is allowing all players to share the same inventory in a Minecraft LAN world. This means that if someone chops down a tree and gets wood, everyone will get that wood. If someone drops an item, the item will be removed from everyone's inventory. If someone is mining with a pick that's in slot 1 on the hotbar, it should be losing durability for everyone else. If someone rearranges items in the inventory, it should be rearranged for everyone else. Basically, I'm wondering if there is a way to set everyone's inventory to the same object so that any modifications to the inventory is the same for everyone.
I have tried using NBTExplorer to copy inventories but that doesn't sync between players in realtime. I am also aware that there are server plugins that can have inventories synced to a database like MySQL, but I am almost certain there is an easier way to do this other than hosting a server and trying to set up a plugin and DB for this.
Is there a value I can modify that will cause all inventories to have the same seed? Can I use some command to generate a world with all player inventories pointing to one location?
...ANSWER
Answered 2020-Jan-17 at 23:32It's not as simple as just generating a seed or anything like that. You need to persist and transmit each and every inventory change, per player, to all players. And find a way to keep that in sync.
You'd probably be best off using a server side plugin, since this cannot be achieved on client-side only. Listen to any inventory events using a plugin listener, and then iterate over all players except the one who triggered the event, to perform the same operations on their inventory to keep all players in sync.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install NBTExplorer
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page