-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
206 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/ukrainian_delight/models/item/black_krashanka.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "ukrainian_delight:item/krashanky/black_krashanka" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/ukrainian_delight/models/item/blue_krashanka.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "ukrainian_delight:item/krashanky/blue_krashanka" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/ukrainian_delight/models/item/brown_krashanka.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "ukrainian_delight:item/krashanky/brown_krashanka" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/ukrainian_delight/models/item/cyan_krashanka.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "ukrainian_delight:item/krashanky/cyan_krashanka" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/ukrainian_delight/models/item/gray_krashanka.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "ukrainian_delight:item/krashanky/gray_krashanka" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/ukrainian_delight/models/item/green_krashanka.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "ukrainian_delight:item/krashanky/green_krashanka" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/ukrainian_delight/models/item/light_blue_krashanka.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "ukrainian_delight:item/krashanky/light_blue_krashanka" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/ukrainian_delight/models/item/light_gray_krashanka.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "ukrainian_delight:item/krashanky/light_gray_krashanka" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/ukrainian_delight/models/item/lime_krashanka.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "ukrainian_delight:item/krashanky/lime_krashanka" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/ukrainian_delight/models/item/magenta_krashanka.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "ukrainian_delight:item/krashanky/magenta_krashanka" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/ukrainian_delight/models/item/orange_krashanka.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "ukrainian_delight:item/krashanky/orange_krashanka" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/ukrainian_delight/models/item/pink_krashanka.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "ukrainian_delight:item/krashanky/pink_krashanka" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/ukrainian_delight/models/item/purple_krashanka.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "ukrainian_delight:item/krashanky/purple_krashanka" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/ukrainian_delight/models/item/red_krashanka.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "ukrainian_delight:item/krashanky/red_krashanka" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/ukrainian_delight/models/item/white_krashanka.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "ukrainian_delight:item/krashanky/white_krashanka" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/ukrainian_delight/models/item/yellow_krashanka.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "ukrainian_delight:item/krashanky/yellow_krashanka" | ||
} | ||
} |
Binary file added
BIN
+4.08 KB
.../resources/assets/ukrainian_delight/textures/item/krashanky/black_krashanka.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.66 KB
...n/resources/assets/ukrainian_delight/textures/item/krashanky/blue_krashanka.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.66 KB
.../resources/assets/ukrainian_delight/textures/item/krashanky/brown_krashanka.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.86 KB
...n/resources/assets/ukrainian_delight/textures/item/krashanky/cyan_krashanka.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.86 KB
...n/resources/assets/ukrainian_delight/textures/item/krashanky/gray_krashanka.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.87 KB
.../resources/assets/ukrainian_delight/textures/item/krashanky/green_krashanka.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions
44
src/main/resources/assets/ukrainian_delight/textures/item/krashanky/krashanky_script.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import os | ||
import json | ||
|
||
def create_json_files(directory): | ||
# Check if the directory exists | ||
if not os.path.exists(directory): | ||
print(f"Directory not found: {directory}") | ||
return | ||
|
||
# Print the directory being processed | ||
print(f"Processing directory: {directory}") | ||
|
||
# Iterate through all files in the directory | ||
for filename in os.listdir(directory): | ||
# Print the name of each file found | ||
print(f"Found file: {filename}") | ||
|
||
if filename.endswith(".png"): | ||
# Remove the file extension to get the item name | ||
item_name = os.path.splitext(filename)[0] | ||
print(f"Processing PNG file: {filename} -> {item_name}") | ||
|
||
# Create the JSON content | ||
json_content = { | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": f"ukrainian_delight:item/krashanky/{item_name}" | ||
} | ||
} | ||
|
||
# Define the output JSON file path | ||
json_filename = f"{item_name}.json" | ||
json_filepath = os.path.join(directory, json_filename) | ||
|
||
# Write the JSON content to the file | ||
with open(json_filepath, 'w') as json_file: | ||
json.dump(json_content, json_file, indent=2) | ||
|
||
print(f"Created JSON file: {json_filepath}") | ||
else: | ||
print(f"Skipped non-PNG file: {filename}") | ||
|
||
# Replace 'your_directory_path' with the path where your PNG files are located | ||
create_json_files('D:\\Users\\EUGENE\\Desktop\\mods\\ukrainian_delight\\src\\main\\resources\\assets\\ukrainian_delight\\textures\\item\\krashanky') |
Binary file added
BIN
+1.86 KB
...urces/assets/ukrainian_delight/textures/item/krashanky/light_blue_krashanka.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.86 KB
...urces/assets/ukrainian_delight/textures/item/krashanky/light_gray_krashanka.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.87 KB
...n/resources/assets/ukrainian_delight/textures/item/krashanky/lime_krashanka.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.86 KB
...esources/assets/ukrainian_delight/textures/item/krashanky/magenta_krashanka.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.87 KB
...resources/assets/ukrainian_delight/textures/item/krashanky/orange_krashanka.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.87 KB
...n/resources/assets/ukrainian_delight/textures/item/krashanky/pink_krashanka.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.87 KB
...resources/assets/ukrainian_delight/textures/item/krashanky/purple_krashanka.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.86 KB
...in/resources/assets/ukrainian_delight/textures/item/krashanky/red_krashanka.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.86 KB
.../resources/assets/ukrainian_delight/textures/item/krashanky/white_krashanka.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.87 KB
...resources/assets/ukrainian_delight/textures/item/krashanky/yellow_krashanka.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.