How to create your own Lucky Block mod using MCreator

Started by ZombieManF on

Topic category: User side tutorials

Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to create your own Lucky Block mod using MCreator

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!

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The video worked to thanks!
Thu, 08/26/2021 - 00:25

The video worked to thanks!