Skip to main content

Fluent Python builders for Minecraft datapacks & resource packs — custom items, enchantments, mob AI, screen overlays, dialogs, worldgen — plus a headless pack simulator for testing without launching the game.

Project description

Gemdp

Python builders for Minecraft datapacks and resource packs.

Features

  • Custom items, tools, weapons & armor
  • Custom blocks & ores
  • Custom mobs
  • Fullscreen overlays
  • Book systems
  • Advanced events system
  • Event-driven AI for mobs
  • Projectiles & raycasting
  • Enchantments
  • Dialogs & triggers
  • NBT & storage
  • Testing (mc_sim interpreter)
  • And much, much more!

Quick start

pip install gemdp
from gemdp import DataPack, ResourcePack, ItemComponent

dp = DataPack("demo_dp", "demo", "1.21.11")
rp = ResourcePack("demo_rp", "demo", "1.21.11")

ruby = rp.add_custom_item(
    namespace="demo",
    item_id="minecraft:clock",
    custom_name="ruby",
    texture_path="examples/ruby_family/assets/ruby.png",
    datapack=dp,
    components=ItemComponent().max_stack_size(64),
)

dp.build("out")
rp.build("out")

Check getting started for more information

Examples

Ruby datapack

Full material set: ruby, ore, tools, sword, armor set, recipes.

examples/ruby_family/ruby_family.py

ruby items Ore spawns underground in veins ruby items

Steve mob datapack

Segmented display mob, keyframe animations, MobAI with patrol, hit reactions, goal routing.

examples/steve_mob/steve_mob.py

steve mob

Rules Card

Small datapack that adds the Rules card item capable of creating rules in runtime

examples/rules_card/rules_card.py

rules card rules card menu

More examples in:

examples/

Docs

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

gemdp-10.0.0.tar.gz (386.8 kB view details)

Uploaded Source

Built Distribution

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

gemdp-10.0.0-py3-none-any.whl (301.3 kB view details)

Uploaded Python 3

File details

Details for the file gemdp-10.0.0.tar.gz.

File metadata

  • Download URL: gemdp-10.0.0.tar.gz
  • Upload date:
  • Size: 386.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.0

File hashes

Hashes for gemdp-10.0.0.tar.gz
Algorithm Hash digest
SHA256 b40ec3e9b041a8dfdf64de313bf8a37e243b44c90ec1cbdc5a531b7ab49d035f
MD5 c308d892dd988506f50832db730d7e8e
BLAKE2b-256 08025b10f1e86f6077b5aa8abfa0884ce4bd3413c85dae9aeee75301fe7d8993

See more details on using hashes here.

File details

Details for the file gemdp-10.0.0-py3-none-any.whl.

File metadata

  • Download URL: gemdp-10.0.0-py3-none-any.whl
  • Upload date:
  • Size: 301.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.0

File hashes

Hashes for gemdp-10.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b3223adadabb07e01c424118f3704bdfbe2a17a8789b5936442b2d338cd4905
MD5 110eecffbebedd8f2245df6095f69c0f
BLAKE2b-256 5f9df391b4ccaa1d3459d442cbc2518920d8c90441d4f7c913614342c7095de9

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