Started by
The
on
Topic category: Help with Minecraft modding (Java Edition)
Well, I wanted to create an enchantment that allows you to auto smelt when you have it on a tool. I have seen NorthWestTrees tutorial and tried to adapt it so i could use it for the enchantment, but I couldn't.
You will need to show your work so far
I have nothing, I tried to do it modifying NorthWestTrees tutorial but it didn't work, so I don't know how to do it. I'll show you what I've done, but I don't think it's going to help a lot.
https://imgur.com/a/n7j5adG (the enchantment)
https://imgur.com/a/55xQeKV (the procedure, like I said it is practically the same as the tutorial one, i changed things but it didn't work so I let it like this).
Now you just need to trigger this procedure. Procedures need trigger to work. Like when right-clicked or something
Thank, now the problem is that the block breaks intantly and the item does not get damaged, but I'll try to solve it.
Well, I don't know how to make it to not insta mine every block.
And, I've discovered that it destroys even bebrock.
Well you'll have to add a damage item in main hand procedure block if you want it to take damage.
Checking if the block can be smelted also would fix the bedrock problem.
I did that the item is damaged, that was easy, but the thing about the bedrock is that it should test that it doesn't have any smelting recipe, but i mines it anyways, like the rest of the blocks. In fact, I think that's the problem, because a pickaxe with that enchantment can insta mine wood or dirt.
if im not mistaken theres a tick box where you can chose if your tool can break any block, no matter the mining level
But it's not my tool, is an enchantment.
it's*
Here I created an Auto Smelt Enchantment and its working on 2020.5 and it should be working on 2021.1 too:
That somehow solves the problem, thanks, but if you mine a block it gives you the smelting result and the block (maybe is because I haven't copied it exactly like in your procedure, I don't know).
can you make an importable download for this or a higher resolution picture, I can't tell what some of the blocks are.