I need help

Started by korallkarlsson on Tue, 06/30/2015 - 07:21
Last seen on 16:42, 28. Aug 2015
Joined Jun 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I need help
Tue, 06/30/2015 - 07:21

I want so if i touch a specific block i get a potion effect and it turns of when i touch another specific block.

Is that possible?

Plz help!

Last seen on 10:58, 27. Apr 2017
Joined Jun 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
create a block add a variable
Tue, 06/30/2015 - 15:48

create a block add a variable(event) <On block righclicked> : add potion effect <potion id>

Not sure if you can remove a potion effect when clicking so maybe add a variable(event) <block destroyed by player> : add potio effect "ID:0 , Duration:0 , Amplifier:0

Or do same as above for a different block,

Warning: this may not work, but give it a try if you haven't already.

Last seen on 10:58, 27. Apr 2017
Joined Jun 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Actually I found something
Tue, 06/30/2015 - 16:18

Actually I found something that did work:

Instead of addind a potio effect variable, use execute command variable (add effect) 

 

In the block add event: on block rightclicked > execute command "effect <ID> @p 1000000 [Amplifier]"

In the other block add event: on block rightclicked > execute command "effect @p clear"

I'll put images to show where exactly.

_________________________________________________

Variable (Add Event)

 

 

 

 

Execute Command: Effect

Last seen on 16:42, 28. Aug 2015
Joined Jun 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Thx
Wed, 07/01/2015 - 07:52

Thx

Im going to try this

I know most of the ID´s by the way because im more of a redstoner than a modder :/

Thx!

Last seen on 16:42, 28. Aug 2015
Joined Jun 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:Thx
Wed, 07/01/2015 - 07:56

But if i want so when i walk on it?

 

Last seen on 16:42, 28. Aug 2015
Joined Jun 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I did like this: made so the
Wed, 07/01/2015 - 08:07

I did like this: made so the update tick executes command on all player in a radius and gives them a potion effect but it just says that i dont have permission to use this command, even if i have enabled cheats