Added 2nd test disc, and temp textures mostly for tests (#13)

This commit is contained in:
NormalFery 2024-10-23 11:31:58 +01:00 committed by GitHub
parent 0e9afe919f
commit 18b1fb28bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 4477 additions and 2 deletions

View File

@ -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);
}
}

View File

@ -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);

View File

@ -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);

View File

@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "joy:item/test_disc"
}
}

View File

@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "joy:item/test_disk"
}
}

View File

@ -6,5 +6,13 @@
"stream": true
}
]
},
"music_disc.melancolie": {
"sounds": [
{
"name": "joy:music/game/melancolie",
"stream": true
}
]
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 B

File diff suppressed because it is too large Load Diff

View 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"
}
}