Started by
Anakin_Guy
on
Topic category: Help with MCreator software
Help me please with the procedure of ore gem.
Please tell me the procedure of this procedure.
How can I do this so that it only works when Pickaxe is enchanted?
Help me please for 1.8.3
Edited by Anakin_Guy on Sun, 03/24/2019 - 19:37
You want to generate ore or to make ore drop random loot? Be more specific
If you're looking to attempt to replicate the Fortune enchantment for a custom block (or to change how vanilla blocks work), here's a method using the Random 0,1 block:
This example shows that, when a block (in this case a Diamond Ore block) were to be broken via mining, there is a 25% chance that the ore will spawn 3 Diamonds, whereas a 10% chance to spawn 5. A little bit overkill, but examples are examples. This method is pretty easy to work with and is very modular. It's been awhile since I've used MCreator (due to work, my poor mod's been dead, oops) so I'm sure there's a more condensed way to do this.
xDovah It works even without charms, it should work only with Fortune enchantment.
Wes I want to mine ore.
Or you could assign the number to a variable and times it using Random(0,1)
like this:
(Random(0,1) x fortunevar)
and put it in a repeat block to spawn whatever item.
DiamondGamin Where to find x fortunevar ?
Anakin_Guy fortunevar is a example. random 0/1 x 4 x 10
how can i make it work only when enchanting?
What do you mean with "How can I make it work only when enchanting"? Do you mean when you have the fortune enchantment on whatever pick you mine it with? If so then you don't need any procedures to do so, the game automatically does the fortune effect on every ore, even for modified versions of the game. And if you are confused and asking "What on earth does this person mean with 'modified versions of the game' " it means modded minecraft which means using mods on minecraft. Also no one would solve your problem if you aren't so specific, today I just made a topic talking about how can I make an item place a block in the overworld, I don't have to talk about it so much because the title explains the whole topic, I agree with Wes really. Also DiamondGamin you don't have to assign that variable because that way you are only doing more steps plus you don't need the variable because the (Random (0,1)) block chooses a random number between 0 and 1 and so that variable is useless. Just saying that it doesn't have to be there plus for people who don't know how variables work (Like me, they are confusing because I have done quite a lot of games on Scratch and I know that you only need to go to data grab the block that has the variable name on it and well, do anything with it) it is quite confusing at first (But the (Get ([Variable name])) does the same thing) wouldn't actually know how it works. But the topic on this comment is you don't need a procedure if the pickaxe you want the person to mine the ore with already has a fortune enchantment. Also I agree with Wes, be more specific.
Let the procedure add the ability to work on enchantments for 1.8.2.
How can I do this so that it only works when Pickaxe is enchanted?