Guest User

My Mod

a guest
Jul 23rd, 2012
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 4.31 KB | None | 0 0
  1. Hey can you please help me, i followed your tutorial but this keeps happening:
  2.  
  3.  
  4. Exception in thread "main" java.lang.Error: Unresolved compilation problems:
  5.     The import paulscode.sound.SoundSystem cannot be resolved
  6.     The import paulscode.sound.SoundSystemConfig cannot be resolved
  7.     The import paulscode.sound.codecs.CodecJOrbis cannot be resolved
  8.     The import paulscode.sound.codecs.CodecWav cannot be resolved
  9.     The import paulscode.sound.libraries cannot be resolved
  10.     SoundSystem cannot be resolved to a type
  11.     SoundSystemConfig cannot be resolved
  12.     LibraryLWJGLOpenAL cannot be resolved to a type
  13.     SoundSystemConfig cannot be resolved
  14.     CodecJOrbis cannot be resolved to a type
  15.     SoundSystemConfig cannot be resolved
  16.     SoundSystemConfig cannot be resolved
  17.     CodecWav cannot be resolved to a type
  18.     SoundSystem cannot be resolved to a type
  19.     SoundSystem cannot be resolved to a type
  20.     SoundSystem cannot be resolved to a type
  21.     SoundSystem cannot be resolved to a type
  22.     SoundSystem cannot be resolved to a type
  23.     SoundSystem cannot be resolved to a type
  24.     SoundSystem cannot be resolved to a type
  25.     SoundSystem cannot be resolved to a type
  26.     SoundSystem cannot be resolved to a type
  27.     SoundSystem cannot be resolved to a type
  28.     SoundSystem cannot be resolved to a type
  29.     SoundSystem cannot be resolved to a type
  30.     SoundSystem cannot be resolved to a type
  31.     SoundSystem cannot be resolved to a type
  32.     SoundSystem cannot be resolved to a type
  33.     SoundSystem cannot be resolved to a type
  34.     SoundSystem cannot be resolved to a type
  35.     SoundSystem cannot be resolved to a type
  36.     SoundSystem cannot be resolved to a type
  37.     SoundSystem cannot be resolved to a type
  38.     SoundSystem cannot be resolved to a type
  39.     SoundSystem cannot be resolved to a type
  40.     SoundSystem cannot be resolved to a type
  41.     SoundSystem cannot be resolved to a type
  42.     SoundSystem cannot be resolved to a type
  43.     SoundSystem cannot be resolved to a type
  44.     SoundSystem cannot be resolved to a type
  45.     SoundSystem cannot be resolved to a type
  46.     SoundSystem cannot be resolved to a type
  47.  
  48.     at net.minecraft.src.SoundManager.<init>(SoundManager.java:8)
  49.     at net.minecraft.client.Minecraft.<init>(Minecraft.java:209)
  50.     at net.minecraft.src.MinecraftImpl.<init>(MinecraftImpl.java:16)
  51.     at net.minecraft.client.Minecraft.startMainThread(Minecraft.java:2392)
  52.     at net.minecraft.client.Minecraft.startMainThread1(Minecraft.java:2379)
  53.     at net.minecraft.client.Minecraft.fmlReentry(Minecraft.java:2447)
  54.     at cpw.mods.fml.client.FMLClientHandler.preGameLoad(FMLClientHandler.java:959)
  55.     at net.minecraft.client.Minecraft.main(Minecraft.java:2442)
  56.     at Start.main(Start.java:22)
  57.  
  58. THis is the code:
  59.  
  60. package net.minecraft.src;
  61. import net.minecraft.src.forge.*;
  62.  
  63. public class mod_wickedcraft extends BaseMod
  64. {
  65.  
  66.  
  67.     @Override
  68.     public String getVersion()
  69.     {
  70.         return "0.0.1";
  71.     }
  72.  
  73.     public static final Block ForgeBlock = new BlockForgeBlock(201, 1).setHardness(3F).setResistance(5F).setStepSound(Block.soundStoneFootstep).setBlockName("Forge Ore");
  74.    
  75.     public mod_wickedcraft()
  76.     {
  77.         RegisterBlocks();
  78.         SetTextures();
  79.         AddNames();
  80.         Recipes();
  81.     }
  82.    
  83.     public void RegisterBlocks()
  84.     {
  85.         ModLoader.registerBlock(ForgeBlock);
  86.     }
  87.    
  88.     public void SetTextures()
  89.     {
  90.         MinecraftForgeClient.preloadTexture("/Tutorial/Blocks.png");
  91.         MinecraftForgeClient.preloadTexture("/Tutorial/Items.png");
  92.     }
  93.    
  94.     public void AddNames()
  95.     {
  96.         ModLoader.AddName(ForgeBlock, "Forge Block");
  97.    
  98.     }
  99.    
  100.     public void Recipes()
  101.     {
  102.         ModLoader.addRecipe(new ItemStack(ForgeBlock, 64), new Object[]{
  103.             "DDD", "DDD", "DDD",'D', Block.dirt
  104.         });
  105.     }
  106.    
  107.    
  108.    
  109.    
  110.    
  111.    
  112.    
  113.    
  114.    
  115.     @Override
  116.     public void load()
  117.     {
  118.        
  119.     }
  120.  
  121. }
  122.  
  123.  
  124.  
  125.  
  126. And the Block:
  127.  
  128.  
  129.  
  130. package net.minecraft.src;
  131. import java.util.ArrayList;
  132. import java.util.Random;
  133.  
  134. import net.minecraft.src.forge.*;
  135.  
  136. public class BlockForgeBlock extends Block implements ITextureProvider
  137. {
  138.     public BlockForgeBlock(int i, int j)
  139.     {
  140.         super (i, j, Material.rock);
  141.     }
  142.  
  143.      public String getTextureFile()
  144.      {
  145.          return "/Tutorial/Blocks.png";
  146.      }
  147.      public int quantityDropped(int par1, int par2)
  148.         {
  149.             return 1;
  150.         }
  151.        
  152.         public int idDropped(int par1, Random random, int par2)
  153.         {
  154.             return mod_wickedcraft.ForgeBlock.blockID;
  155.         }
  156.      
  157.      public void addCreativeItems(ArrayList itemList)
  158.      {
  159.          itemList.add(new ItemStack(this));
  160.      }
  161.      
  162.      
  163.      
  164. }
  165.  
  166.  
  167.  
  168. PLEASE HELP!!!!1
Advertisement
Add Comment
Please, Sign In to add comment