def damage_shapeless(rm: ResourceManager, name_parts: utils.ResourceIdentifier, ingredients: utils.Json, result: utils.Json, group: str = None, conditions: utils.Json = None) -> RecipeContext: res = utils.resource_location(rm.domain, name_parts) rm.write((*rm.resource_dir, 'data', res.domain, 'recipes', res.path), { 'type': 'tfc:damage_inputs_shapeless_crafting', 'recipe': { 'type': 'minecraft:crafting_shapeless', 'group': group, 'ingredients': utils.item_stack_list(ingredients), 'result': utils.item_stack(result), 'conditions': utils.recipe_condition(conditions) } }) return RecipeContext(rm, res)
def direct_block_model(rm: ResourceManager, location: utils.ResourceIdentifier, json: utils.Json): res = utils.resource_location(rm.domain, location) rm.write( (*rm.resource_dir, 'assets', res.domain, 'models', 'block', res.path), json)