An open API service indexing awesome lists of open source software.

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

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`