Added record for the limbo music creepy.

This commit is contained in:
Waterpicker 2018-04-14 06:04:48 -05:00
parent 5961727b3c
commit 684daa6a5e
5 changed files with 28 additions and 1 deletions

View file

@ -46,6 +46,7 @@ public final class ModelManager {
register(ModItems.WOVEN_WORLD_THREAD_CHESTPLATE); register(ModItems.WOVEN_WORLD_THREAD_CHESTPLATE);
register(ModItems.WOVEN_WORLD_THREAD_HELMET); register(ModItems.WOVEN_WORLD_THREAD_HELMET);
register(ModItems.WOVEN_WORLD_THREAD_LEGGINGS); register(ModItems.WOVEN_WORLD_THREAD_LEGGINGS);
register(ModItems.CREEPY_RECORD);
} }
@SubscribeEvent @SubscribeEvent

View file

@ -0,0 +1,12 @@
package org.dimdev.dimdoors.shared.items;
import net.minecraft.util.SoundEvent;
import org.dimdev.dimdoors.DimDoors;
public class ItemRecord extends net.minecraft.item.ItemRecord {
protected ItemRecord(String recordName, SoundEvent soundIn) {
super(recordName, soundIn);
setRegistryName(DimDoors.MODID, "record_" + recordName);
setUnlocalizedName("record");
}
}

View file

@ -10,6 +10,8 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import org.dimdev.dimdoors.DimDoors; import org.dimdev.dimdoors.DimDoors;
import org.dimdev.dimdoors.shared.blocks.ModBlocks; import org.dimdev.dimdoors.shared.blocks.ModBlocks;
import static org.dimdev.dimdoors.shared.sound.ModSounds.CREEPY;
public final class ModItems { public final class ModItems {
// Regular doors // Regular doors
@ -50,6 +52,9 @@ public final class ModItems {
public static final ItemBlock ETERNAL_FABRIC = (ItemBlock) new ItemBlock(ModBlocks.ETERNAL_FABRIC).setRegistryName(ModBlocks.ETERNAL_FABRIC.getRegistryName()); public static final ItemBlock ETERNAL_FABRIC = (ItemBlock) new ItemBlock(ModBlocks.ETERNAL_FABRIC).setRegistryName(ModBlocks.ETERNAL_FABRIC.getRegistryName());
public static final ItemDimensionalTrapdoorWood WOOD_DIMENSIONAL_TRAPDOOR = new ItemDimensionalTrapdoorWood(); public static final ItemDimensionalTrapdoorWood WOOD_DIMENSIONAL_TRAPDOOR = new ItemDimensionalTrapdoorWood();
// Records
public static final ItemRecord CREEPY_RECORD = new ItemRecord("creepy", CREEPY);
@SubscribeEvent @SubscribeEvent
public static void registerItems(RegistryEvent.Register<Item> event) { public static void registerItems(RegistryEvent.Register<Item> event) {
event.getRegistry().registerAll( event.getRegistry().registerAll(
@ -76,6 +81,7 @@ public final class ModItems {
ANCIENT_FABRIC, ANCIENT_FABRIC,
UNRAVELLED_FABRIC, UNRAVELLED_FABRIC,
ETERNAL_FABRIC, ETERNAL_FABRIC,
WOOD_DIMENSIONAL_TRAPDOOR); WOOD_DIMENSIONAL_TRAPDOOR,
CREEPY_RECORD);
} }
} }

View file

@ -103,6 +103,8 @@ item.stabilized_rift_signature.unbound.info=First click stores a location, \noth
item.unstable_dimensional_door.info=Caution: Leads to random destination item.unstable_dimensional_door.info=Caution: Leads to random destination
item.oak_dimensional_door.info=Place on the block under a rift \nto create a portal, or place anywhere \nin a pocket dimension to exit. item.oak_dimensional_door.info=Place on the block under a rift \nto create a portal, or place anywhere \nin a pocket dimension to exit.
item.record.creepy.desc=Creepy - The sound of Limbo
entity.dimdoors.monolith.name=Monolith entity.dimdoors.monolith.name=Monolith
commands.dimteleport.usage=/dimteleport <dimension> <x> <y> <z> [yaw] [pitch] commands.dimteleport.usage=/dimteleport <dimension> <x> <y> <z> [yaw] [pitch]

View file

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