Started by
CosmicReaper08
on
Topic category: Help with Minecraft modding (Java Edition)
So I am trying to make a block that will activate a command or something that will give any entites in the vicinity blindness, I tried a few things, but I cant figure it out!
for every entity as entity iterator on a block radius of 20
do add potion effect to entity iterator for 5 seconds level 1: POTION
if I understood right, you might want to search before posting
It says i am missing dependisies when i add that
let me see your procedure
event trigger
if item in maind hand of event/target entity = flint and steel
do
play at x y z level 1 pitch 1 catagory neutral sound: entity.genric.extiguish._fire
wait 100 ticks then on server side
do
add potion with level 3 for 60 seconds ticks ambient false particals false to enity iterator type blindness
remove block at x y z
This is for when I right click on a block.
replace entity iterator with
event target entity
Then it only works on me not mobs as well
well then use the procedure I told you
Well i tried that but i think i got confused, what do i do?
if item in main hand of event target entity = flint_and_steel
do for each entity as entity iterator on a square cube size of: 20
do add potion effect to entity iterator for # type:EFFECT
Thank you so much for your help