Skip to content

Releases: mcpq/mcpq-python

v2.0.1

25 May 22:38

Choose a tag to compare

Some small updates and fixes for plugin version 2.X:

Additions:

  • entity.getNbt() and world.getNbt(pos) to query and parse NBT data of entities and block entity respectively (requires command output capturing, see plugin version table)
    • both functions now warn the user if it is used on a spigot-API plugin (e.g. version 2.0)
  • Dependency group tools for installing additional dependencies required for mcpq.tools.convert_image (originally was called imagequantizer) (can be installed with pip install mcpq[tools]
  • Added some useful aliases to the Minecraft object, namely: mc.Block, mc.EntityType, mc.NBT, mc.Vec3 == mc.vec
  • More examples in the documentation

Fixes:

  • Fixed NBT parsing of float numbers in e-notation
  • getHighestPos does no longer throw an error on floating point coordinates (will round down to int now)
  • The amount of items spawned in spawnItems has been fixed for newer versions of Minecraft
  • MCPQ now has a module specific logger and does no longer log to the root logger
    • to get/change the level use logging.getLogger("mcpq").setLevel(logging.DEBUG/)
    • MCPQ will log warnings and above by default

Changes:

  • Vec3 creation and operations is now vastly faster and is no longer a dataclass

As always:

  • You can upgrade mcpq to the newest version with pip install -U mcpq (make sure your server plugin has version 2.X!)
  • Checkout the plugin version table for the corresponding Minecraft version compatibility.

Full Changelog: v2.0.0...v2.0.1

v2.0.0

13 May 23:09

Choose a tag to compare

Version 2.0 comes with a number of highly anticipated features:

  • Query available materials and entity-types docs
  • Query minecraft, plugin and server versions docs
  • Use blocking commands and return output (only for Bukkit commands) docs
  • Parse NBT and component data docs
  • Retrieve and set component data on blocks in the world docs
  • Send messages to selected players docs
  • Write signs directly docs

Additionally, NBT data and block/entity component data is now used almost everywhere in the library. For the moment, EntityType is an alias of Block, this may change in the future.
Also, most block setting functions are now faster and the library was re-structured internally.
You can upgrade mcpq to the newest version with pip install -U mcpq (make sure to update your server plugin as well!)

Checkout the plugin version table for the corresponding Minecraft version compatibility.

Have fun! 🚀

Full Changelog: v1.0.1...v2.0.0