-
Notifications
You must be signed in to change notification settings - Fork 4
Develop using ide
The IDE can be found on the downloads page and is recommended for developing Comcraft Mods.
I should point out it is WIP (Work In Progress) and more features will be added as well as less bugs.
It is slightly similar to Eclipse IDE as I have based it around that but lacks many features.
Hopefully most functionally will be self-explanatory but I'll run through a list of features.
Open the IDE, it will prompt for a workspace directory - press OK when ready
You will see the welcome screen
Follow this image to create a new mod project:
File names should follow Java package conventions
This creates a set of files/folders and adds it to the mod list.
The main class is created and the Mod Descriptor is automatically opened
Open the main 'class' (double click) and type code
See View the API docs for all supported objects
Note: Press Save File. (It will also ask for saving when closing the IDE and when closing the file tab)
Now Lets create the file /lang/custom.lng
Right click on res, choose New Folder and type lang in the prompt
Then do the same but choosing New File and enter custom.lng
Because we are editing a file to load as a language, enter language syntax, see templates etc here
Type what you want to put in the file, for languages - any missing translations default to English.
Press Save File again for this file
Some features are not covered here, but right click on various elements on the navigation pane on the left to discover easy to use options.
To package your mod into a .mod file click the Package Mod button (All files must be saved beforehand)
Now your mod is packaged you can review the metadata for the .mod file by clicking on it.
Mod Development Trail
Home -> Getting Started -> Using The IDE -> View the API docs