Giving a proximity effect from a block

Started by CosmicReaper08 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Giving a proximity effect from a block

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!

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
for every entity as entity…
Wed, 11/03/2021 - 23:43

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

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It says i am missing…
Thu, 11/04/2021 - 01:09

It says i am missing dependisies when i add that

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
let me see your procedure
Thu, 11/04/2021 - 01:18

let me see your procedure

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
event trigger if item in…
Thu, 11/04/2021 - 01:30

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.

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
replace entity iterator with…
Thu, 11/04/2021 - 01:49

replace entity iterator with

event target entity

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Then it only works on me not…
Thu, 11/04/2021 - 02:07

Then it only works on me not mobs as well

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
well then use the procedure…
Thu, 11/04/2021 - 02:12

well then use the procedure I told you

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well i tried that but i…
Thu, 11/04/2021 - 02:18

Well i tried that but i think i got confused, what do i do?

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if item in main hand of…
Thu, 11/04/2021 - 02:32

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

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you so much for your…
Thu, 11/04/2021 - 02:46

Thank you so much for your help