before minecraftupdate
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// 1.21 2024-12-31T12:23:21.3602938 Item Models: nuggetmod
|
||||
// 1.21 2025-01-04T11:42:26.2312156 Item Models: nuggetmod
|
||||
90b22d61432e35fb68e2232a3eb76e15d2a77d89 assets/nuggetmod/models/item/nugget.json
|
||||
b8f9c1135f1af8d77201d51866966ba73f3dbbfc assets/nuggetmod/models/item/nugget_armor_trim_smithing_template.json
|
||||
cac221f8a7659366628c3b429c22ebd27f5adadd assets/nuggetmod/models/item/nugget_axe.json
|
||||
@@ -48,6 +48,7 @@ c52faa339653807513edd9c61b99e9311df33e30 assets/nuggetmod/models/item/nugget_leg
|
||||
597e2fb3857aeb6c2a7b4c464c0e2d91b13581a0 assets/nuggetmod/models/item/nugget_leggings_netherite_trim.json
|
||||
d3c9108105a1732366550c88e524fd2ae4a15c7a assets/nuggetmod/models/item/nugget_leggings_quartz_trim.json
|
||||
d5eb4a552e79ff6bfe770e092abfb48e88e58f06 assets/nuggetmod/models/item/nugget_leggings_redstone_trim.json
|
||||
ee757b7f51aa5703ac735ac748f433503c4f2596 assets/nuggetmod/models/item/nugget_music_disc.json
|
||||
1453d89f622ad5616505f248996b1715b196af76 assets/nuggetmod/models/item/nugget_pickaxe.json
|
||||
f67a964a8a74c61df4d090dc5b250ad03bb16d8f assets/nuggetmod/models/item/nugget_shovel.json
|
||||
dcc1dd8bb95c5c088212a9584d952a11ac2a840d assets/nuggetmod/models/item/nugget_sword.json
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "nuggetmod:item/nugget_music_disc"
|
||||
}
|
||||
}
|
||||
@@ -17,6 +17,7 @@ import org.slf4j.Logger;
|
||||
import xyz.sillyangel.nugget.item.ModCreativeModeTabs;
|
||||
import xyz.sillyangel.nugget.item.ModItems;
|
||||
import xyz.sillyangel.nugget.block.ModBlocks;
|
||||
import xyz.sillyangel.nugget.sound.ModSounds;
|
||||
|
||||
// Very important Comment
|
||||
// The value here should match an entry in the META-INF/mods.toml file
|
||||
@@ -38,6 +39,8 @@ public class NuggetMod {
|
||||
ModItems.register(modEventBus);
|
||||
ModBlocks.register(modEventBus);
|
||||
|
||||
ModSounds.register(modEventBus);
|
||||
|
||||
// Register the item to a creative tab
|
||||
modEventBus.addListener(this::addCreative);
|
||||
// Register our mod's ForgeConfigSpec so that Forge can create and load the config file for us
|
||||
|
||||
@@ -45,6 +45,7 @@ public class ModItemModelProvider extends ItemModelProvider {
|
||||
basicItem(ModItems.NUGGET_SMITHING_TEMPLATE.get());
|
||||
basicItem(ModItems.NUGGET.get());
|
||||
basicItem(ModItems.RAW_NUGGET.get());
|
||||
basicItem(ModItems.NUGGET_MUSIC_DISC.get());
|
||||
|
||||
handheldItem(ModItems.NUGGET_SWORD);
|
||||
handheldItem(ModItems.NUGGET_PICKAXE);
|
||||
|
||||
@@ -35,6 +35,8 @@ public class ModCreativeModeTabs {
|
||||
output.accept(ModItems.NUGGET_HORSE_ARMOR.get());
|
||||
output.accept(ModItems.NUGGET_SMITHING_TEMPLATE.get());
|
||||
|
||||
output.accept(ModItems.NUGGET_MUSIC_DISC.get());
|
||||
|
||||
}).build());
|
||||
|
||||
public static final RegistryObject<CreativeModeTab> NUGGET_BLOCKS_TAB = CREATIVE_MODE_TABS.register("nuggetmod_blocks_tab",
|
||||
|
||||
@@ -8,6 +8,8 @@ import net.minecraft.network.chat.Component;
|
||||
import net.minecraft.resources.ResourceLocation;
|
||||
import net.minecraftforge.registries.RegistryObject;
|
||||
import net.minecraft.world.item.*;
|
||||
import xyz.sillyangel.nugget.sound.ModSounds;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class ModItems {
|
||||
@@ -63,6 +65,11 @@ public class ModItems {
|
||||
// smithing temp
|
||||
public static final RegistryObject<Item> NUGGET_SMITHING_TEMPLATE = ITEMS.register("nugget_armor_trim_smithing_template",
|
||||
() -> SmithingTemplateItem.createArmorTrimTemplate(ResourceLocation.fromNamespaceAndPath(NuggetMod.MOD_ID, "nugget_trim_mat")));
|
||||
|
||||
public static final RegistryObject<Item> NUGGET_MUSIC_DISC = ITEMS.register("nugget_music_disc",
|
||||
() -> new Item(new Item.Properties().jukeboxPlayable(ModSounds.NUGGET_THEME_KEY).stacksTo(1)));
|
||||
|
||||
|
||||
public static void register(IEventBus eventBus) {
|
||||
ITEMS.register(eventBus);
|
||||
}
|
||||
|
||||
31
src/main/java/xyz/sillyangel/nugget/sound/ModSounds.java
Normal file
31
src/main/java/xyz/sillyangel/nugget/sound/ModSounds.java
Normal file
@@ -0,0 +1,31 @@
|
||||
package xyz.sillyangel.nugget.sound;
|
||||
|
||||
import net.minecraft.core.registries.Registries;
|
||||
import net.minecraft.resources.ResourceKey;
|
||||
import net.minecraft.world.item.JukeboxSong;
|
||||
import xyz.sillyangel.nugget.NuggetMod;
|
||||
import net.minecraft.resources.ResourceLocation;
|
||||
import net.minecraft.sounds.SoundEvent;
|
||||
import net.minecraftforge.eventbus.api.IEventBus;
|
||||
import net.minecraftforge.registries.DeferredRegister;
|
||||
import net.minecraftforge.registries.ForgeRegistries;
|
||||
import net.minecraftforge.registries.RegistryObject;
|
||||
|
||||
public class ModSounds {
|
||||
public static final DeferredRegister<SoundEvent> SOUND_EVENT =
|
||||
DeferredRegister.create(ForgeRegistries.SOUND_EVENTS, NuggetMod.MOD_ID);
|
||||
|
||||
|
||||
public static final RegistryObject<SoundEvent> NUGGET_THEME = registerSoundEvent("nugget_theme");
|
||||
public static final ResourceKey<JukeboxSong> NUGGET_THEME_KEY = ResourceKey.create(Registries.JUKEBOX_SONG,
|
||||
ResourceLocation.fromNamespaceAndPath(NuggetMod.MOD_ID, "nugget_theme"));
|
||||
|
||||
|
||||
|
||||
private static RegistryObject<SoundEvent> registerSoundEvent(String name) {
|
||||
return SOUND_EVENT.register(name, () -> SoundEvent.createVariableRangeEvent(ResourceLocation.fromNamespaceAndPath(NuggetMod.MOD_ID, name)));
|
||||
}
|
||||
public static void register(IEventBus eventBus) {
|
||||
SOUND_EVENT.register(eventBus);
|
||||
}
|
||||
}
|
||||
@@ -12,6 +12,11 @@
|
||||
"item.nuggetmod.nugget_shovel": "Nugget Shovel",
|
||||
"item.nuggetmod.nugget_axe": "Nugget Axe",
|
||||
"item.nuggetmod.nugget_hoe": "Nugget Hoe",
|
||||
|
||||
"item.nuggetmod.nugget_music_disc": "Nugget Theme",
|
||||
"item.nuggetmod.nugget_music_disc.desc": "Gegagedigedagedago",
|
||||
|
||||
|
||||
"item.nuggetmod.nugget_horse_armor": "Nugget Horse Armor",
|
||||
|
||||
"item.nuggetmod.nugget_helmet": "Nugget Helmet",
|
||||
@@ -23,7 +28,13 @@
|
||||
"creativetab.nuggetmod.nugget_blocks": "Nugget Mod Blocks",
|
||||
|
||||
"item.nuggetmod.nugget.tooltip": "THE NUGGET",
|
||||
|
||||
"item.nuggetmod.nugget_armor_trim_smithing_template": "Nugget Armor Trim",
|
||||
|
||||
"trim_pattern.nuggetmod.nugget_armor_trim_smithing_template": "Nugget Armor Trim",
|
||||
"trim_material.nuggetmod.nugget": "Nugget Material"
|
||||
"trim_material.nuggetmod.nugget": "Nugget Material",
|
||||
"trim_pattern.nuggetmod.nugget_trim_material": "Nugget Trim",
|
||||
|
||||
|
||||
"painting.nuggetmod.nugget_painting.title": "Nugget Painting",
|
||||
"painting.nuggetmod.nugget_painting.author": "Nugget Mod"
|
||||
}
|
||||
10
src/main/resources/assets/nuggetmod/sounds.json
Normal file
10
src/main/resources/assets/nuggetmod/sounds.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"nugget_theme": {
|
||||
"sounds": [
|
||||
{
|
||||
"name": "nuggetmod:nugget_theme",
|
||||
"stream": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
BIN
src/main/resources/assets/nuggetmod/sounds/nugget_theme.ogg
Normal file
BIN
src/main/resources/assets/nuggetmod/sounds/nugget_theme.ogg
Normal file
Binary file not shown.
|
Before Width: | Height: | Size: 921 B After Width: | Height: | Size: 921 B |
Binary file not shown.
|
After Width: | Height: | Size: 576 B |
Binary file not shown.
|
After Width: | Height: | Size: 8.6 KiB |
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"replace": false,
|
||||
"values": [
|
||||
"nuggetmod:nugget_chestplate"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"replace": false,
|
||||
"values": [
|
||||
"nuggetmod:nugget_boots"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"replace": false,
|
||||
"values": [
|
||||
"nuggetmod:nugget_helmet"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"replace": false,
|
||||
"values": [
|
||||
"nuggetmod:nugget_leggings"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"values": [
|
||||
"nuggetmod:nugget_painting"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"comparator_output": 15,
|
||||
"description": {
|
||||
"translate": "item.nuggetmod.nugget_music_disc.desc"
|
||||
},
|
||||
"length_in_seconds": 36,
|
||||
"sound_event": "nuggetmod:nugget_theme"
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"asset_id": "nuggetmod:nugget_painting",
|
||||
"height": 2,
|
||||
"width": 2
|
||||
}
|
||||
Reference in New Issue
Block a user