Everything posted by hydroflame
-
EntityItem for planting seeds
well i have sortof a idea, you could extends EntityItem and change the update method a bit so that after x tick is automaticly find the closest block (in a range of 2x2x2 lets say) and "kills" itself and make a new plant block wherever it seems appropriate. actually this could be even cooler. you make a new kind of flower, set this flower to tick randomly and when it does you spawn polen or wtv that floats in the air, until it lands somewhere where it would either do nothing (lands on rock) or plant a new seed of the plant!
-
RenderEngine BindTexture private?
use the wiki, people already made tutorials about both these subjects texture: "hydroflame guide to textures" wavefront files: "wavefront" or something like that on the wiki
-
Weird Error With Semicolon
[lmgtfy]learn java online[/lmgtfy]
-
Weird Error With Semicolon
Item.Ids.ITEMAMETHYSTPICKAXE_ID whats that ?
-
can I add comments, and rename parameters and local variables in vanila classes?
you can always change local variable inside the method you redefine, just not those in vanilla class
-
can I add comments, and rename parameters and local variables in vanila classes?
comments are 100% safe as the compiler strips them when it compiles, as for variable name, youd have to check thigns about the srg file to add naming to it... i dont know much about it, so thats pretty much the only hint i can give you :\
-
Frustrating Nullpointer-exception....
well heres i would start debugging that Block.blocksList[l1].onSetBlockIDWithMetaData(this.worldObj, j2, par2, k2, i2); the only thigns here that can throw an NPE is blocksList[l1].onSetBlockIDWithMetaData because j2, par2, k2, i2 can throw null and no one cares, this.worlObj can be null too if its a problem it would only throw an exception later so what i would do is right before this line is called: if(Block.blockList[l1]==null){ System.out.println("the block at "+l1+" was null :\ this is bad "); } Block.blocksList[l1].onSetBlockIDWithMetaData(this.worldObj, j2, par2, k2, i2); remember you can change the vanilla code but make sure to ctrl+z all your changes after (i do it a lot for debugging)
-
Frustrating Nullpointer-exception....
no i mean, does the object exists, (like code wise) like the programe expect to find somethign at Block.blocksList[tallGrassId] and if theres nothing (because the block isnt created) well its gon crash
-
Frustrating Nullpointer-exception....
well whatever this method is trying to get par1World.setBlock(i1, j1, k1, this.tallGrassID, 0, 2); im guessing its the plant but yeah, does thsi block exists at that point ?
-
Frustrating Nullpointer-exception....
line 698 of Chunk.java: do you have your block generated at that point ?
-
[Still need help] Gui with container, help!
well start by posting the error...
-
Delays
heu .. the method that buidl the structure wouldnt be public pseudo code of what i did: public class StructurebuilderThread extends Thread{ private ConcurrentLinkedQueue<BuildTask> tasks = new ConcurrentLinkedQueue<BuildTask>(); public void addBuildTask(World world, int x, int y, int z){ tasks.add(new BuildMyStructure(world, x, y, z)); } public void run(){ while(true){ if(there is a task in queue){ executeTask(tasks.poll()); } } } private void executeTask(BuildTask task){ //actual building here } } anyway op, diesieben is right you should use ScheduledTickHandler
-
Delays
the only i could see why it would fail is because of ssp when a player switch dimention. but if that happens just make a playertracker and send the message to the thread and ask it to finish all at once. i guess scheduledtickhandler could be more "safe" but my during my test i wasn't able to make it blow up with another thread ....
-
How to create an API for my mod?
you nake them accessible so we can read them
-
Delays
why the hell not, it works
-
How to create an API for my mod?
most importantly generate your javadocs please
-
Delays
shoot the task ti another thread and handle everything from there hint: Thread.sleep(500); wont do anything for 500ms
-
[1.6.2] the forge revolution (the day has come!)
yeah lot of ppl said that ill deff downscale my models, itll be easier for low-end computer too open beta should be avail soon on my server
-
I have subclassed BlockHopper now I need to render my hopper. How?
yeah
-
Open Vanilla GUI w/ item right click?
ill make one later
-
I have subclassed BlockHopper now I need to render my hopper. How?
ISBRH = ISimpleBlockRenderingHandler, check the wiki theres a tutorial on it
-
MCP + forge + Netbeans
im french, i could translate pm me the link
-
Looking for people to help test this modeller!
a class file which (last time i used) is full of errors
-
onItemUse event not firing when ItemBlock is placed
maybe onItemUse isnt the right thing to use ?, theres a lot of similar function in Item.java
-
Looking for people to help test this modeller!
good to knwo, i tought it couldnt yeha, but blender makes way more efficient models and way more beautifull models btw if your program ever outputs code, can you have a class that will automaticly use display list ?
IPS spam blocked by CleanTalk.