Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

tuskiomi

Forge Modder
  • Joined

  • Last visited

Everything posted by tuskiomi

  1. at first i though i was bieng a craphead @ java but i soon realised this isnt normal. so i have my test class, and inside thtis class i have a String array that holds colors. public class test { private String[] colors; colors[0]= "Red"; colors[1]="Black"; colors[2]="Cyan"; colors[3]="Blue"; colors[4]="Brown"; colors[5]="Dark Gray"; colors[6]="Dark Green"; colors[7]="Gray"; colors[8]="Light Blue"; colors[9]="Light Green"; colors[10]="Magenta"; colors[11]="Orange"; colors[12]="Pink"; colors[13]="Purple"; colors[14]="White"; colors[15]="Yellow"; } but my eclipse its telling me that there is a expected "{" after the first ";" how do i fix this?
  2. so i have a bank item i created with the xact code: package tuskiomi.common; import net.minecraft.block.Block; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.world.World; public class PaintbrushGray extends Item { public PaintbrushGray(int id){ super(id); setCreativeTab(CreativeTabs.tabAllSearch); } public String getTextureFile() { return "/tuskiomi/moditemsheet.png"; } public boolean onItemUse(ItemStack tool, EntityPlayer player, World world, int x, int y, int z, int par7, float xFloat, float yFloat, float zFloat) { System.out.println("access start"); if (!player.canPlayerEdit(x, y, z, par7, tool))//can the player edit this block? if he cant then dont do anything { System.out.println("access denied"); return false; } System.out.println("access granted"); return true; } public void updateIcons(IconRegister iconRegister) { iconIndex = iconRegister.registerIcon(tuskiomi.modid + ":" + this.getUnlocalizedName()); } } when the item is right clicked or left clicked, the console doesn't do anything. the texture is correct. anybody know how to fix this?
  3. Is there anything special you have to do in order to be a modder? do you have to have a fully functional mod? my mod is still a WIP, but i'd like to still have the tag
  4. not sure if possible but i have a method with ITickHandler, but i need to get ahold of the current player in the client as an object. is there a way to do this? any way would be appreciated.
  5. hello, i have found the folloing enum in entity player, and its creepy to say the least. OK, NOT_POSSIBLE_HERE, NOT_POSSIBLE_NOW, TOO_FAR_AWAY, OTHER_PROBLEM, NOT_SAFE; i know, it looks funny, but it seems funny that it is ordered to make a bit of sense when read fluently.
  6. thats for texture packs, and besides, this is online
  7. OH MY GOD!!! i just deleted my set name for EVERYTHING. i could've done a find and replace ;'(
  8. what is this error i get? new texture system confuzez me: if i were to guess, i think it is a problem with my item and texture registering. 2013-03-17 18:29:29 [iNFO] [sTDERR] java.lang.RuntimeException: Don't register null! 2013-03-17 18:29:29 [iNFO] [sTDERR] at net.minecraft.client.renderer.texture.TextureMap.func_94245_a(TextureMap.java:222) 2013-03-17 18:29:29 [iNFO] [sTDERR] at net.minecraft.block.Block.func_94332_a(Block.java:1359) 2013-03-17 18:29:29 [iNFO] [sTDERR] at net.minecraft.client.renderer.texture.TextureMap.func_94247_b(TextureMap.java:64) 2013-03-17 18:29:29 [iNFO] [sTDERR] at net.minecraft.client.renderer.RenderEngine.func_94152_c(RenderEngine.java:520) 2013-03-17 18:29:29 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:439) 2013-03-17 18:29:29 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) 2013-03-17 18:29:29 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:728) 2013-03-17 18:29:29 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source)
  9. if using eclipse press F11 o wait are you on mac? okay... first get a pc then press F11
  10. hello. in order to make mods there is a tideous process. you need to know a language called java. I reccomend these tutorials: http://www.youtube.com/course?list=ECFE2CE09D83EE3E28 after you learn java..... you need to learn the API.
  11. added rename support for those who dont like tags.
  12. hes on the dot! i knew it. well as a last resort, i will *gasp* write my own methods. @assassin *leans in* no homo bro.
  13. yeah, it helped me, however, it barely reduced any time for me, i made multiple textures for different blocks that use the same class. I'm praying to Lex to update the method to register icons, however, that is probably not going to happen. until.... maybe.... in 1.5.1.
  14. hello all! as of 1.5 you now have to split all your textures into seperate flies i have found an online tool that will split your spritesheets, and give you a nice zip file with all the textures in it the website is: http://imagesplitter.net/ 1. upload image. 2. on the top click on the "split image" tab 3. split into 16 rows and 16 colums 4. change file format from jpeg to PNG <------IMPORTANT 5. click split image. 6.? 7.profit!!! edit: to sort out the blanks: 1. go to the extracted files 2. arrange by size 3. the blanks will be at the bottom edit2: how to remove the tag without doing it individually 1. get all the files with tags under 1 directory 2.download this: https://code.google.com/p/mass-file-renamer/ and run 3. open the directory in which the files are included 4. in the search and remove bar place "[www.imagesplitter.net]" 5. click go. 6. ? 7. profit!
  15. isnt there something to schedule an event on a tick?
  16. im kinda rushed on this one guys. anyone have anything?
  17. wouldnt that trigger every tick? thats alot of fire.
  18. hello, non meta user here! i am working with damage bars and i'm having a bit of trouble. i wanted to make an item that dosent break so i put in this code: public boolean isDamageable() { return this.getMaxDamage()>this.getMetadata(par1) ; } waht would i put in the par1 to get the current item's damage value?
  19. cpw.mods.fml.common.LoaderException: java.lang.VerifyError: (class: tutorialtest/ItemTutorialHelmet, method: getArmorTextureFile signature: (Lur;)Ljava/lang/String;) Bad access to protected data are you using 'protected' varible type? if so change it to public.
  20. the damage would have to be 1.
  21. thanks really heped allot. also, i'm *relatively* new to java. i've bben doing the language for 6 months or so , thanks for the format tip!

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.