Jump to content

ralphyrafa

Members
  • Posts

    73
  • Joined

  • Last visited

Everything posted by ralphyrafa

  1. well first of all there is no recipe that uses waterbuckets and secondly you are right about the return buckets on other recipes
  2. but since i am so nice i looked for a way made codes and got to a simple one took time to understand but it was because it was to simple lol... so in the recipe item.bucketwater just add .setContainerItem(null) so it should look like this 'w', Item.bucketWater.setContainerItem(null),
  3. well i used a sound that worked at first but when i edit it to make it shorter and faster this happens everytime i call the sound 2013-07-25 11:32:57 [iNFO] [sTDOUT] Error setting up audio input stream in method 'initialize'Q 2013-07-25 11:32:57 [iNFO] [sTDOUT] ERROR MESSAGE: 2013-07-25 11:32:57 [iNFO] [sTDOUT] Stream closed 2013-07-25 11:32:57 [iNFO] [sTDOUT] STACK TRACE: 2013-07-25 11:32:57 [iNFO] [sTDOUT] java.io.BufferedInputStream.getInIfOpen(Unknown Source) 2013-07-25 11:32:57 [iNFO] [sTDOUT] java.io.BufferedInputStream.fill(Unknown Source) 2013-07-25 11:32:57 [iNFO] [sTDOUT] java.io.BufferedInputStream.read(Unknown Source) 2013-07-25 11:32:57 [iNFO] [sTDOUT] com.sun.media.sound.RIFFReader.read(Unknown Source) 2013-07-25 11:32:57 [iNFO] [sTDOUT] com.sun.media.sound.RIFFReader.<init>(Unknown Source) 2013-07-25 11:32:57 [iNFO] [sTDOUT] com.sun.media.sound.WaveFloatFileReader.internal_getAudioFileFormat(Unknown Source) 2013-07-25 11:32:57 [iNFO] [sTDOUT] com.sun.media.sound.WaveFloatFileReader.getAudioFileFormat(Unknown Source) 2013-07-25 11:32:57 [iNFO] [sTDOUT] com.sun.media.sound.WaveFloatFileReader.getAudioInputStream(Unknown Source) 2013-07-25 11:32:57 [iNFO] [sTDOUT] javax.sound.sampled.AudioSystem.getAudioInputStream(Unknown Source) 2013-07-25 11:32:57 [iNFO] [sTDOUT] paulscode.sound.codecs.CodecWav.initialize(CodecWav.java:128) 2013-07-25 11:32:57 [iNFO] [sTDOUT] paulscode.sound.libraries.LibraryLWJGLOpenAL.loadSound(LibraryLWJGLOpenAL.java:392) 2013-07-25 11:32:57 [iNFO] [sTDOUT] paulscode.sound.libraries.LibraryLWJGLOpenAL.newSource(LibraryLWJGLOpenAL.java:640) 2013-07-25 11:32:57 [iNFO] [sTDOUT] paulscode.sound.SoundSystem.CommandNewSource(SoundSystem.java:1800) 2013-07-25 11:32:57 [iNFO] [sTDOUT] paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2415) 2013-07-25 11:32:57 [iNFO] [sTDOUT] paulscode.sound.CommandThread.run(CommandThread.java:121) 2013-07-25 11:32:57 [iNFO] [sTDOUT] Error in class 'CodecWav' 2013-07-25 11:32:57 [iNFO] [sTDOUT] Audio input stream null in method 'readAll' 2013-07-25 11:32:57 [iNFO] [sTDOUT] Error in class 'LibraryLWJGLOpenAL' 2013-07-25 11:32:57 [iNFO] [sTDOUT] Sound buffer null in method 'loadSound' 2013-07-25 11:32:57 [iNFO] [sTDOUT] Error in class 'LibraryLWJGLOpenAL' 2013-07-25 11:32:57 [iNFO] [sTDOUT] Source 'sound_12' was not created because an error occurred while loading medieval:fireshot3.wav 2013-07-25 11:32:57 [iNFO] [sTDOUT] Error in class 'LibraryLWJGLOpenAL' 2013-07-25 11:32:57 [iNFO] [sTDOUT] Source 'sound_12' not found in method 'play' is it bitrate, weight ?
  4. oo lol sorry my mistake tought you wanted this lol
  5. you can do it when making a recipe like i did here GameRegistry.addShapelessRecipe(new ItemStack(pdust), new ItemStack(Medieval.pbag.setContainerItem(Medieval.bag))); so what says here that when i get the item pdust and will make pbag into a container which will return a pdust and a bag
  6. is it because of the file weight extension bit rate or something?
  7. well i used a sound that worked at first but when i edit it to make it shorter and faster this happens everytime i call the sound 2013-07-25 11:32:57 [iNFO] [sTDOUT] Error setting up audio input stream in method 'initialize' 2013-07-25 11:32:57 [iNFO] [sTDOUT] ERROR MESSAGE: 2013-07-25 11:32:57 [iNFO] [sTDOUT] Stream closed 2013-07-25 11:32:57 [iNFO] [sTDOUT] STACK TRACE: 2013-07-25 11:32:57 [iNFO] [sTDOUT] java.io.BufferedInputStream.getInIfOpen(Unknown Source) 2013-07-25 11:32:57 [iNFO] [sTDOUT] java.io.BufferedInputStream.fill(Unknown Source) 2013-07-25 11:32:57 [iNFO] [sTDOUT] java.io.BufferedInputStream.read(Unknown Source) 2013-07-25 11:32:57 [iNFO] [sTDOUT] com.sun.media.sound.RIFFReader.read(Unknown Source) 2013-07-25 11:32:57 [iNFO] [sTDOUT] com.sun.media.sound.RIFFReader.<init>(Unknown Source) 2013-07-25 11:32:57 [iNFO] [sTDOUT] com.sun.media.sound.WaveFloatFileReader.internal_getAudioFileFormat(Unknown Source) 2013-07-25 11:32:57 [iNFO] [sTDOUT] com.sun.media.sound.WaveFloatFileReader.getAudioFileFormat(Unknown Source) 2013-07-25 11:32:57 [iNFO] [sTDOUT] com.sun.media.sound.WaveFloatFileReader.getAudioInputStream(Unknown Source) 2013-07-25 11:32:57 [iNFO] [sTDOUT] javax.sound.sampled.AudioSystem.getAudioInputStream(Unknown Source) 2013-07-25 11:32:57 [iNFO] [sTDOUT] paulscode.sound.codecs.CodecWav.initialize(CodecWav.java:128) 2013-07-25 11:32:57 [iNFO] [sTDOUT] paulscode.sound.libraries.LibraryLWJGLOpenAL.loadSound(LibraryLWJGLOpenAL.java:392) 2013-07-25 11:32:57 [iNFO] [sTDOUT] paulscode.sound.libraries.LibraryLWJGLOpenAL.newSource(LibraryLWJGLOpenAL.java:640) 2013-07-25 11:32:57 [iNFO] [sTDOUT] paulscode.sound.SoundSystem.CommandNewSource(SoundSystem.java:1800) 2013-07-25 11:32:57 [iNFO] [sTDOUT] paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2415) 2013-07-25 11:32:57 [iNFO] [sTDOUT] paulscode.sound.CommandThread.run(CommandThread.java:121) 2013-07-25 11:32:57 [iNFO] [sTDOUT] Error in class 'CodecWav' 2013-07-25 11:32:57 [iNFO] [sTDOUT] Audio input stream null in method 'readAll' 2013-07-25 11:32:57 [iNFO] [sTDOUT] Error in class 'LibraryLWJGLOpenAL' 2013-07-25 11:32:57 [iNFO] [sTDOUT] Sound buffer null in method 'loadSound' 2013-07-25 11:32:57 [iNFO] [sTDOUT] Error in class 'LibraryLWJGLOpenAL' 2013-07-25 11:32:57 [iNFO] [sTDOUT] Source 'sound_12' was not created because an error occurred while loading medieval:fireshot3.wav 2013-07-25 11:32:57 [iNFO] [sTDOUT] Error in class 'LibraryLWJGLOpenAL' 2013-07-25 11:32:57 [iNFO] [sTDOUT] Source 'sound_12' not found in method 'play'
  8. maybe my sound file is in the wrong place i have it here
  9. tried everything and still no maybe im calling it wrong when trying to use it or maybe the sound code is wrong anyway on right click its supposed to be calling a sound here a my class files ClientProxy package medieval.medievalproxy; import medieval.medievalentities.Firebolt_Entity; import medieval.medievalentities.Pixie_Entity; import medieval.medievalmodels.Pixie_Model; import medieval.medievalrender.Firebolt_Render; import medieval.medievalrender.Pixie_Render; import medieval.medievalsounds.Firebolt_Sound; import net.minecraftforge.common.MinecraftForge; import cpw.mods.fml.client.registry.RenderingRegistry; public class ClientProxy extends ServerProxy { @Override public void registerRenderThings() { RenderingRegistry.registerEntityRenderingHandler(Pixie_Entity.class, new Pixie_Render(new Pixie_Model(), 0.3F)); RenderingRegistry.registerEntityRenderingHandler(Firebolt_Entity.class, new Firebolt_Render()); System.err.println("ClientProxy renders Loaded"); } @Override public void registerRenderers() { MinecraftForge.EVENT_BUS.register(new Firebolt_Sound()); System.err.println("ClientProxy Sounds Loaded"); } } Sound File package medieval.medievalsounds; import medieval.Medieval; import net.minecraftforge.client.event.sound.SoundLoadEvent; import net.minecraftforge.event.ForgeSubscribe; public class Firebolt_Sound { @ForgeSubscribe public void onSound(SoundLoadEvent event) { try { event.manager.addSound("medieval:firebolt1.wav"); System.err.println("Firebolt Sounds Loaded"); } catch (Exception e) { System.err.println("Firebolt sounds error"); } } } and here is what calls it package medieval.medievalitems.wands; import medieval.Medieval; import medieval.medievalentities.Firebolt_Entity; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.world.World; public class Fire_Wand extends Item { public Fire_Wand(int ItemID) { super(ItemID); this.setCreativeTab(Medieval. medievaltab); } @Override public ItemStack onItemRightClick(ItemStack ItemStack, World par2World, EntityPlayer par3EntityPlayer) { if (!par3EntityPlayer.capabilities.isCreativeMode) { --ItemStack.stackSize; } par2World.playSoundAtEntity(par3EntityPlayer, "medieval:firebolt1", 1.0F, 1.0F); if (!par2World.isRemote) { par2World.spawnEntityInWorld(new Firebolt_Entity(par2World, par3EntityPlayer)); } return ItemStack; } public void registerIcons(IconRegister reg) { this.itemIcon = reg.registerIcon("medieval:firewand"); } public boolean hasEffect(ItemStack par1ItemStack) { return true; } public String Version() { return "1.6.2"; } }
  10. fixed it and i dont want to waste your time and abuse your kindness but i just want to finish what i started so the last thing my sounds to call the sound is it like this par2World.playSoundAtEntity(par3EntityPlayer, "medieval:firebolt1", 1.0F, 1.0F);
  11. ty it worked but i had to change one thing to this Minecraft.getMinecraft().renderEngine.func_110577_a(new ResourceLocation("medieval","/textures/entities/firebolt.png")); now for the sound and its done Edit: i tought it was mi computer lagging but its not when i shoot the projectile it looks buggy is it because of the update velocityt and those things in the entity registry?
  12. yes the item does appear but not the projectile and just incase here package medieval.medievalprojectiles; import java.util.Random; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.item.Item; import medieval.Medieval; public class Firebolt extends Item { public Firebolt(int i) { super(i); this.setCreativeTab(Medieval.medievaltab); maxStackSize = 64; } public void registerIcons(IconRegister reg) { this.itemIcon = reg.registerIcon("medieval:firebolt"); } public String Version() { return "1.6.2"; } }
  13. yours did somthing at first a black tile appeared and in the client it appeared firebolt render loaded but still doesnt have texture
  14. i cant find it so it is registered wrong this time i did check the details and looked around before but eveyone has it something like this in the proxy Edit: i tried using what you said to the other person which was registering the entity in the modbase wich i did like this EntityRegistry.registerGlobalEntityID(Firebolt_Entity.class, "Firebolt", EntityRegistry.findGlobalUniqueEntityId()); but iits the same no difference
  15. so the problem is that when i shoot with a certain item an entity is supposed to appear like if it was a gun, the effects work but the bullet or what you want to call it doesnt appear, and may be a problem with trying to register it i dont know here i will put the classes This is the base mod package medieval; import medieval.medievalblocks.blocks.BlockRubyBlock; import medieval.medievalblocks.blocks.BlockSapphireBlock; import medieval.medievalblocks.ores.BlockRubyOre; import medieval.medievalblocks.ores.BlockSapphireOre; import medieval.medievalentities.Pixie_Entity; import medieval.medievalitems.containers.Empty_Bag; import medieval.medievalitems.containers.Filled_Pixiedustbag; import medieval.medievalitems.etc.ItemRuby; import medieval.medievalitems.etc.ItemSapphire; import medieval.medievalitems.etc.Magesteel_Ingot; import medieval.medievalitems.etc.Pixie_Dust; import medieval.medievalitems.etc.Raw_Combination; import medieval.medievalitems.maces.Diamond_Mace; import medieval.medievalitems.maces.Golden_Mace; import medieval.medievalitems.maces.Iron_Mace; import medieval.medievalitems.maces.Stone_Mace; import medieval.medievalitems.maces.Wooden_Mace; import medieval.medievalitems.naginatas.Diamond_Naginata; import medieval.medievalitems.naginatas.Golden_Naginata; import medieval.medievalitems.naginatas.Iron_Naginata; import medieval.medievalitems.naginatas.Stone_Naginata; import medieval.medievalitems.naginatas.Wooden_Naginata; import medieval.medievalitems.spawns.Pixie_Orb; import medieval.medievalitems.wands.Diamond_Wand; import medieval.medievalitems.wands.Emerald_Wand; import medieval.medievalitems.wands.Fire_Wand; import medieval.medievalitems.wands.Ruby_Wand; import medieval.medievalitems.wands.Sapphire_Wand; import medieval.medievalmodels.Pixie_Model; import medieval.medievalprojectiles.Diamondbolt; import medieval.medievalprojectiles.Emeraldbolt; import medieval.medievalprojectiles.Firebolt; import medieval.medievalprojectiles.Rubybolt; import medieval.medievalprojectiles.Sapphirebolt; import medieval.medievalproxy.ServerProxy; import medieval.medievalrender.Pixie_Render; import net.minecraft.block.Block; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityEggInfo; import net.minecraft.entity.EntityList; import net.minecraft.entity.EnumCreatureType; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.world.biome.BiomeGenBase; import net.minecraftforge.common.Configuration; import cpw.mods.fml.client.registry.RenderingRegistry; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Init; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.EntityRegistry; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; @Mod(modid="medieval", name="Medieval Mod", version="V1") @NetworkMod(clientSideRequired=true, serverSideRequired=false) public class Medieval { @SidedProxy(clientSide = "medieval.medievalproxy.ClientProxy", serverSide = "medieval.medievalproxy.ServerProxy") public static ServerProxy proxy; public static CreativeTabs medievaltab = new Medieval_tab(CreativeTabs.getNextID(), "Medieval Mod"); public static Item LOGO; public static Item maceW; public static Item maceS; public static Item maceI; public static Item maceG; public static Item maceD; public static Item naginataW; public static Item naginataS; public static Item naginataI; public static Item naginataG; public static Item naginataD; public static Item wandD; public static Item wandE; public static Item wandR; public static Item wandSa; public static Item wandf; public static Item rawCombination; public static Item mageIngot; public static Item pemerald; public static Item pdiamond; public static Item psapphire; public static Item pruby; public static Block Sappore; public static Item Sapphireitem; public static Block SapphireBlock; public static Block Rubyore; public static Item Rubyitem; public static Block RubyBlock; public static Item fireBolt; public static Item pdust; public static Item bag; public static Item pbag; public static Item porb; //ENTITY ID REGISTRY public static int getUniqueID() { int EntityID = 300; do { EntityID++; } while (EntityList.getStringFromID(EntityID) !=null); return EntityID; } public static void registerEntityEgg(Class<? extends Entity> entity, int primarycolor, int secondarycolor) { int id = getUniqueID(); EntityList.IDtoClassMapping.put(id, entity); EntityList.entityEggs.put(id, new EntityEggInfo(id, primarycolor , secondarycolor)); } @cpw.mods.fml.common.Mod.PreInit public void PreInit(FMLPreInitializationEvent event) { Configuration config = new Configuration(event.getSuggestedConfigurationFile()); config.load(); config.save(); } @Init public void load(FMLInitializationEvent event) { //PROXY proxy.registerRenderThings(); //OREGENERATOR GameRegistry.registerWorldGenerator(new medievalblockgenerate()); //LOGO LOGO = new medievallogo(7000).setUnlocalizedName("logo"); //MOBS { //PIXIE EntityRegistry.addSpawn(Pixie_Entity.class , 10, 5, 10, EnumCreatureType.ambient, BiomeGenBase.extremeHills); EntityRegistry.registerGlobalEntityID(Pixie_Entity.class, "Pixie", 0); EntityRegistry.findGlobalUniqueEntityId(); LanguageRegistry.instance().addStringLocalization("entity.Pixie.name", "Pixie"); registerEntityEgg(Pixie_Entity.class, 0x05F205, 0x00F2D6); } //ITEMS { //MAGICALDUST pdust= new Pixie_Dust(6000).setUnlocalizedName("pixiedust"); GameRegistry.registerItem(pdust, "Pixie Dust"); LanguageRegistry.addName(pdust, "Pixie Dust"); //BAG bag= new Empty_Bag(6001).setUnlocalizedName("bag"); GameRegistry.registerItem(bag, "Bag"); LanguageRegistry.addName(bag, "Bag"); //FILLED MAGIC DUST pbag= new Filled_Pixiedustbag(6002).setUnlocalizedName("pbag").setContainerItem(pbag); GameRegistry.registerItem(pbag, "Bag of Pixie Dust"); LanguageRegistry.addName(pbag, "Bag of Pixie Dust"); //RAW COMBINATION rawCombination = new Raw_Combination(6003).setUnlocalizedName("rawcombination"); GameRegistry.registerItem(rawCombination, "Raw Combination"); LanguageRegistry.addName(rawCombination, "Raw Combination"); //MAGESTEEL INGOT mageIngot = new Magesteel_Ingot(6004).setUnlocalizedName("magesteelingot"); GameRegistry.registerItem(mageIngot, "Magesteel Ingot"); LanguageRegistry.addName(mageIngot, "Magesteel Ingot"); //SAPPHIRE ITEM Sapphireitem = new ItemSapphire(6005).setUnlocalizedName("sapphire"); GameRegistry.registerItem(Sapphireitem, "Sapphire"); LanguageRegistry.addName(Sapphireitem, "Sapphire"); //RUBY ITEM Rubyitem= new ItemRuby(6006).setUnlocalizedName("ruby"); GameRegistry.registerItem(Rubyitem, "Ruby"); LanguageRegistry.addName(Rubyitem, "Ruby"); //PIXIE ORB porb = new Pixie_Orb(6007).setUnlocalizedName("porb"); GameRegistry.registerItem(porb, "Pixie Orb"); LanguageRegistry.addName(porb, "Pixie Orb"); } //ORES/BLOCKS { //SAPPHIRE ORE Sappore= new BlockSapphireOre(3000, 0).setHardness(0.9F).setResistance(5.0f).setUnlocalizedName("sapphireore"); GameRegistry.registerBlock(Sappore, "Sapphire Ore"); LanguageRegistry.addName(Sappore, "Sapphire Ore"); //SAPPHIRE BLOCK SapphireBlock = new BlockSapphireBlock(3002, 0).setHardness(0.9F).setResistance(5.0f).setUnlocalizedName("sapphireblock"); GameRegistry.registerBlock(SapphireBlock, "Sapphire Block"); LanguageRegistry.addName(SapphireBlock, "Sapphire Block"); //RUBY ORE Rubyore = new BlockRubyOre(3003, 0).setHardness(0.9F).setResistance(5.0f).setUnlocalizedName("rubyore"); GameRegistry.registerBlock(Rubyore, "Ruby Ore"); LanguageRegistry.addName(Rubyore, "Ruby Ore"); //RUBY BLOCK RubyBlock = new BlockRubyBlock(3005, 0).setHardness(0.9F).setResistance(5.0f).setUnlocalizedName("rubyblock"); GameRegistry.registerBlock(RubyBlock, "Ruby Block"); LanguageRegistry.addName(RubyBlock, "Ruby Block"); } //WEAPONS { //WOODEN MACE maceW = new Wooden_Mace(4000, medievalweaponproperties.WOODMACE).setUnlocalizedName("macewood"); GameRegistry.registerItem(maceW, "Wooden Mace"); LanguageRegistry.addName(maceW, "Wooden Mace"); //STONE MACE maceS = new Stone_Mace(4001, medievalweaponproperties.STONEMACE).setUnlocalizedName("macestone"); GameRegistry.registerItem(maceS, "Stone Mace"); LanguageRegistry.addName(maceS, "Stone Mace"); //IRON MACE maceI = new Iron_Mace(4002, medievalweaponproperties.IRONMACE).setUnlocalizedName("maceiron"); GameRegistry.registerItem(maceI, "Iron Mace"); LanguageRegistry.addName(maceI, "Iron Mace"); //GOLDEN MACE maceG = new Golden_Mace(4003, medievalweaponproperties.GOLDMACE).setUnlocalizedName("macegold"); GameRegistry.registerItem(maceG, "Golden Mace"); LanguageRegistry.addName(maceG, "Golden Mace"); //DIAMOND MACE maceD = new Diamond_Mace(4004, medievalweaponproperties.DIAMONDMACE).setUnlocalizedName("macediamond"); GameRegistry.registerItem(maceD, "Diamond Mace"); LanguageRegistry.addName(maceD, "Diamond Mace"); //WOOD NAGINATA naginataW = new Wooden_Naginata(4005, medievalweaponproperties.WOODNAGINATA).setUnlocalizedName("naginatawood"); GameRegistry.registerItem(naginataW, "Wooden Naginata"); LanguageRegistry.addName(naginataW, "Wooden Naginata"); //STONE NAGINATA naginataS = new Stone_Naginata(4006, medievalweaponproperties.STONENAGINATA).setUnlocalizedName("naginatastone"); GameRegistry.registerItem(naginataS, "Stone Nigata"); LanguageRegistry.addName(naginataS, "Stone Naginata"); //IRON NAGINATA naginataI = new Iron_Naginata(4007, medievalweaponproperties.IRONNAGINATA).setUnlocalizedName("naginatairon"); GameRegistry.registerItem(naginataI, "Iron Naginata"); LanguageRegistry.addName(naginataI, "Iron Naginata"); //GOLD NAGINATA naginataG = new Golden_Naginata(4008, medievalweaponproperties.GOLDNAGINATA).setUnlocalizedName("naginatagold"); GameRegistry.registerItem(naginataG, "Golden Naginata"); LanguageRegistry.addName(naginataG, "Golden Naginata"); //DIAMOND NAGINATA naginataD = new Diamond_Naginata(4009, medievalweaponproperties.DIAMONDNAGINATA).setUnlocalizedName("naginatadiamond"); GameRegistry.registerItem(naginataD, "Diamond Naginata"); LanguageRegistry.addName(naginataD, "Diamond Naginata"); //DIAMOND WAND wandD = new Diamond_Wand(4012, medievalweaponproperties.WANDS).setUnlocalizedName("wanddiamond"); GameRegistry.registerItem(wandD, "Diamond Wand"); LanguageRegistry.addName(wandD, "Diamond Wand"); //EMERALD WAND wandE = new Emerald_Wand(4013, medievalweaponproperties.WANDS).setUnlocalizedName("wandemerald"); GameRegistry.registerItem(wandE, "Emerald Wand"); LanguageRegistry.addName(wandE, "Emerald Wand"); //SAPPHIRE WAND wandSa = new Sapphire_Wand(4014, medievalweaponproperties.WANDS).setUnlocalizedName("wandsapphire"); GameRegistry.registerItem(wandSa, "Sapphire Wand"); LanguageRegistry.addName(wandSa, "Sapphire Wand"); //RUBY WAND wandR = new Ruby_Wand(4015, medievalweaponproperties.WANDS).setUnlocalizedName("wandruby"); GameRegistry.registerItem(wandR, "Ruby Wand"); LanguageRegistry.addName(wandR, "Ruby Wand"); //FIRE WAND wandf = new Fire_Wand(4016).setUnlocalizedName("firewand"); GameRegistry.registerItem(wandf, "Fire Wand"); LanguageRegistry.addName(wandf, "Fire Wand"); } //PROJECTILES { //FIREBOLT fireBolt = new Firebolt(5000).setUnlocalizedName("fireBolt"); GameRegistry.registerItem(fireBolt, "Firebolt"); LanguageRegistry.addName(fireBolt, "Firebolt"); //DIAMOND PROJECTILE pdiamond = new Diamondbolt(5001).setUnlocalizedName("projectilediamond"); GameRegistry.registerItem(pdiamond, "Diamond Projectile"); LanguageRegistry.addName(pdiamond, "Diamond Projectile"); //EMERALD PROJECTILE pemerald = new Emeraldbolt(5002).setUnlocalizedName("projectileemerald"); GameRegistry.registerItem(pemerald, "Emerald Projectile"); LanguageRegistry.addName(pemerald, "Emerald Projectile"); //SAPPHIRE PROJECTILE psapphire = new Sapphirebolt(5003).setUnlocalizedName("projectilesapphire"); GameRegistry.registerItem(psapphire, "Sapphire Projectile"); LanguageRegistry.addName(psapphire, "Sapphire Projectile"); //RUBY PROJECTILE pruby = new Rubybolt(5004).setUnlocalizedName("projectileruby"); GameRegistry.registerItem(pruby, "Ruby Projectile"); LanguageRegistry.addName(pruby, "Ruby Projectile"); } //RECIPE/SMELTING { //ITEMS { //MAGEINGOT SMELTING GameRegistry.addSmelting(Medieval.rawCombination.itemID, new ItemStack(Medieval.mageIngot, 1), 1.0F); //RAWCOMBINATION RECIPE GameRegistry.addRecipe(new ItemStack(Medieval.rawCombination,1), new Object[]{ "rwr", "rlr", "pbp", 'r', Item.redstone, 'b', Item.bowlEmpty, 'w', Item.bucketWater, 'l', Block.blockLapis, 'p', pdust}); //BAG GameRegistry.addRecipe(new ItemStack(Medieval.bag,1), new Object[]{ " r ", " l ", "rrr", 'r', Item.leather, 'l', Item.silk}); //PIXIEBAG GameRegistry.addShapelessRecipe(new ItemStack(pdust), new ItemStack(Medieval.pbag.setContainerItem(Medieval.bag))); } //BLOCKS { //SAPPHIREBLOCK RECIPE GameRegistry.addRecipe(new ItemStack(Medieval.SapphireBlock,1), new Object[]{ "sss", "sss", "sss", 's', Medieval.Sapphireitem}); //RUBYBLOCK RECIPE GameRegistry.addRecipe(new ItemStack(Medieval.RubyBlock,1), new Object[]{ "sss", "sss", "sss", 's', Medieval.Rubyitem}); } //WEAPONS { //WOODENMACE RECIPE GameRegistry.addRecipe(new ItemStack(Medieval.maceW,1), new Object[]{ " w ", "wsw", " s ", 's', Item.stick, 'w', Block.planks}); //STONEMACE RECIPE GameRegistry.addRecipe(new ItemStack(Medieval.maceS,1), new Object[]{ " w ", "wsw", " s ", 's', Item.stick, 'w', Block.stone}); //IRONMACE RECIPE GameRegistry.addRecipe(new ItemStack(Medieval.maceI,1), new Object[]{ " w ", "wsw", " s ", 's', Item.stick, 'w', Block.blockIron}); //GOLDENMACE RECIPE GameRegistry.addRecipe(new ItemStack(Medieval.maceG,1), new Object[]{ " w ", "wsw", " s ", 's', Item.stick, 'w', Block.blockGold}); //DIAMONDMACE RECIPE GameRegistry.addRecipe(new ItemStack(Medieval.maceD,1), new Object[]{ " w ", "wsw", " s ", 's', Item.stick, 'w', Block.blockDiamond}); //WOODENNAGINATA RECIPE GameRegistry.addRecipe(new ItemStack(Medieval.naginataW,1), new Object[]{ " e", " q ", "q ", 'q', Item.stick, 'e', Item.swordWood}); //STONE RECIPE GameRegistry.addRecipe(new ItemStack(Medieval.naginataS,1), new Object[]{ " e", " q ", "q ", 'q', Item.stick, 'e', Item.swordStone}); //IRONNAGINATA RECIPE GameRegistry.addRecipe(new ItemStack(Medieval.naginataI,1), new Object[]{ " e", " q ", "q ", 'q', Item.stick, 'e', Item.swordIron}); //GOLDENNAGINATA RECIPE GameRegistry.addRecipe(new ItemStack(Medieval.naginataG,1), new Object[]{ " e", " q ", "q ", 'q', Item.stick, 'e', Item.swordGold}); //DIAMONDNAGINATA RECIPE GameRegistry.addRecipe(new ItemStack(Medieval.naginataD,1), new Object[]{ " e", " q ", "q ", 'q', Item.stick, 'e', Item.swordDiamond}); //DIAMONDWAND RECIPE GameRegistry.addRecipe(new ItemStack(Medieval.wandD,1), new Object[]{ " ie", " qi", "q ", 'q', Item.stick, 'i', Medieval.mageIngot, 'e', Block.blockDiamond}); //EMERALDWAND RECIPE GameRegistry.addRecipe(new ItemStack(Medieval.wandE,1), new Object[]{ " ie", " qi", "q ", 'q', Item.stick, 'i', Medieval.mageIngot, 'e', Block.blockEmerald}); //SAPPHIREWAND RECIPE GameRegistry.addRecipe(new ItemStack(Medieval.wandSa,1), new Object[]{ " ie", " qi", "q ", 'q', Item.stick, 'i', Medieval.mageIngot, 'e', Medieval.SapphireBlock}); //RUBYWAND RECIPE GameRegistry.addRecipe(new ItemStack(Medieval.wandR,1), new Object[]{ " ie", " qi", "q ", 'q', Item.stick, 'i', Medieval.mageIngot, 'e', Medieval.RubyBlock}); //FIREWAND RECIPE GameRegistry.addRecipe(new ItemStack(wandf,1), new Object[]{ " ie", " qi", "q ", 'q', Item.stick, 'i', mageIngot, 'e', Item.fireballCharge}); } } System.err.println("Medieval Basemod Loaded"); } } Here is the client proxy package medieval.medievalproxy; import medieval.medievalentities.Firebolt_Entity; import medieval.medievalentities.Pixie_Entity; import medieval.medievalmodels.Pixie_Model; import medieval.medievalrender.Firebolt_Render; import medieval.medievalrender.Pixie_Render; import medieval.medievalsounds.Firebolt_Sound; import net.minecraftforge.common.MinecraftForge; import cpw.mods.fml.client.registry.RenderingRegistry; public class ClientProxy extends ServerProxy { @Override public void registerRenderThings() { MinecraftForge.EVENT_BUS.register(new Firebolt_Sound()); RenderingRegistry.registerEntityRenderingHandler(Pixie_Entity.class, new Pixie_Render(new Pixie_Model(), 0.3F)); RenderingRegistry.registerEntityRenderingHandler(Firebolt_Entity.class, new Firebolt_Render()); System.err.println("ClientProxy Loaded"); } } here is the render file package medieval.medievalrender; import medieval.Medieval; import medieval.medievalentities.Firebolt_Entity; import net.minecraft.client.renderer.Tessellator; import net.minecraft.client.renderer.entity.Render; import net.minecraft.client.renderer.texture.TextureMap; import net.minecraft.entity.Entity; import net.minecraft.entity.projectile.EntityFireball; import net.minecraft.util.Icon; import net.minecraft.util.ResourceLocation; import org.lwjgl.opengl.GL11; import org.lwjgl.opengl.GL12; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; @SideOnly(Side.CLIENT) public class Firebolt_Render extends Render { public void doRenderfirebolt(Firebolt_Entity par1Entity, double par2, double par4, double par6, float par8, float par9) { GL11.glPushMatrix(); GL11.glTranslatef((float)par2, (float)par4, (float)par6); GL11.glEnable(GL12.GL_RESCALE_NORMAL); Icon icon = Medieval.fireBolt.getIconFromDamage(0); Tessellator tessellator = Tessellator.instance; float f3 = icon.getMinU(); float f4 = icon.getMaxU(); float f5 = icon.getMinV(); float f6 = icon.getMaxV(); float f7 = 1.0F; float f8 = 0.5F; float f9 = 0.25F; GL11.glRotatef(180.0F - this.renderManager.playerViewY, 0.0F, 1.0F, 0.0F); GL11.glRotatef(-this.renderManager.playerViewX, 1.0F, 0.0F, 0.0F); tessellator.startDrawingQuads(); tessellator.setNormal(0.0F, 1.0F, 0.0F); tessellator.addVertexWithUV((double)(0.0F - f8), (double)(0.0F - f9), 0.0D, (double)f3, (double)f6); tessellator.addVertexWithUV((double)(f7 - f8), (double)(0.0F - f9), 0.0D, (double)f4, (double)f6); tessellator.addVertexWithUV((double)(f7 - f8), (double)(1.0F - f9), 0.0D, (double)f4, (double)f5); tessellator.addVertexWithUV((double)(0.0F - f8), (double)(1.0F - f9), 0.0D, (double)f3, (double)f5); tessellator.draw(); GL11.glDisable(GL12.GL_RESCALE_NORMAL); GL11.glPopMatrix(); System.err.println("Firebolt Render Loaded"); } public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9) { this.doRenderfirebolt((Firebolt_Entity)par1Entity, par2, par4, par6, par8, par9); } protected ResourceLocation func_110790_a(Firebolt_Entity par1Firebolt_Entity) { return TextureMap.field_110576_c; } protected ResourceLocation func_110775_a(Entity par1Entity) { return this.func_110790_a((Firebolt_Entity)par1Entity); } } and while at it here is the sound note:the println form the sound appears but the code may not be right package medieval.medievalsounds; import net.minecraftforge.client.event.sound.SoundLoadEvent; import net.minecraftforge.event.ForgeSubscribe; public class Firebolt_Sound { @ForgeSubscribe public void onSound(SoundLoadEvent event) { try { String [] soundFiles = {"firebolt1.wav"}; for (int i = 0; i < soundFiles.length; i++) { event.manager.soundPoolSounds.addSound("medieval"+soundFiles[i]); System.err.println("Firebolt Sound Registered"); } } catch (Exception e) { System.err.println("Failed to register one or more sounds"); } } }
  16. put a println in the render class instead of the proxy and check if it appears
  17. you have no choise but to this this is for items forge\mcp\src\minecraft\assets\modid\textures\items this is for blocks forge\mcp\src\minecraft\assets\modid\textures\blocks modid is the name of your mod just make the folders
  18. it may be a problem with vanilla minecraft cause if you add a wood plank to the crafting bench it becomes a wooden button
  19. tihs works but the mob usually gets suffocated because they appear on corners
  20. in other words put biome generation under the blocks that the biome is going to generate
  21. ty for that but i got it to work another way
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.