Started by
Metarilo
on
Topic category: Help with MCreator software
How to make dropping chances in loottables? Like if u killed skeleton, it drops bone sword with 10% chance?
Topic category: Help with MCreator software
How to make dropping chances in loottables? Like if u killed skeleton, it drops bone sword with 10% chance?
You can use the spawn gem procedure block that is easier than loot tables
ok. Can you screenshot proc?
I bound this to when mob died
this procedure makes the mob (a duck) drop one duck meat always.
but it has two 50% chance extra duck meat drops
and also a 75% percent chance of a feather drop
I need vanilla mob drops
oh
that's a bit different.
I'll show you how to make it tomorrow
It's like 11 o clock here
Hello?
Nvm, i already done procedure myself
OMG ITS WORKING
mod sounds cool
How did you do it?
What you do is go into the livingEntity you want to drop stuff. You then head to the 4th tab, where it talks about making procedures. You then make a new procedure for the when the entity dies.
In this new procedure, grab the spawn gem block under the world management tab. you then insert whatever item you want the entity to drop. this results in when you kill the mob it is a guaranteed drop.
If you want it to drop it a percent of the time, then go to the logic and loops tab and grab an' if do' block. grab the dark blue block from the logic tab and put it after 'if'. under math, grab the 'random [0,1]' and '0' block and insert them in that order. then put any number in the number slot.
What you do is then put the percentage rate of the item in it. so .50 would be 50% and .75 would be 75%. you then proceed to but the 'spawn gem' block in the do slot and you have a working spawn item. If you want it to drop the item multiple times, then just repeat the previous steps.
Hope this helps! If your stuck, use the picture above by crispy_chips.
I was wondering how do I get it affected by the looting enchantment? I have tried putting a multiplier by the level of the enchantment, but I don't know how to specify if the weapon used has this enchantment.
1. dont bump posts
2. use source entity, detect the level of looting on the item held, add 1, and do a multiplier.