Skip to content

Develop using ide

Simon816 edited this page Nov 15, 2015 · 10 revisions

1.2 Using the IDE [Mod Development]

Written for IDE 0.4 and above

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.

Making a Hello World mod with custom language

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: New 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
Project Created

Open the main 'class' (double click) and type code Code Editor
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
New Folder

Then do the same but choosing New File and enter custom.lng
New File
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. Edit Language File 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) Package Mod

Now your mod is packaged you can review the metadata for the .mod file by clicking on it. Mod File


Mod Development Trail
Home -> Getting Started -> Using The IDE -> View the API docs