-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ✨ Added advanced jukebox upgrade
- Has multiple slots that can hold music discs and plays them one by one - Has controls to go skip between discs played - Allows playing discs in random order by using Shuffle toggle - Allows repeating all or the current disc played - Mobs that spawn with jukebox in their backpack will now sometimes have an advanced one with possibly more than one disc in them
- Loading branch information
Showing
11 changed files
with
117 additions
and
14 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
38 changes: 38 additions & 0 deletions
38
...ources/data/sophisticatedbackpacks/advancement/recipes/misc/advanced_jukebox_upgrade.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,38 @@ | ||
{ | ||
"neoforge:conditions": [ | ||
{ | ||
"type": "sophisticatedcore:item_enabled", | ||
"itemRegistryName": "sophisticatedbackpacks:advanced_jukebox_upgrade" | ||
} | ||
], | ||
"parent": "minecraft:recipes/root", | ||
"criteria": { | ||
"has_jukebox_upgrade": { | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"items": "sophisticatedbackpacks:jukebox_upgrade" | ||
} | ||
] | ||
}, | ||
"trigger": "minecraft:inventory_changed" | ||
}, | ||
"has_the_recipe": { | ||
"conditions": { | ||
"recipe": "sophisticatedbackpacks:advanced_jukebox_upgrade" | ||
}, | ||
"trigger": "minecraft:recipe_unlocked" | ||
} | ||
}, | ||
"requirements": [ | ||
[ | ||
"has_the_recipe", | ||
"has_jukebox_upgrade" | ||
] | ||
], | ||
"rewards": { | ||
"recipes": [ | ||
"sophisticatedbackpacks:advanced_jukebox_upgrade" | ||
] | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
src/generated/resources/data/sophisticatedbackpacks/recipe/advanced_jukebox_upgrade.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,33 @@ | ||
{ | ||
"neoforge:conditions": [ | ||
{ | ||
"type": "sophisticatedcore:item_enabled", | ||
"itemRegistryName": "sophisticatedbackpacks:advanced_jukebox_upgrade" | ||
} | ||
], | ||
"type": "minecraft:crafting_shaped", | ||
"category": "misc", | ||
"key": { | ||
"D": { | ||
"tag": "c:gems/diamond" | ||
}, | ||
"G": { | ||
"tag": "c:ingots/gold" | ||
}, | ||
"J": { | ||
"item": "sophisticatedbackpacks:jukebox_upgrade" | ||
}, | ||
"R": { | ||
"tag": "c:dusts/redstone" | ||
} | ||
}, | ||
"pattern": [ | ||
" D ", | ||
"GJG", | ||
"RRR" | ||
], | ||
"result": { | ||
"count": 1, | ||
"id": "sophisticatedbackpacks:advanced_jukebox_upgrade" | ||
} | ||
} |
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
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/sophisticatedbackpacks/models/item/advanced_jukebox_upgrade.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": "sophisticatedbackpacks:item/advanced_jukebox_upgrade" | ||
} | ||
} |
Binary file added
BIN
+304 Bytes
...ources/assets/sophisticatedbackpacks/textures/item/advanced_jukebox_upgrade.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.