Started by
LordUnstoppable
on
Topic category: Help with MCreator software
Hello,
I would like to make one block that drops a random item.
I have already tried to create that block, but I always end having a block that drops always the same item.
Please help me.
Edited by LordUnstoppable on Mon, 12/05/2016 - 14:14
Add an event result in "When Block destroyed by Player" in the events tab on the left is somewhere an "Spawn Gem" event click on it. Then click on the gray square and choose the item. You see the word "(in all cases)", too. click on the arrow right next to the word.
Then you need to find "randomPossibility[50%]". You can change the 50% of course! You have a Possibility to change it from 0% to 100%. When you are finished click on the"Add Event" button. If you are making more "When Block destroyed by Player" events that have a random Possibility to drop an item you have a "Lucky Block" like Block! But you have to choose an item that will be dropped every time because if you won't the Application says "you need a block/an item that has to drop every time.".
Can you add an amount that the item drops?
Is there still a way to do this with the newest version of MCreator?
thats what i wan to know
If random 0,1 = 0.2 "which is 20%"
Do spawn gem
Hell Wes, can you elaborate. I do not see how adding a variable and a single number can change anything. Could you send a screen shot of your Element Editor
no that's with 1 %
if random 0,1 < 20 it's 20%
https://www.youtube.com/watch?v=GE0kHWQLy4c&list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei&index=8&t=2s
im doing something similar but as a crafting table giving you a random item when placing my custom item in the crafting slots
also its a custom table
using premade choises is really easy with an if statement but I want to make it so it can get any item in the game how do I do that ?
maybe even items from other mods without defying what items it can drop