Topic category: User side tutorials
Hello everyone !
YES ! I succeeded to create a hammer ! I think that I am the first one to create a hammer.
I go to explain you how to create a hammer.
First of all, I would just like to say that his hammer mine in 3x3x3 because I think that we cannot get direction of player, so I could not make sure that the hammer just mine with 3x3x1.
(So dear developpers, can you add possibility to detect the direction of plyer please for create a hammer 3x3x1 ?)
THIS HAMMER HAVE ONLY ONE PROBLEM, HAMMER MINE IN 3x3x3x BUT PLAYER IS TO CENTER OF CUBE, SO IT'S ONLY MINE 2 BLOCKS IN FRONT OF PLAYER AND ON BLOCK BEHIND PLAYER.
(If you want to see what hammer looks like go see the video just here : https://www.youtube.com/watch?v=CqU6KIDRqGQ&feature=youtu.be)
1- You have to create a texture for your item.
2- Create an item or a tool like an other element of you mod. (I create my hammer like a pickaxe, but you don't have to create like me. You can create like a special tool. If you don't create you hammer as me, you have to add a block "Remove block at x y z drop at x y z" and don't touch to x y z.)
3- Create a procedure with events "When block destroyed with tool".
4- Then, when you are in procedure editor, download procedure that I made and that i share (link just here : http://www.mediafire.com/file/47g65i2orm7ft7b/hammer_3x3x3x%28center%29…)
5- When you are download procedure, return in MCreator and click on buton "Import procedure" and go take procedure you downloaded.
6- Place the "block" (all blocks of procedure) after the green block, like when you create a procedure.
7- If you want add other things in the procedure add your other blocks before of after.
8- Click "Next" and if you want create other procedures with other events create it and click "next".
You have now you own Hammer for you mod !
I hope this tutorial help you and I am very happy to have find how to create hammer (only because now many mods create or update for have hammers).
Edit 1: I change the link for download the procedure because I change (add) a other thing.