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?
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.
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.
Replace <ID> with the potion effect you want, heres the list of potion IDs:
The same with [Amplifier], replace with a number 0-10
Im going to try this
I know most of the ID´s by the way because im more of a redstoner than a modder :/
But if i want so when i walk on it?
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