Started by
JojoMichelDu59
on
Topic category: Advanced modding
Hello, I'm wantng to create a dagger, wich can attack very quickly but has low damage per attack. Where is the code line for changing this please ?
Note : I'm using MCreator 1.8.1
I think that the method you are looking for is:
And update your MCreator to 1.8.2, we don't support 1.8.1 anymore.
I just updated to 1.8.2. But where do I need to put this line ? And what do I need to change in this line to get a custom attack speed ?
You put it as another method inside custom item class. Experiment with different values.
You did not answered my questions. Plus, I tryed to experiment with that, but it didn't do anything.
You most likely did not place it in the right place. You need to place it inside this part:
I still don't understand where do you want me to put it in.
Just tell me under what line I need to put it :
OK, you actually need different method, new example. Change:
to
These two lines change the modifier:
Keep in mind that you need proper imports too (use the Reformat code button in code editor to do this).
If you can't understand where to put this code, I suggest you to learn some code first as custom coding can result in build errors if done wrong.
I give up. There should be an attack speed option when creating a tool with MCreator.
We might add this in the future.
I mean you did but it doesn’t work ngl