mirror of
https://github.com/Pridecraft-Studios/joy.git
synced 2025-08-03 22:46:02 -04:00
Added 2nd test disc, and temp textures mostly for tests (#13)
This commit is contained in:
parent
0e9afe919f
commit
18b1fb28bb
@ -46,5 +46,7 @@ public class ModModelProvider extends FabricModelProvider {
|
||||
itemModelGenerator.register(ModItems.AXOLOTL_SPAWN_EGG, Models.GENERATED);
|
||||
itemModelGenerator.register(ModItems.FROG_SPAWN_EGG, Models.GENERATED);
|
||||
itemModelGenerator.register(ModItems.SNIFFER_SPAWN_EGG, Models.GENERATED);
|
||||
itemModelGenerator.register(ModItems.TEST_DISC, Models.GENERATED);
|
||||
itemModelGenerator.register(ModItems.TEST_DISK, Models.GENERATED);
|
||||
}
|
||||
}
|
@ -33,7 +33,7 @@ public class ModItems {
|
||||
public static final Item SNIFFER_SPAWN_EGG = registerItem("sniffer_spawn_egg", new CustomSpawnEggItem(ModEntities.SNIFFER, 8855049, 0xff80bf, new Item.Settings()));
|
||||
// Test disc item that can be used as template in case someone wants to create one. Note: it's not added to any item group, only obtainable via commands.
|
||||
public static final Item TEST_DISC = registerItem("test_disc", new Item(new Item.Settings().maxCount(1).rarity(Rarity.RARE).jukeboxPlayable(RegistryKey.of(RegistryKeys.JUKEBOX_SONG, Identifier.of(MOD_ID, "douglas")))));
|
||||
|
||||
public static final Item TEST_DISK = registerItem("test_disk", new Item(new Item.Settings().maxCount(1).rarity(Rarity.RARE).jukeboxPlayable(RegistryKey.of(RegistryKeys.JUKEBOX_SONG, Identifier.of(MOD_ID, "melancolie")))));
|
||||
|
||||
private static Item registerItem(String name, Item item) {
|
||||
return Registry.register(Registries.ITEM, Identifier.of(MOD_ID, name), item);
|
||||
|
@ -9,7 +9,7 @@ import net.minecraft.util.Identifier;
|
||||
|
||||
public class ModSoundEvents {
|
||||
public static final RegistryEntry.Reference<SoundEvent> DOUGLAS = registerReference("music_disc.douglas");
|
||||
|
||||
public static final RegistryEntry.Reference<SoundEvent> MELANCOLIE = registerReference("music_disc.melancolie");
|
||||
|
||||
private static SoundEvent registerSound(String id) {
|
||||
Identifier identifier = Identifier.of(Joy.MOD_ID, id);
|
||||
|
6
src/main/resources/assets/joy/models/item/test_disc.json
Normal file
6
src/main/resources/assets/joy/models/item/test_disc.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "item/generated",
|
||||
"textures": {
|
||||
"layer0": "joy:item/test_disc"
|
||||
}
|
||||
}
|
6
src/main/resources/assets/joy/models/item/test_disk.json
Normal file
6
src/main/resources/assets/joy/models/item/test_disk.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "item/generated",
|
||||
"textures": {
|
||||
"layer0": "joy:item/test_disk"
|
||||
}
|
||||
}
|
@ -6,5 +6,13 @@
|
||||
"stream": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"music_disc.melancolie": {
|
||||
"sounds": [
|
||||
{
|
||||
"name": "joy:music/game/melancolie",
|
||||
"stream": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Binary file not shown.
BIN
src/main/resources/assets/joy/textures/item/test_disc.png
Normal file
BIN
src/main/resources/assets/joy/textures/item/test_disc.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 185 B |
BIN
src/main/resources/assets/joy/textures/item/test_disk.png
Normal file
BIN
src/main/resources/assets/joy/textures/item/test_disk.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 210 B |
File diff suppressed because it is too large
Load Diff
10
src/main/resources/data/joy/jukebox_song/melancolie.json
Normal file
10
src/main/resources/data/joy/jukebox_song/melancolie.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"comparator_output": 14,
|
||||
"description": {
|
||||
"translate": "music_disc.joy.melancolie"
|
||||
},
|
||||
"length_in_seconds": 241.0,
|
||||
"sound_event": {
|
||||
"sound_id": "joy:music_disc.melancolie"
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user