Giving a proximity effect from a block

Started by CosmicReaper08 on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined Oct 2021
Points:
555

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 11
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!

Active 1 year ago
Joined Oct 2020
Points:
1626

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
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

Active 3 years ago
Joined Oct 2021
Points:
555

User statistics:

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

It says i am missing dependisies when i add that

Active 1 year ago
Joined Oct 2020
Points:
1626

User statistics:

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

let me see your procedure

Active 3 years ago
Joined Oct 2021
Points:
555

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 11
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.

Active 1 year ago
Joined Oct 2020
Points:
1626

User statistics:

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

replace entity iterator with

event target entity

Active 3 years ago
Joined Oct 2021
Points:
555

User statistics:

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

Then it only works on me not mobs as well

Active 1 year ago
Joined Oct 2020
Points:
1626

User statistics:

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

well then use the procedure I told you

Active 3 years ago
Joined Oct 2021
Points:
555

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 11
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?

Active 1 year ago
Joined Oct 2020
Points:
1626

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
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

Active 3 years ago
Joined Oct 2021
Points:
555

User statistics:

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

Thank you so much for your help