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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for mcresources-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b5f1a2e6a88192b72e9a551d4895724d46e4d8918eec6a92b065201ea82e9a5 |
|
MD5 | 7f0c2b32c42ba2bc9ff33ee61f291abf |
|
BLAKE2b-256 | 2eb635af8fe398187f34b1fbcaeb663ed4a978abc1bc335ea5d7f50b55d10c67 |