Releases: mcpq/mcpq-python
Releases · mcpq/mcpq-python
v2.0.1
Some small updates and fixes for plugin version 2.X:
Additions:
entity.getNbt()andworld.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 
toolsfor installing additional dependencies required formcpq.tools.convert_image(originally was calledimagequantizer) (can be installed withpip install mcpq[tools] - Added some useful aliases to the 
Minecraftobject, 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
 getHighestPosdoes no longer throw an error on floating point coordinates (will round down to int now)- The 
amountof items spawned inspawnItemshas 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
 
 - to get/change the level use 
 
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
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