Import another mods SRC´s and make it work in MCreator

Started by der_wolf_YT on Tue, 01/23/2018 - 00:05
Last seen on 23:32, 21. Feb 2018
Joined Mar 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Import another mods SRC´s and make it work in MCreator
Tue, 01/23/2018 - 00:05

For this tutorial, i will use the Source Code of BuildBroken´s Wooden Rails in MC 1.7.10 and You can do the same with another mods without another mod dependencies (You cant use Mods like Buildcraft or IC2)

First of all, Do an Backup of your entire MCreator´s installation folder, then Make another backup in the desktop (In this instance i will call it ´´test´´), then delete all the workspace´s mods (Yeah, thats why the two backups), let it finish the task and close mcreator.

Download an source code of an mod (Again, its of BuildBroken´s Wooden Rails) and unzip its contents in the desktop

Then open the folder where you located the MCreator (The one you cleaned of mods) and go to forge/src/main/java/mod and you´ll see an folder called ´´Mcreator´´, do the same with the Source code you just downloaded (Instead of mod, it can be named com or net), open the folder and copy the inside (In this case its BuildBroken), paste inside forge/src/main/java/mod and NOT inside MCreator´s folder, close the file manager´s windows and open MCreator

Go to Code section and you´ll be able of editing the man code of the mod.

And, Thats all! i will finish Wooden Rails mod

Images coming soon

Last seen on 20:55, 30. May 2018
Joined Nov 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I have been looking for…
Tue, 01/23/2018 - 01:53

I have been looking for someone to post something about this!!!! So lets say that I wanted to make a mod that expanded on the concept of BB's Wooden Rails, and I needed to make one of BB's wooden rails, an ingredient for a diamond rail's recipe of a Mcreator mod, doing this would allow me to do so? Could I then just export as normal?

Doing this will make BB's Wooden Rails a required mod for my Mcreator mod to work which is exactly what I'm looking for. Is that right?

Last seen on 23:32, 21. Feb 2018
Joined Mar 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
If you want to modify an…
Tue, 01/23/2018 - 21:25

If you want to modify an existent (or add mod parts to) SRC, you´ll need to add the item inside the mod´s domain folder (IF you use Wooden Rails as base, you´ll need to place it inside the domain´s root folder, it is exactly, if you done well what i said, in:  C:\Users\(Your PC)\Desktop\Test\forge\src\main\java\mod\builtbroken\woodenrails), then build it with MCreator

If you want to add a new Rail, You'll need to know basic java script programming, Remember to add the imports, APIs and Class extensions to the mod class (I can explain better to you, if you need)

You can export as normal, Just rename the mod (In the export screen) To BuildMod + (the name of the mod)

You can make derivations of this SRC, Since its open sourced

Last seen on 23:32, 21. Feb 2018
Joined Mar 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
And one more thing, You…
Tue, 01/23/2018 - 21:48

And one more thing, You NEVER, NEVER and NEVER will rip the mod's source code without giving credit to the one who made it.

Last seen on 20:55, 30. May 2018
Joined Nov 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Thanks for replying!…
Wed, 01/24/2018 - 03:45

Thanks for replying!

I see what you say now.  I was looking to do something more along the lines of an addon, to another mod in case I needed to go that way. How things are looking right now I think I'm just gonna try and use the ore dictionary for compatibility.

I'm new to this, but hey I looked inside a source code for the very first time with your instructions. My intention is to try and use an API in the future to make mods in Mcreator. I don't know if that would be possible. I don't know if at that point I'd be better off coding it outside of mcreator itself.

 

Last seen on 23:32, 21. Feb 2018
Joined Mar 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Once you get familiar with…
Wed, 01/24/2018 - 22:01

Once you get familiar with the mod coding itself, MCreator losses all barriers!

I can help you to make an working mod,and  encode the entire mod!

Last seen on 20:55, 30. May 2018
Joined Nov 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Do you think you could help…
Sat, 01/27/2018 - 01:56

Do you think you could help me out creating my very first event handler? I haven't had luck here or the minecraft forums yet.

package mod.mcreator;

public class MyEventHandler
{
     @SubscribeEvent
     public void debark(HarvestDropsEvent event)
     {
      Right click on birch wood with an axe and replace it with a debarked birch log. Also drop item birch bark on the ground.      
     }
     
}

That's what I got I don't know whats next.