Is it possible to create a ”gacha” system?

Started by Luigi999999 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is it possible to create a ”gacha” system?
Mon, 07/23/2018 - 17:03 (edited)

Hello. I would like to create a procedure and I do not know how to do it. I would like to create a block that if you click it with a specific item you get an item selected from a list with a chance (%) set. Then the specific item used to use the block disappears.

Edited by Luigi999999 on Mon, 07/23/2018 - 17:03
Joined Sep 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
look around the forums they…
Mon, 07/23/2018 - 17:29

look around the forums they have the answers you need, you might just have to pull from several places

Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Add this procedure to "when…
Mon, 07/23/2018 - 19:02

Add this procedure to "when block right-clicked" trigger

Now, you can do this in several ways. Here is one of them:

Add a local variable to the procedure;

If (get item in entity main hand = (choose item))

Do:

Remove item from player's inventory

Set variable (local) to (random × 10) PS: you can find random on the  π  procedure block that is found in the maths tab

If local variable = 1

Add item to inventory (item)

If local variable =2

[...]

 

 

Yes, this is one of the rare comments where I use bold and italic

Joined Jul 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thank you , it helped me a…
Thu, 08/23/2018 - 21:18

thank you , it helped me a lot :)