I need help

7 posts / 0 new
Last post
Offline
Last seen: 1 year 8 months ago
Joined: 06/26/2015 - 11:48
Gems: 0
I need help

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!



SoulOfShadows23's picture
Offline
Last seen: 3 weeks 5 days ago
Joined: 06/29/2015 - 05:58
Gems: 0
create a block add a variable

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.

SoulOfShadows23's picture
Offline
Last seen: 3 weeks 5 days ago
Joined: 06/29/2015 - 05:58
Gems: 0
Actually I found something

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)

 

 

 

 

 Effect

SoulOfShadows23's picture
Offline
Last seen: 3 weeks 5 days ago
Joined: 06/29/2015 - 05:58
Gems: 0
Replace <ID> with the potion

Replace <ID> with the potion effect you want, heres the list of potion IDs:

http://minecraft.gamepedia.com/Status_effect

The same with [Amplifier], replace with a number 0-10

Offline
Last seen: 1 year 8 months ago
Joined: 06/26/2015 - 11:48
Gems: 0
Thx

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!

Offline
Last seen: 1 year 8 months ago
Joined: 06/26/2015 - 11:48
Gems: 0
RE:Thx

But if i want so when i walk on it?

 

Offline
Last seen: 1 year 8 months ago
Joined: 06/26/2015 - 11:48
Gems: 0
I did like this: made so the

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