Skip to main content

A Minecraft server rcon-dependent library made only for Robocode school.

Project description

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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

roborcon-0.5.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

roborcon-0.5.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file roborcon-0.5.0.tar.gz.

File metadata

  • Download URL: roborcon-0.5.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for roborcon-0.5.0.tar.gz
Algorithm Hash digest
SHA256 3147f658c90937cde3af57a9063539bcace631500cdcf059b893205db73c771f
MD5 43099f0264a0a6b92d73e9bf999e2075
BLAKE2b-256 4a209429d7b1a5d7263efd4d8142be94cfd70eba54be9a6b618b06c33ac565a2

See more details on using hashes here.

File details

Details for the file roborcon-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: roborcon-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for roborcon-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5547757b8c1e03c08f42a172778674f7c6ea2a9e139b29c55cf2d1826e746f6f
MD5 eafe22de08c2488d1d5683a895d738ea
BLAKE2b-256 dc5779f7922fc5d336cf9ff5014d8b515e49b0c56fb28c33d5a093d3c5d1dec2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page