roborcon
Module created to provide first lessons on Python And Minecraft (1.16.5 pref) for students in Robocode school.
Usage/Examples
Example how to auto-build coliseum.
from roborcon import Rcon
rcon = Rcon("server-ip", "rcon-password")
rcon.setPlayer("PlayerNickname")
rcon.setColiseumSize(15,5)
rcon.createColiseum()
Sets player nickname(required)
rcon.setPlayer("PlayerNickname")
Execute any Rcon command.
rcon.execute("give @a minecraft:diamond")
Get player position (array).
x, y, z = rcon.getCoords()
Display title (bold red as default).
rcon.title("TitleText")
Get all items list (to console).
rcon.printItemNames()
Place blocks at position
rcon.setBlock(x, y, z, "block name or id")
Fill cubic area around player.
rcon.fill(area=5, "blockname", hollow=False, h=5)
Give player Armor, Sword with type
rcon.giveArmor("Diamond")
Spawns mob around player or at specific position (Set enemy to True if spawn around player, if False - spawning at specific position)
rcon.spawnMob("mobname", x=0, y=0, z=0, enemy=True, params="")
Checks if player has died between checks
rcon.checkDeath()
Change default params of coliseum size
rcon.setColiseumSize(area, height)
Create coliseum around player
rcon.createColiseum()
Metadata
Release files for roborcon 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| roborcon-0.5.0.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| roborcon-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.1 kB
Release files / roborcon-0.5.0.tar.gz
| Download URL | roborcon-0.5.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3147f658c90937cde3af57a9063539bcace631500cdcf059b893205db73c771f
|
|
BLAKE2b-256 checksum How to use checksums |
4a209429d7b1a5d7263efd4d8142be94cfd70eba54be9a6b618b06c33ac565a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / roborcon-0.5.0-py3-none-any.whl
| Download URL | roborcon-0.5.0-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5547757b8c1e03c08f42a172778674f7c6ea2a9e139b29c55cf2d1826e746f6f
|
|
BLAKE2b-256 checksum How to use checksums |
dc5779f7922fc5d336cf9ff5014d8b515e49b0c56fb28c33d5a093d3c5d1dec2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|