Skip to main content

An automatic resource creation tool for Minecraft 1.13 Forge modding

Project description

Minecraft Resource Generator

This is a python module aimed to enable simple generation of the many json files that are required for forge modding.

Some examples from No Tree Punching 1.13 by AlcatrazEscapee:

from mcresources import ResourceManager
rm = ResourceManager('notreepunching')

for stone in ['stone', 'sandstone', 'andesite', 'granite', 'diorite']:
    # Block States
    rm.blockstate(('loose_rock', stone))
    # Block Models
    rm.block_model(('loose_rock', stone), 'minecraft:block/%s' % stone, 'notreepunching:block/loose_rock')
    # Item Models
    rm.item_model(('rock', stone))
    # Crafting Recipes
    result = ('cobblestone' if stone == 'stone' else stone)
    rm.crafting_shaped('%s_from_rocks' % result, ['##', '##'], 'notreepunching:rock/%s' % stone, 'minecraft:%s' % result)

# Item Models
for tool in ['pickaxe', 'shovel', 'axe', 'hoe', 'knife']:
    rm.item_model('flint_%s' % tool, parent='item/handheld')

# Shaped Crafting
for metal in ['iron', 'gold', 'diamond']:
    tool_metal = 'tag!forge:' + ('gems' if metal == 'diamond' else 'ingots') + '/' + metal
    metal_prefix = metal if metal != 'gold' else 'golden'
    rm.crafting_shaped('%s_knife' % metal, ['I', 'S'], {'I': tool_metal, 'S': 'tag!forge:rods/wooden'}, 'notreepunching:%s_knife' % metal_prefix)

# More Crafting Recipes
rm.crafting_shapeless('plant_string', ['notreepunching:plant_fiber'] * 3, 'notreepunching:plant_string')

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

mcresources-0.0.1.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

mcresources-0.0.1-py3-none-any.whl (16.3 kB view hashes)

Uploaded Python 3

Supported by

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