Topic category: User side tutorials
In this tutorial I will be showing you how to change vanilla block drops. No coding/loot tables required.
1:Make a procedure element and make it trigger by global trigger when block broken.
2:Do this:
What this does is that it breaks the block completely(without drop) before the game drops the loot table, and the command spawns a iron ingot in the exact place where the drop is supposed to be.
2.5:The Command: /summon minecraft:item ~0.5 ~ ~0.5 {Item:{id:"minecraft:iron_ingot",Count:1b,Damage:0s}}
Replace the oak with whatever the broken block is in your case and replace id:"minecraft:iron_ingot" with the register name of the drop you want(works with modded drops but only from your mod)
3:You can also do more complex conditions in the if statement. For example if you want oak wood to have a 25% chance to drop 3 diamonds along with the iron:
4:If you want your loot to drop along with the vanilla loot table, do the same as the first loot table but without the destroy block
5:If you want multiple item drops, use the repeat x times procedure block
This works for 1.12 and 1.14(But I haven't tested it for 1.14 yet)
That's it! I hope I helped!
Vote on the next tutorial
1-Custom shoot speed for a ranged weapon
2-Advanced Alloy Smelter tutorial
3-Items that lose durability in water
This works in 1.14. I tested.
A way more simple than yours. Use loot tables with namespace minecraft. It works every time. ;)
As Goldorion said, this should be done with loot tables.
Yes, but it won't work in more complex conditions(for example different drops on different blocks)
and it won't work for 1.12.2
You are right on this :)
Oof
Next tutorial:Ranged Weapon with custom shoot speed
Awww, I was gonna ask for the second one, the advanced alloy smelter. But now that you wrote it, I guess custom shot speed is pretty cool as well.
Now that I think more about, that's pretty useful.
I'm voting for the custom shot speed.
lol the "advanced" alloy smelter is just a furnace with 3 slots for those who don't know procedures XD
And I'm making the custom shoot speed tutorial today
Can i get this to work with modded items?
for which version Mcreator ?
works for 1.19.4, have been looking for this all over the internet, thank you verey much :)
I've been trying to follow this but I fail at the first thing to even start it. which is I can't fine the one code block wich has the "get block at x y z" and the one with the slot of said block (idk how you call it) component. I've been working on this one ore for my mod that turns to stone when it's morning and then turns into the custom ore when it's night but I've been trying to fix drops for it, normal deepslate or stone when morning, custom drop at night. been really struggling with this and tried loot tables but that hasn't worked so any input will help tremendously. I'm using the 2024 version of the program and my mod is for version 1.20.1 for minecraft.
this help thx