Started by
CTMx
on
Topic category: Help with Minecraft modding (Java Edition)
Hey guys, so i wanna create an Ice Sword that gives the enemy Slowness and spawns ice blocks around it. This is what i've used for the procedure but it doesn't seem to be working at all. Any idea why so?
Screenshot:
@Klemen ?? Please help me out, please tell me what's wrong with this procedure.
It seems fine, how do you call it?
I think you have to set the Duration in ticks (1 second = 20ticks) so if you want 7 seconds it would be 140
even if that's true, the ice blocks are not being placed. which means it's failing somewhere
@Klemen the procedure is called whenever an entity is attacked by the Sword. it isn't working though...
Not how it is called, but where is it called? How do you trigger it?
@Klemen i don't get it? i said it's triggered by attacking a mob. it's placed right at the location of that mob, it's on IceSwordMobIsHitBySword or whatever that's called.
If you just make a procedure, it won't happen by itself. I am asking you where did you select this procedure to happen? Which gray box with procedures listed has selected this procedure in other words.
If you just give the procedure a name, it won't just magically happen. You need to trigger it. Check this tutorial playlist for help on procedure: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei
@Klemen Here are all the screenshots of the things you want to see. I did tell you that the procedure is linked to the event that a mob is attacked by the sword.
@Klemen nevermind it started working, i had to unlink the procedure from the event and then re-link it to the event. then it started working. Thanks for the help, greatly appreciated.
Mob is attacked by the sword is not the same as When mob hit with tool.
Nevertheless, I am glad to hear it started to work. For the future, unless you really know why you would need to lock a mod element, don't do it.
Well it's just that you need something to be at the top of your screen and look for something that says template library and then look for what it says more or less add potion if entity select it and you will see a code with that the only thing that has to to do is leave the part of if and from there in the part of do you replace it with your code that you have done.
Hey I saw this forum and I was wondering if anyone knows how a way to add models with animated textures that I can use for things like slash vfx