https://github.com/nithanim/minecraft-playerdata-inventory-to-command
Converts the inventory of a player to a command in minecraft
https://github.com/nithanim/minecraft-playerdata-inventory-to-command
Last synced: 11 months ago
JSON representation
Converts the inventory of a player to a command in minecraft
- Host: GitHub
- URL: https://github.com/nithanim/minecraft-playerdata-inventory-to-command
- Owner: Nithanim
- License: mit
- Created: 2019-08-18T15:29:58.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-06-15T20:58:08.000Z (almost 6 years ago)
- Last Synced: 2025-01-29T06:51:28.819Z (over 1 year ago)
- Language: Java
- Size: 53.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MinecraftPlayerdataInventoryToCommand
## Description
Extracts the inventory of a minecraft player from the given .dat file in the playerdata directory. It generates a command that has to be put into a command block (because of its length). The block then has to be powered via a redstone signal. The nearest player is given a chest, that contains the inventory of the player. In case the player held more items than fitting in a chest multiple commands are generated.
## Running
* Windows: `mvnw compile exec:java -Dexec.args=".dat"`
* Linux: `./mvnw compile exec:java -Dexec.args=".dat"`
Example:
`./mvnw compile exec:java -Dexec.args="minecraft/world/playerdata/2dc70386-973e-491d-8122-7603ea8619e5.dat`