Here's a lot of custom code to improve your mod.

Started by k6u on Mon, 12/18/2017 - 05:45
Last seen on 08:43, 16. Oct 2018
Joined Sep 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Here's a lot of custom code to improve your mod.
Mon, 12/18/2017 - 05:45

Hello all, I've been working on a mod for a while now and in that process I liked adding bits of custom code to the mod elements to improve it a bit. I have a text document on my computer containing all the simple lines of code I have put into my mod, so I decided to fix it up a bit and share it with the MCreator community to make other peoples mods a little bit better. I put it in a pastebin so it's a bit more accessible, enjoy :) 

https://pastebin.com/q0aA2kSF

 

Note, I wont be providing tutorials for each piece of code, as it's pretty simple. Put the imports that have been listed into the imports list, and then put the code in the right place.. Pretty easy.

Last seen on 23:29, 7. Oct 2018
Joined Nov 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Very nice! Will use thank…
Tue, 01/23/2018 - 02:32

Very nice! Will use thank you very much.

Last seen on 16:24, 16. Oct 2018
Joined Jun 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Awesome! My new mod will use…
Fri, 02/09/2018 - 22:37

Awesome! My new mod will use these codes a lot! :D

Last seen on 15:45, 1. Oct 2018
Joined Oct 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I love a few of them thanks…
Mon, 04/16/2018 - 16:51

I love a few of them thanks so much

Last seen on 01:14, 19. Aug 2018
Joined Mar 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Thank you! This is so…
Sun, 05/20/2018 - 19:28

Thank you! This is so helpful!

Last seen on 00:28, 4. Sep 2018
Joined Sep 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
I tried the bookshelf one. I…
Mon, 05/21/2018 - 20:25

I tried the bookshelf one. I changed 1 to 80, but it did nothing. Is there a max number?

Last seen on 11:09, 16. Oct 2018
Joined May 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
AMAZING, THANKS I used…
Mon, 06/25/2018 - 00:53

AMAZING, THANKS I used snipets RIGHT away!

Last seen on 11:09, 16. Oct 2018
Joined May 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
One more question for you…
Mon, 06/25/2018 - 01:28

One more question for you.

Does it matter if you change the return one to 2, 3, 4, etc....? 
public float getEnchantPowerBonus(World world, BlockPos pos)
    {
        return 1;
    }