Skript icon indicating copy to clipboard operation
Skript copied to clipboard

Toggle %block% don't work with all blocks

Open JavierKasunic opened this issue 10 years ago • 3 comments

Hey, I tried to use this effect:

(close|turn off|de[-]activate) %blocks%
(toggle|switch) [[the] state of] %blocks%
(open|turn on|activate) %blocks%

But none of this works with:

New doors and fence doors of 1.8, Iron trapdoor, redstone lamp, sticky and non-sticky piston, TNT, Redtone torch, tripwire hook, gold and iron pressure plate, daylight sensor, redstone comparator and redstone repeater.

Random suggestion for don't create other issue :+1:

  • Add support to furnace inventory in the open inventory effect

JavierKasunic avatar Jun 26 '16 12:06 JavierKasunic

Very well, this should be easy to fix now when I have time to work on Skript again.

bensku avatar Jul 08 '16 12:07 bensku

Ok, I fixed the doors. Other things are more complicated; for example, redstone lamp doesn't use block states, but instead has different ids for on/off states.

bensku avatar Jul 08 '16 13:07 bensku

In the end, I had to remove support for redstone lamps, as setting the block changed nothing - if there is no redstone power, lamp will stay dark.

bensku avatar Jul 10 '16 18:07 bensku