Setting Up Step 2 - Fexcraft/FVTM GitHub Wiki
Once you have successfully setup/built
the project, as expected from Setting Up - Step 1,
you can start making this "PDK"
project into YOUR pack project.
One Important thing: you need an unique id
for your pack.
All your resources will be expected to be under this "domain".
Here a list of files you have to edit - and how to.
src/main/java/net/fexcraft/mod/addon/yourpack/YourPackMainClass
You can rename this file as you want, but make sure the to change the name inside the file too!
You can also change the path/package of the file as well - or rather you should.
You may want to take a look into Naming a Package.
If you do not want to use your e-mail adress, do not have an internet domain, or etc, you can use the fexcraft domain in this pattern:
net.fexcraft.mod.addon.<your-pack-id>.<your-classes-here>
===
Now let's take a look into the Main class (note, right now it's a.java
file, since uncompiled)
That's some fields you HAVE TO change:package net.fexcraft.mod.addon.yourpack;
update the package to the one you choose to have@AddonClass(registryname = "fvtm:yourpack")
replaceyourpack
with yourunique id
.String MODID = "yourpack"
replaceyourpack
with yourunique id
.String NAME = "Your Pack Name Here"
insert inside the""
(quotes) a name for your packString VERSION = "1.0"
you can update this one later
===
Thisclass
will make sure your pack is registered into both Forge and FVTM!
src/main/resources/pack.mcmeta
Updating this file is relatively optional, but you can take a look inside none the less.src/main/resources/mcmod.info
Update the values here similarly to how you did in the main class, you may want to read Forge - Scructuringsrc/main/resources/assets/yourpack/addonpack.fvtm
Here are a couple of values to update (this is a JSON file):"RegistryName": "fvtm:yourpack"
Update it to the same value you entered in the main class at @AddonClass"Name": "Your Pack Name Here"
Insert your pack name."URL": "http://fexcraft.net/download?modid=addon-yourpack"
You can add inside here anOFFICIAL
download source for your pack!"UpdateID": "addon-yourpack"
This is the FCL update checker id, you can skip that for now."License": "http://fexcraft.net/license?id=mods"
You can add a License link here for your pack."Dependencies": ["fvtm:gep"]
This is a JSON array, you can list here other packs as dependency, you can skip that or clear and leave as[]
"Authors": [ ... ]
This is a JSON array, you can insert here the pack's authors UUIDs (can be multiple)"Version": "1.0"
You can skip this one for now.
src/main/resources/assets/yourpack
This is a Folder, rename it fromyourpack
to theunique id
of your pack.