Skip to content

Commit

Permalink
Readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
Avanatiker committed Oct 19, 2024
1 parent ea54b4e commit 07fe3f6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ sharing, or backup purposes on your local machine.
The GUI allows you to tailor the capture process according to your requirements.
WorldTools facilitates the capture of a wide range of crucial elements, ensuring no detail is missed.
- Chunks: Terrain, biomes and structures
- Entities: Positions and attributes of all entities
- Entities: Inventories and attributes of most entities
- Containers: Contents of all tile entities like chests, shulkers, hoppers, furnaces, brewing stands, droppers,
dispensers etc...
- Players: Player positions and inventories
- Statistics: Full personal player statistics
- Advancements: Player advancements and progress
- Special Objects: Maps and Banners
- Special Objects: Maps, Lecterns and Banners
- Detailed Metadata: Exhaustive capture details like modt, server version, timestamps, and more

- **Easy Access to Saved Worlds**: Your locally captured world save can be found in the single-player worlds list,
Expand Down Expand Up @@ -157,12 +157,13 @@ Pull Request.
- Fix statistics not updated on stop because the packet answer is not received before the world is saved
- Fix on capture switch config button functionality in capture gui
- Dimension, XP, selected item slot, player game type, is not saved to player nbt in level.dat
- EntityLoadable
- Better rendering

### Features
- Capture Mode: Choose between two capture modes: Full and Incremental. The Full mode captures all data from the server, while the Incremental mode only captures data that has changed since the last capture.
- Save lectern contents
- Save server datapack to the downloaded world
- Save more entity data (NBT) like trades, inventory from boats and minecarts, etc.
- Save more entity data (NBT) like trades etc.
- Live statistics: Data usage, time elapsed, etc.

## License
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,16 @@ open class CustomRegionBasedStorage internal constructor(
?.mapNotNull { compoundTag ->
val blockPos = BlockPos(compoundTag.getInt("x"), compoundTag.getInt("y"), compoundTag.getInt("z"))
val blockStateIdentifier = Identifier.of(compoundTag.getString("id"))
val world = mc.world ?: return@mapNotNull null

runCatching {
mc.world?.let { world ->
val state = Registries.BLOCK.get(blockStateIdentifier).defaultState
BlockEntity.createFromNbt(blockPos, state, compoundTag, world.registryManager)
}
val block = Registries.BLOCK.get(blockStateIdentifier)
Registries.BLOCK_ENTITY_TYPE
.getOrEmpty(blockStateIdentifier)
.orElse(null)
?.instantiate(blockPos, block.defaultState)?.apply {
read(compoundTag, world.registryManager)
}
}.getOrNull()
} ?: emptyList()

Expand Down

0 comments on commit 07fe3f6

Please sign in to comment.