How to create your own Lucky Block mod using MCreator

Started by ZombieManF on

Topic category: User side tutorials

Last seen on 20:30, 11. Dec 2018
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!

Last seen on 11:31, 30. Sep 2023
Joined Nov 2015
Points:

User statistics:

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

Thanks for this easy tutorial!

Last seen on 00:26, 18. Jun 2020
Joined Oct 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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 16:38, 10. Dec 2019
Joined Mar 2016
Points:

User statistics:

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

bad undersand 

Last seen on 20:57, 20. Jan 2024
Joined Aug 2018
Points:

User statistics:

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

I use the previous version of mcreator ):

Last seen on 20:57, 20. Jan 2024
Joined Aug 2018
Points:

User statistics:

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

1.7.8

Yeh.

Last seen on 14:19, 6. Aug 2021
Joined Jul 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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 20:57, 20. Jan 2024
Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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.

It only has new features and…
Sun, 01/20/2019 - 14:51

It only has new features and fixes a lot of bugs. We don't offer any official support for older versions.

Last seen on 18:16, 26. Jan 2021
Joined Apr 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't think he gives…
Mon, 01/21/2019 - 13:04

I don't think he gives enough info (at least in my opinion) but maybe you can help?

I want to but can nothing with the given info about the problem.

https://mcreator.net/forum/46480/help-gui

Last seen on 19:58, 9. Dec 2023
Joined Jun 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
works great thanks (:
Mon, 04/08/2019 - 19:57

works great thanks (: