-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_scripts.sh
executable file
·34 lines (29 loc) · 2.49 KB
/
run_scripts.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
################################################################################
# Script Name: run_scripts.sh
# Description: This script automates the process of creating models, recipe
# advancements, and loot tables for a Minecraft mod project.
# Author: BarchamMal
# Date: 2024-04-24
# Version: 1.1
################################################################################
# Change directory to the location of the script
cd "${0%/*}"
# Create the models
echo "Starting Models:"
echo "-------------------------------------Carcases-------------------------------------"
python3 src/main/resources/assets/tsm/models/auto/create_carcases.py src/main/resources/assets/tsm/models/auto/carcases.yaml src/main/resources/assets/tsm/models/item src/config.yaml
echo "-------------------------------------Simple Items-------------------------------------"
python3 src/main/resources/assets/tsm/models/auto/create_simple_items.py src/main/resources/assets/tsm/models/auto/items.yaml src/main/resources/assets/tsm/models/item src/config.yaml
# Create the recipe advancements
echo "Starting Recipes"
echo "-------------------------------------Advancements-------------------------------------"
python3 src/main/resources/data/minecraft/advancements/recipes/auto/make_recipe_advancements.py src/main/resources/data/minecraft/advancements/recipes/auto/cooked_food.json src/main/resources/data/minecraft/advancements/recipes/auto/foods.yaml src/main/resources/data/minecraft/advancements/recipes/food src/config.yaml
echo "-------------------------------------Recipes-------------------------------------"
python3 src/main/resources/data/minecraft/advancements/recipes/auto/make_recipe_advancements.py src/main/resources/data/tsm/auto/cooked_food.json src/main/resources/data/minecraft/advancements/recipes/auto/foods.yaml src/main/resources/data/tsm/recipes src/config.yaml
# Create the loot tables
echo "Starting Loot Tables"
echo "-------------------------------------Entities-------------------------------------"
python3 src/main/resources/data/minecraft/loot_tables/auto/create_entity_tables.py src/main/resources/data/minecraft/loot_tables/auto/mobs.yml src/main/resources/data/minecraft/loot_tables/entities src/config.yaml
echo "-------------------------------------Carcases-------------------------------------"
python3 src/main/resources/data/tsm/loot_tables/auto/loot_table_generator.py src/main/resources/data/tsm/loot_tables/auto/loot_tables.yaml src/main/resources/data/tsm/loot_tables/carcases src/config.yaml