Random Loot drop

Started by Bobking2010 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Random Loot drop

Im trying to make a lootcrate, which gives you one of a list of items once rightclicked. But for some reason my procedure isnt working

Can someone please help me

 

 

Here is a picture of my procedure:

https://imgur.com/a/HAXPAjj

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
image is a bit blurry, but i…
Mon, 07/17/2023 - 17:28

image is a bit blurry, but i beleive you are using =. When deciding a random thing, use > or <

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the thing with random is…
Mon, 07/17/2023 - 17:29

the thing with random is that picks a random number of ANY digit. almost never 0.4, but most of the time something like 0.4758337559848593859436

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
remove the entire procedure…
Mon, 07/17/2023 - 19:30

remove the entire procedure exept for the start and the first block

 

then create a tag with all your custom items like this(replace the items int he example tag with your item)

 

After that create this procedure (replace the item in main hand with your openeer item andthe tag with the tagname of your tag)

Then in block creation interface go to triggers and select the on block rightclicked trigger

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
and something i just…
Mon, 07/17/2023 - 19:31

and something i just realized the remove item has to go behind the item in main hand check, else it will glitch if the itemstacks size is 1

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks  but for some reason…
Tue, 07/18/2023 - 15:28

Thanks 

but for some reason nothing spawns but I spelled the Tag name correctly. I also do not understand the rightclick on Block procedure

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you dont understand how the…
Tue, 07/18/2023 - 15:32

you dont understand how the procedure works ?

I can expalin to you if you have Discord just message darkstareternal

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Nevermind it works But now…
Tue, 07/18/2023 - 15:33

Nevermind it works

But now it always spawns 2 Items not only one

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
have  you used 2 of the…
Tue, 07/18/2023 - 15:34

have  you used 2 of the spawn item gem blocks ?

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
no only one  
Tue, 07/18/2023 - 15:43

no only one

 

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
that is the reason its…
Tue, 07/18/2023 - 15:43

that is the reason its confusing me

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thats very weird   when i…
Tue, 07/18/2023 - 15:48

thats very weird

 

when i tested theprocedure it worked

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
oh wait i think i know the…
Tue, 07/18/2023 - 15:49

oh wait i think i know the problem

 

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
oops nvm i thought we were…
Tue, 07/18/2023 - 15:51

oops nvm i thought we were using loottables (you can also do that but the loottable would only activate if you break the crate nof if you right click it)

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It finally works i fixed the…
Tue, 07/18/2023 - 15:58

It finally works

i fixed the problem now :)

but Im very thankful for your help and quick responses