-
Posts
1511 -
Joined
-
Last visited
Everything posted by hydroflame
-
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!
-
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
-
[lmgtfy]learn java online[/lmgtfy]
-
Item.Ids.ITEMAMETHYSTPICKAXE_ID whats that ?
-
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)
-
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
-
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 ?
-
line 698 of Chunk.java: do you have your block generated at that point ?
-
[Still need help] Gui with container, help!
hydroflame replied to PlatonCraft's topic in Modder Support
well start by posting the error... -
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
-
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 ....
-
you nake them accessible so we can read them
-
why the hell not, it works
-
most importantly generate your javadocs please
-
shoot the task ti another thread and handle everything from there hint: Thread.sleep(500); wont do anything for 500ms
-
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
-
ill make one later
-
im french, i could translate pm me the link
-
Looking for people to help test this modeller!
hydroflame replied to Flenix's topic in Modder Support
a class file which (last time i used) is full of errors -
onItemUse event not firing when ItemBlock is placed
hydroflame replied to lendrick's topic in Modder Support
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!
hydroflame replied to Flenix's topic in Modder Support
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 ?