How to create your own Lucky Block mod using MCreator

Started by ZombieManF on Mon, 12/03/2018 - 21:26

Topic category: User side tutorials

Last seen on 20:30, 11. Dec 2018
Joined Dec 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
How to create your own Lucky Block mod using MCreator
Mon, 12/03/2018 - 21:26

IDK if there is already a tutorial on this, but this is my personal way of making a Lucky Block, so just follow along with the steps (sorry if they are hard to read).

  1. Create your Lucky Block texture. I would recommend either Importing it or Drawing it, as you cannot get the question mark in the easy-to-use interface. Unless you do not want the question mark, in which case, proceed.
  2. Create a new block and make it your Lucky Block.
  3. Check the box that says "Doesn't drop itself?" and set the item to air (the cloud).
  4. Add a procedure under "When block destroyed by player."
  5. Create a new local Number variable and name it "Lucky".
  6. Enter the following block: "Set(Lucky) to: (((Random [0,1)) x (amountOfThingsThatCanHappen)) + (1))"
  7. Add an If Then block. Click the gear in the corner and add an Else If block for every thing that you want to happen.
  8. On every If block, put an ((variable) = (thenumber)). Increase it by 1 each time.
  9. Add lines of code inside each If and Else If for every thing you want your Lucky Block to do when cracked open.

If it does not work, check to make sure you did the steps correctly (they worked for me when I tested). The steps above are for MCreator 1.8.1.

I hope this tutorial helped!

Last seen on 17:28, 19. May 2019
Joined Apr 2010
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
  • developer
Nice tutorial :)
Wed, 12/05/2018 - 12:18

Nice tutorial :)

Last seen on 21:45, 18. May 2019
Joined Nov 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Thanks for this easy…
Thu, 12/27/2018 - 23:29

Thanks for this easy tutorial!

Last seen on 19:32, 26. Apr 2019
Joined Oct 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
ill like this if the creator…
Tue, 01/08/2019 - 16:06

ill like this if the creator of mcreator add procedures to mcreator 1.10.2

Last seen on 22:27, 17. May 2019
Joined Mar 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
bad undersand 
Wed, 01/09/2019 - 11:47

bad undersand 

Last seen on 00:30, 16. May 2019
Joined Aug 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I use the previous version…
Sat, 01/19/2019 - 20:06

I use the previous version of mcreator ):

Last seen on 20:14, 3. May 2019
Joined Aug 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Do you have MCreator 1.7.9…
Sat, 01/19/2019 - 21:48

Do you have MCreator 1.7.9 or more or MCreator 1.7.8 or less ?

Last seen on 00:30, 16. May 2019
Joined Aug 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
1.7.8 Yeh.
Sun, 01/20/2019 - 02:05

1.7.8

Yeh.

Last seen on 08:13, 19. May 2019
Joined Jul 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I found that you can also…
Sun, 01/20/2019 - 06:00

I found that you can also use the "When block destroyed by player" event to put in various things & use the random possibility condition or use various probability conditions.

Last seen on 17:28, 19. May 2019
Joined Apr 2010
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
  • developer
CoolskeletonMods, you should…
Sun, 01/20/2019 - 13:01

CoolskeletonMods, you should update to 1.8.1.

Last seen on 00:30, 16. May 2019
Joined Aug 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I have used it once, but I…
Sun, 01/20/2019 - 14:32

I have used it once, but I have progress on previous versions. I don't like it either.