Started by
DeathD84
on
Topic category: Help with Minecraft modding (Java Edition)
Back at it again, I'm using the latest snapshot, is there any way I can make it so, with an effect or item, when you have it, mobs will be repelled/run away?
create a procedure like this:
save and build it. my procedure is named Bbb, whatever your procedure name is, remember it.
next, create another procedure like this:
in the custom code snippet box, put this piece of code in:
replace the BbbProcedure with the name of your procedure, for example, if the procedure is named CheckHelmet, then its CheckHelmetProcedure. also, very important, remove all the spaces in the code snippet.
save and build it. if you wear a diamond helmet, monsters should now avoid you.
intructions confusing, couldnt get it to work
thats too bad. it works fine when i tested it.
maybe you should ask for help on the parts that are confusing you
when you say remove all spaces you mean all the spaces outside the parentheses right?
or i guess i should say what spaces exactly do we delete
He means with "removing the spaces" that the Code Snippet should be in one line.
@ahznb it gives an error