Jump to content

DJD

Members
  • Posts

    64
  • Joined

  • Last visited

Everything posted by DJD

  1. Its a place where I put files that my mod generates (which can have a few subfolders if neccesary).
  2. If I have a lot of commands (some with variable parameters), what is the most efficient way of registering them ? In other words, say I've got a base command Do (its dumb but its simple like me ). It can have variable parameters associated with it such as: Do Do Something Do Something ToSomethingElse Do Help Or in other words, is there I way I can register just the single "Do" command and pass it parameters for which "Do" to "do" ? What is the best way to implement this ?
  3. If I don't use a subfolder off of the Mod folder where do I put the default folder for the mod ?
  4. I'm also assuming (dangerous I know) that I use the /Mods directory and make a sub directory of that with my mod name as a place to hold my needed folders. If this is wrong, please let me know
  5. Just what the doctor ordered ! I'll add that to my generic utililty stuff....
  6. Is there something I can call inside code to return the default minecraft pathname ? I need to save some subfolders and files subfolders and I want to be able to easily get to the /Mods/<ModName> directory. What is good practice Mod practice if you have to do this ? (e.g. create the base directory for and save files for the mod would be Mods/<Modname> ?
  7. Still flailing a little with Eclipse (this is off a fresh install so I kept my messing with things to a minimum). I guess I could play with the compiler settings if I get a little more froggy...... I'll try to make everything work in 1.6 just to be safe.......
  8. Heheh . I thought of that but it seems so many folks use Eclipse I thought I'd go with something a lot of other folks seem to be using. And why the heck don't they have #Regions like C++ does so you can group methods without having to scroll through them (even reduced with the + some classes require FAR to much scrolling through)... /Rant Done But to stay on topic (too late, I know) but here's another dumb question: Some of the writing I think requires me to use JRE 1.7 code, is that compatable with Forge ? Or does it matter since its compiled anyway ?
  9. I could do 1 dimensional arrays for batches of data at x,y,z coords (which I'll probably do) but the coding gets a bit more "cluttered" than I like. Really its more a preference to keep learning stuff I'm not wholly comfortable with and keep my skills up (including getting used to Eclipse as an IDE). I probably will settle on a sequential access file type structure for my mod. The downside is it won't be as readable as a Property file, but it should still be hand-editable..... Now if I can only get my Eclipse to stop fighting me when I'm coding !
  10. I was wondering what the best way to save/read generated files so that the user can edit them manually. Do I use a property file ? Or do I mess around with generic text files ? The file will contain an element consisting of single fields (such as "name") and some variable length 3 dimensional arrays. This is one "record" in the file, but it can contain multiple elements as well. I could do it as a binary but I want the user to be able to edit its contents in notepad or some such so I don't have to create a utility to read/mod it. Also, where is the proper place for mod writers to place their generated files (in terms of minecraft/mods) ?
  11. Sweet. Seemed I was getting some wierd stuff when I replaced some generated villages then dug through them to see if it was replacing stuff or just air, but I can't seem to repeat it now for some reason...... Seems to be working right now though.... Onward !
  12. Yet another stupid question on the same topic... Do I set the area where I'm placing the blocks to "AIR" so that the ones I'm placing overwrite any of the non-air ones that are there ? If not what is the proper process to replace blocks that already exist (e.g. non-air blocks) ?
  13. Thanks ! Now to experiment with raytrace Vec3 stuff to get where the heck I'm looking at when replacing stuff... Fun times indeed.....
  14. Simple noob here (1st post).... I've been searching for the proper (if there is one) way of removing blocks (say 3x3x3 blocks at the cursor) and replacing them with other blocks (some may be the same, some might not) using all vanilla (in game) blocks... I've got the basic stuff down (mod structure etc) now I'm getting to the nitty-gritty of actually doing STUFF to the world.... Any help would be appreciated (code snippets would be best)......
×
×
  • Create New...

Important Information

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