Everything posted by tuskiomi
-
array troubles
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?
-
[SOLVED] Is it possible to check the biome when placing a block?
is netbeans a good one?
-
[1.5.1] onItemUse troubles. [very unsolved]
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?
-
Modder status/subforum requests
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
-
triggering an event every tick and getting the current player?
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.
-
entity player conspiracy
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.
-
easy tool for modders to update to 1.5 [not a problem]
thats for texture packs, and besides, this is online
-
java.lang.RuntimeException: Don't register null!
OH MY GOD!!! i just deleted my set name for EVERYTHING. i could've done a find and replace ;'(
-
java.lang.RuntimeException: Don't register null!
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)
-
How to build, install, and test?
if using eclipse press F11 o wait are you on mac? okay... first get a pc then press F11
-
How to build, install, and test?
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.
-
easy tool for modders to update to 1.5 [not a problem]
added rename support for those who dont like tags.
-
easy tool for modders to update to 1.5 [not a problem]
yes, i hope this gets stickied
-
easy tool for modders to update to 1.5 [not a problem]
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.
-
easy tool for modders to update to 1.5 [not a problem]
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.
-
easy tool for modders to update to 1.5 [not a problem]
tell me if it does
-
easy tool for modders to update to 1.5 [not a problem]
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!
-
Light Speed Boots
isnt there something to schedule an event on a tick?
-
help with metadata
im kinda rushed on this one guys. anyone have anything?
-
Light Speed Boots
wouldnt that trigger every tick? thats alot of fire.
-
help with metadata
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?
-
Need Help Quickly!!
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.
-
Display item damage bar regardless of damage?
the damage would have to be 1.
-
make block change on right click?(with a certain item in player hand)[solved]
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!
-
ticking memory connection error (i think this is a forge bug)
gotcha, locking now
IPS spam blocked by CleanTalk.