custom music disc
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
// 1.20.1 2023-08-25T20:00:29.1439601 Item Models: tutorialmod
|
||||
// 1.20.1 2023-08-28T16:11:02.6585535 Item Models: tutorialmod
|
||||
f746b64540daf2ab6302b3ec01a78490c48fc10b assets/tutorialmod/models/item/bar_brawl_music_disc.json
|
||||
d3e9cad00ae44c9319dfbb411667eb4a09a63e57 assets/tutorialmod/models/item/catmint.json
|
||||
6126e26da373f9113d9e9be875b14a0d13857444 assets/tutorialmod/models/item/corn.json
|
||||
4c5c277fa6360b149d6c3ab20584fcc4450cda27 assets/tutorialmod/models/item/corn_seeds.json
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
// 1.20.1 2023-08-07T09:00:54.5654219 Tags for minecraft:item mod id tutorialmod
|
||||
// 1.20.1 2023-08-28T16:11:02.6575435 Tags for minecraft:item mod id tutorialmod
|
||||
526ec127a145db02975e7ec564384fa0a5389523 data/minecraft/tags/items/creeper_drop_music_discs.json
|
||||
526ec127a145db02975e7ec564384fa0a5389523 data/minecraft/tags/items/music_discs.json
|
||||
2514998bb25494de346fa0d088b7e216d8165efd data/minecraft/tags/items/trimmable_armor.json
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "tutorialmod:item/bar_brawl_music_disc"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"values": [
|
||||
"tutorialmod:bar_brawl_music_disc"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"values": [
|
||||
"tutorialmod:bar_brawl_music_disc"
|
||||
]
|
||||
}
|
||||
@@ -53,6 +53,8 @@ public class ModItemModelProvider extends ItemModelProvider {
|
||||
simpleItem(ModItems.CORN);
|
||||
simpleItem(ModItems.CORN_SEEDS);
|
||||
|
||||
simpleItem(ModItems.BAR_BRAWL_MUSIC_DISC);
|
||||
|
||||
simpleBlockItem(ModBlocks.SAPPHIRE_DOOR);
|
||||
|
||||
fenceItem(ModBlocks.SAPPHIRE_FENCE, ModBlocks.SAPPHIRE_BLOCK);
|
||||
|
||||
@@ -25,5 +25,11 @@ public class ModItemTagGenerator extends ItemTagsProvider {
|
||||
ModItems.SAPPHIRE_CHESTPLATE.get(),
|
||||
ModItems.SAPPHIRE_LEGGINGS.get(),
|
||||
ModItems.SAPPHIRE_BOOTS.get());
|
||||
|
||||
this.tag(ItemTags.MUSIC_DISCS)
|
||||
.add(ModItems.BAR_BRAWL_MUSIC_DISC.get());
|
||||
|
||||
this.tag(ItemTags.CREEPER_DROP_MUSIC_DISCS)
|
||||
.add(ModItems.BAR_BRAWL_MUSIC_DISC.get());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,6 +46,8 @@ public class ModCreativeModTabs {
|
||||
pOutput.accept(ModItems.CORN.get());
|
||||
pOutput.accept(ModItems.CORN_SEEDS.get());
|
||||
|
||||
pOutput.accept(ModItems.BAR_BRAWL_MUSIC_DISC.get());
|
||||
|
||||
pOutput.accept(ModBlocks.SAPPHIRE_BLOCK.get());
|
||||
pOutput.accept(ModBlocks.RAW_SAPPHIRE_BLOCK.get());
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ import net.kaupenjoe.tutorialmod.block.ModBlocks;
|
||||
import net.kaupenjoe.tutorialmod.item.custom.FuelItem;
|
||||
import net.kaupenjoe.tutorialmod.item.custom.MetalDetectorItem;
|
||||
import net.kaupenjoe.tutorialmod.item.custom.ModArmorItem;
|
||||
import net.kaupenjoe.tutorialmod.sound.ModSounds;
|
||||
import net.minecraft.world.item.*;
|
||||
import net.minecraftforge.eventbus.api.IEventBus;
|
||||
import net.minecraftforge.registries.DeferredRegister;
|
||||
@@ -61,6 +62,8 @@ public class ModItems {
|
||||
public static final RegistryObject<Item> CORN = ITEMS.register("corn",
|
||||
() -> new Item(new Item.Properties()));
|
||||
|
||||
public static final RegistryObject<Item> BAR_BRAWL_MUSIC_DISC = ITEMS.register("bar_brawl_music_disc",
|
||||
() -> new RecordItem(6, ModSounds.BAR_BRAWL, new Item.Properties().stacksTo(1), 2440));
|
||||
|
||||
public static void register(IEventBus eventBus) {
|
||||
ITEMS.register(eventBus);
|
||||
|
||||
@@ -21,6 +21,8 @@ public class ModSounds {
|
||||
public static final RegistryObject<SoundEvent> SOUND_BLOCK_PLACE = registerSoundEvents("sound_block_place");
|
||||
public static final RegistryObject<SoundEvent> SOUND_BLOCK_HIT = registerSoundEvents("sound_block_hit");
|
||||
|
||||
public static final RegistryObject<SoundEvent> BAR_BRAWL = registerSoundEvents("bar_brawl");
|
||||
|
||||
|
||||
public static final ForgeSoundType SOUND_BLOCK_SOUNDS = new ForgeSoundType(1f, 1f,
|
||||
ModSounds.SOUND_BLOCK_BREAK, ModSounds.SOUND_BLOCK_STEP, ModSounds.SOUND_BLOCK_PLACE,
|
||||
|
||||
@@ -23,6 +23,9 @@
|
||||
"item.tutorialmod.corn": "Corn",
|
||||
"item.tutorialmod.corn_seeds": "Corn Seeds",
|
||||
|
||||
"item.tutorialmod.bar_brawl_music_disc": "Bar Brawl Music Disc",
|
||||
"item.tutorialmod.bar_brawl_music_disc.desc": "Bryan Tech - Bar Brawl (CC0)",
|
||||
|
||||
"block.tutorialmod.sapphire_block": "Block of Sapphire",
|
||||
"block.tutorialmod.raw_sapphire_block": "Block of Raw Sapphire",
|
||||
|
||||
|
||||
@@ -34,5 +34,13 @@
|
||||
"sounds": [
|
||||
"tutorialmod:sound_block_fall"
|
||||
]
|
||||
},
|
||||
"bar_brawl": {
|
||||
"sounds": [
|
||||
{
|
||||
"name": "tutorialmod:bar_brawl",
|
||||
"stream": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
BIN
src/main/resources/assets/tutorialmod/sounds/bar_brawl.ogg
Normal file
BIN
src/main/resources/assets/tutorialmod/sounds/bar_brawl.ogg
Normal file
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 392 B |
Reference in New Issue
Block a user