Started by
fishbowl_super
on
Topic category: Help with MCreator software
I'm brand new to coding so I'm not quite sure what I'm doing, and there is a lot of stuff to look at in the procedures menu. What I'm trying to do is create a set of special tools that will set a mob on fire for 1 second when attacked. How would I go about doing this?
I've tried it with the way I could figure it, but it will set the mob on fire until it dies from it, and will happen with any item that I attack it with.
There is a procedure block called " set entity on fire for () seconds".
Yes, that is the one I've been using. I have it set like so:
However, this just makes it so whatever I attack is set on fire until it dies, and it will happen with any item/block, even though this procedure is linked to the weapon through the events section of item creation. I can't seem to find anything in the menus to link this to a specific item, and then I have to fix how long it is on fire for. That's what I'm trying to do.
Fishbowl! You need to remove the event trigger! "Entity attacked" makes any entity that is attacked get set on fire! Make this have no trigger.
For the fire I'm honestly not sure why it isn't working.
Okay, I removed the "entity attacked" trigger and it works on just the tools now and also the fire has fixed itself too! Thank you for your kind help :)
You're welcome.