Skip to content

Commit

Permalink
Added Assorted Cuisine OST "CHEESE" by sisthek/boarddoctor75. Thank y…
Browse files Browse the repository at this point in the history
…ou so much!
  • Loading branch information
JuniorWolfgamingDE committed Jun 30, 2024
1 parent 1c1162d commit 4ea7de1
Show file tree
Hide file tree
Showing 10 changed files with 103 additions and 0 deletions.
26 changes: 26 additions & 0 deletions assortedcuisine.mcreator
Original file line number Diff line number Diff line change
Expand Up @@ -2368,6 +2368,21 @@
]
},
"path": "~/Pies/Finished Pie"
},
{
"name": "CheeseMusicDisc",
"type": "musicdisc",
"sortid": 148,
"compiles": true,
"locked_code": false,
"registry_name": "cheese_music_disc",
"metadata": {
"files": [
"src/main/resources/assets/assortedcuisine/models/item/cheese_music_disc.json",
"src/main/java/net/juniorwmg/assortedcuisine/item/CheeseMusicDiscItem.java"
]
},
"path": "~/Dairy"
}
],
"variable_elements": [
Expand All @@ -2386,6 +2401,14 @@
],
"category": "master",
"subtitle": "My name Mr. Cheese!"
},
{
"name": "cheese_music_disc",
"files": [
"cheese_music_disc"
],
"category": "record",
"subtitle": "Cheese Music Disc plays"
}
],
"language_map": {
Expand All @@ -2399,6 +2422,7 @@
"item.assortedcuisine.whisk": "Whisk",
"item.assortedcuisine.slurm_soda": "Slurm",
"item.assortedcuisine.bread_slice": "Bread Slice",
"item.assortedcuisine.cheese_music_disc.desc": "sisthek - CHEESE",
"item.assortedcuisine.cocoa_soda": "Cocoa Drink",
"item.assortedcuisine.hot_chocolate_milk": "Hot Chocolate Milk",
"item.assortedcuisine.golden_apple_soda": "Golden Apple Soda",
Expand All @@ -2421,6 +2445,7 @@
"item.assortedcuisine.shroom_soda": "Mushroom Soda",
"item.assortedcuisine.raw_pork_pie": "Raw Pork Pie",
"block.assortedcuisine.apple_pie": "Apple Pie",
"item.assortedcuisine.cheese_music_disc": "Cheese Music Disc",
"death.attack.cuisine.spikedpumpkin": "A player drank to much spiked soda",
"item.assortedcuisine.knife": "Knife",
"item.assortedcuisine.super_sugar": "Super Sugar",
Expand All @@ -2432,6 +2457,7 @@
"item.assortedcuisine.hot_cheese_sandwhich": "Cheese Sandwhich",
"gamerule.butterDebugCheeseMessage": "[Debug] Notify on cheese eaten (player-specific)",
"item.assortedcuisine.unfinished_scrambled_eggs": "Bowl of Butter and Eggs",
"subtitles.cheese_music_disc": "Cheese Music Disc plays",
"jei.assortedcuisine.super_health_pack_info": "Regenerates 12 health on use.",
"item.assortedcuisine.raw_empty_pie": "Raw Empty Pie",
"item.assortedcuisine.cocoa_dust": "Cocoa Dust",
Expand Down
24 changes: 24 additions & 0 deletions elements/CheeseMusicDisc.mod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"_fv": 57,
"_type": "musicdisc",
"definition": {
"name": "Cheese Music Disc",
"rarity": "COMMON",
"texture": "cheeseblock_item",
"description": "sisthek - CHEESE",
"creativeTab": {
"value": "No creative tab entry"
},
"specialInformation": {
"fixedValue": []
},
"glowCondition": {
"fixedValue": false
},
"music": {
"value": "CUSTOM:cheese_music_disc"
},
"lengthInTicks": 2760,
"analogOutput": 2
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
import net.juniorwmg.assortedcuisine.item.CocoaDustItem;
import net.juniorwmg.assortedcuisine.item.ChocolateMilkItem;
import net.juniorwmg.assortedcuisine.item.ChocolateBallsItem;
import net.juniorwmg.assortedcuisine.item.CheeseMusicDiscItem;
import net.juniorwmg.assortedcuisine.item.CheeseItem;
import net.juniorwmg.assortedcuisine.item.CheeseBurgerItem;
import net.juniorwmg.assortedcuisine.item.CarbonDioxideCylinderItem;
Expand Down Expand Up @@ -112,6 +113,7 @@ public class AssortedcuisineModItems {
public static final RegistryObject<Item> MELON_PIE = block(AssortedcuisineModBlocks.MELON_PIE);
public static final RegistryObject<Item> PORK_PIE = block(AssortedcuisineModBlocks.PORK_PIE);
public static final RegistryObject<Item> PUMPKIN_PIE = block(AssortedcuisineModBlocks.PUMPKIN_PIE);
public static final RegistryObject<Item> CHEESE_MUSIC_DISC = REGISTRY.register("cheese_music_disc", () -> new CheeseMusicDiscItem());

private static RegistryObject<Item> block(RegistryObject<Block> block) {
return REGISTRY.register(block.getId().getPath(), () -> new BlockItem(block.get(), new Item.Properties()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@
public class AssortedcuisineModSounds {
public static final DeferredRegister<SoundEvent> REGISTRY = DeferredRegister.create(ForgeRegistries.SOUND_EVENTS, AssortedcuisineMod.MODID);
public static final RegistryObject<SoundEvent> MRCHEESE = REGISTRY.register("mrcheese", () -> SoundEvent.createVariableRangeEvent(new ResourceLocation("assortedcuisine", "mrcheese")));
public static final RegistryObject<SoundEvent> CHEESE_MUSIC_DISC = REGISTRY.register("cheese_music_disc", () -> SoundEvent.createVariableRangeEvent(new ResourceLocation("assortedcuisine", "cheese_music_disc")));
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

package net.juniorwmg.assortedcuisine.item;

import net.minecraftforge.registries.ForgeRegistries;

import net.minecraft.world.level.Level;
import net.minecraft.world.item.TooltipFlag;
import net.minecraft.world.item.RecordItem;
import net.minecraft.world.item.Rarity;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Item;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.network.chat.Component;

import java.util.List;

public class CheeseMusicDiscItem extends RecordItem {
public CheeseMusicDiscItem() {
super(2, () -> ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("assortedcuisine:cheese_music_disc")), new Item.Properties().stacksTo(1).rarity(Rarity.COMMON), 2760);
}

@Override
public void appendHoverText(ItemStack itemstack, Level world, List<Component> list, TooltipFlag flag) {
super.appendHoverText(itemstack, world, list, flag);
}
}
3 changes: 3 additions & 0 deletions src/main/resources/assets/assortedcuisine/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"item.assortedcuisine.whisk": "Whisk",
"item.assortedcuisine.slurm_soda": "Slurm",
"item.assortedcuisine.bread_slice": "Bread Slice",
"item.assortedcuisine.cheese_music_disc.desc": "sisthek - CHEESE",
"item.assortedcuisine.cocoa_soda": "Cocoa Drink",
"item.assortedcuisine.hot_chocolate_milk": "Hot Chocolate Milk",
"item.assortedcuisine.golden_apple_soda": "Golden Apple Soda",
Expand All @@ -30,6 +31,7 @@
"item.assortedcuisine.shroom_soda": "Mushroom Soda",
"item.assortedcuisine.raw_pork_pie": "Raw Pork Pie",
"block.assortedcuisine.apple_pie": "Apple Pie",
"item.assortedcuisine.cheese_music_disc": "Cheese Music Disc",
"death.attack.cuisine.spikedpumpkin": "A player drank to much spiked soda",
"item.assortedcuisine.knife": "Knife",
"item.assortedcuisine.super_sugar": "Super Sugar",
Expand All @@ -41,6 +43,7 @@
"item.assortedcuisine.hot_cheese_sandwhich": "Cheese Sandwhich",
"gamerule.butterDebugCheeseMessage": "[Debug] Notify on cheese eaten (player-specific)",
"item.assortedcuisine.unfinished_scrambled_eggs": "Bowl of Butter and Eggs",
"subtitles.cheese_music_disc": "Cheese Music Disc plays",
"jei.assortedcuisine.super_health_pack_info": "Regenerates 12 health on use.",
"item.assortedcuisine.raw_empty_pie": "Raw Empty Pie",
"item.assortedcuisine.cocoa_dust": "Cocoa Dust",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "assortedcuisine:item/cheeseblock_item"
}
}
9 changes: 9 additions & 0 deletions src/main/resources/assets/assortedcuisine/sounds.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,14 @@
"stream": false
}
]
},
"cheese_music_disc": {
"subtitle": "subtitles.cheese_music_disc",
"sounds": [
{
"name": "assortedcuisine:cheese_music_disc",
"stream": true
}
]
}
}
Binary file not shown.
6 changes: 6 additions & 0 deletions src/main/resources/data/minecraft/tags/items/music_discs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"replace": false,
"values": [
"assortedcuisine:cheese_music_disc"
]
}

0 comments on commit 4ea7de1

Please sign in to comment.