Hello!
I was wondering how I would make a block powered with redstone glow, to help out redstoners.
I'm quite new to Forge, but have all the basics down, and am ready to get in the deep stuff. :3
Thanks,
Phase
Edit: By glow, I tint the block's texture red. (No idea why I said glow )
Heyo!
I was wondering if there were any tutorials for a furnace! I can't seem to find any, ANYWHERE!
I tried using older versions, and they don't seem to work.
So, if anyone could direct me to a tutorial, that would be great!
Thanks
-Phase
So like this:
public class FrittenDirt extends Block {
public FrittenDirt(Material m) {
super(m);
setHardness(0.5f);
setStepSound(Block.soundTypeGravel);
setCreativeTab(CreativeTabs.tabAllSearch);
setBlockName("frittenDirt");
setBlockTextureName("lucien:frittenDirt");
}
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4)
{
par3List.add("text here");
}
}
Well der it's not working! You didn't add an ID!
Like this:
public final static Block frittenDirt = new FrittenDirt(500, Material.ground);
And in the Block Class:
public FrittenDirt(int id, Material m) {
super(m);
setCreativeTab(CreativeTabs.tabAllSearch);
}
And, Boom! Your done!
If you mean this:
@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
MinecraftForge.EVENT_BUS.register(new SoundLoader());
MinecraftForge.EVENT_BUS.register(this);
}
Then yes.
URG!!! I can't seem to get it to work...
public class SoundLoader {
@SideOnly(Side.CLIENT)
@ForgeSubscribe
public void onSoundsLoaded(SoundLoadEvent event)
{
SoundManager manager = event.manager;
manager.soundPoolStreaming.addSound(Info.TEX + ":NirtosDisc.ogg");
manager.soundPoolStreaming.addSound(Info.TEX + ":DiscVechs.ogg");
manager.soundPoolStreaming.addSound(Info.TEX + ":DiscBTeam.ogg");
}
}
that is my SoundLoader
public class NirtosDisc extends ItemRecord {
public NirtosDisc(int id, String songTitle, String songAuthor) {
super(id, songTitle);
setCreativeTab(Certus.nirtosTab);
setUnlocalizedName("NirtosDisc");
func_111206_d(Info.TEX.toLowerCase() + ":" + "Nirtos_Disc");
}
public class SoundManager {
@SideOnly(Side.CLIENT)
@ForgeSubscribe
public void onSoundsLoaded(SoundLoadEvent event)
{
net.minecraft.client.audio.SoundManager manager = event.manager;
manager.soundPoolStreaming.addSound(Info.TEX + ":test");
}
}
}
that is my disc.
When I put the disc in the jukebox, it just doesn't play any sound.
The "EthericRecord" is sort of the same as "ItemRecord", just with more strings for the item.
You would add music the same way you do in a normal music disc.
Hey there!
I was wondering how to add music to a music disc.
I already have the disc made and it works fine in-game.
When I put it in the Jukebox, it just doesn't play music.
Code:
And yes, I've tried this:
[lmgtfy]minecraft forge music disc 1.6.2[/lmgtfy]