https://github.com/programminglaboratorys/tiblocks.py
Library to allow you to read TI-84 Blocks world and port them to Minecraft java world
https://github.com/programminglaboratorys/tiblocks.py
blocks ctypes minecraft python ti-84-plus-ce
Last synced: 2 months ago
JSON representation
Library to allow you to read TI-84 Blocks world and port them to Minecraft java world
- Host: GitHub
- URL: https://github.com/programminglaboratorys/tiblocks.py
- Owner: programminglaboratorys
- License: gpl-3.0
- Created: 2024-07-08T23:11:06.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-07-09T19:46:49.000Z (11 months ago)
- Last Synced: 2025-02-08T17:44:33.642Z (4 months ago)
- Topics: blocks, ctypes, minecraft, python, ti-84-plus-ce
- Language: Python
- Homepage:
- Size: 34.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# TIBlocks.py
Library to allow you to read TI-84 Blocks world
## Install it
clone and install it with:
```cmd
pip install TIBlocks.py/
```## Usage
```py
from TIBlocks import load, Blocks
# A,B,C,D,E
player, world = load(world_id)
# blocks[y][x][z]
# blocks[16][48][48]
print(world.blocks)
world.set_block(0, 0, 0, Blocks.GRAVEL) # or 18, Block(18)
print("player current block is", player.current_block.name)
```convert your it-84 BLOCKS world into a Minecraft world
```bash
$ python -m TIBlocks
#or
$ TIBlocks
```> [!NOTE]
> you must be in the same folder as the world.### try it yourself!
```bash
$ cd worlds/World-A
$ python -m TIBlocks
NOTE you must be in the same directory as the .8xv files
world id (A,B,C,D,E): A
done processing TI-84 blocks world
07-09-24 22:24:02 - world folder created
07-09-24 22:24:02 - level.dat created
07-09-24 22:24:02 - region file r.0.0.mca created
07-09-24 22:24:02 - all region files created, world is ready
```> [!WARNING]
> The library was tested on Minecraft 1.16.5. Opening a world might freeze the game; close and reopen to resolve.#### results

## Development
Read the [CONTRIBUTING.md](CONTRIBUTING.md) file.