Open Ezoteric opened 3 years ago
I'm assuming that your mod will depend on this mod. (which means your mod will crash if this mod is not installed). If you are using Git or Github to manage your codebase, you can do the following:
git init
), then run this command in your repo root: git submodule add git@github.com:rikka0w0/MobZReborn.git
settings.gradle
under your repo root: include 'MobZReborn'
. Create the file if it does not exist.build.gradle
, add a line to the dependencies
section, like this:
dependencies {
..... Something already exists
implementation project(':MobZReborn') <<----- Add this
}
net.mobz.init.MobZEntities.java
, you can pass them as the parameter when you try to spawn a mob.Not sure if you are targeting Fabric or Forge, the above is for Forge and should also apply to Fabric. In addition, I would suggest you declare this mod as a dependency in mods.toml
(Forge) or fabric.mod.json
(Fabric), and make sure that your mod loads after this mod, otherwise weird things can happen.
Once you finish your mod, please let me know, I would like to add it to my server!
Regards~
Hey i want to add a mob from this mod to be a boss in a mod (world of exile). I know shit for coding but i do know some things.
I want to add a mob from your mod in this line
So what do i have to import in the file And how do i add dependency in build file
Thnx