The Meaning of Life, the Universe, and Everything.
Join Date:
8/23/2013
Posts:
140
Location:
New Paltz, NY
Minecraft:
Evcam
Member Details
I have a dropper which I'm using for something kind of like custom crafting. I want to disable certain slots in it, by putting a white stained glass pane there, but I want to make it unremovable. With bloockdata, you could continually get infinite glass panes from taking it out. A player could concieveably even attach a hopper to the bottom and make a glass pane farm. So, is there a way to prevent players from taking it out?
Name the glass panes something that no one would EVER think of in survival to rename them to and then do /clear @a minecraft:stained_glass 0 {display:{Name:""}} and that should hopefully work.
Rollback Post to RevisionRollBack
Well, I think I found what I'LL be in the after life. <3 Goats for life.
The Meaning of Life, the Universe, and Everything.
Join Date:
8/23/2013
Posts:
140
Location:
New Paltz, NY
Minecraft:
Evcam
Member Details
My current problem is that the player could still remove it, and then the slot would be re-enabled. Using /blockdata clears all the other slots besides the enabled ones, rendering it useless.
/testforblock X Y Z {Items:[0:{id:"minecraft:stained_glass_pane",Count:1b,Slot:0b},1:{id:"minecraft:stained_glass_pane",Count:1b,Slot:1b},2:{id:"minecraft:stained_glass_pane",Count:1b,Slot:3b},4:{id:"minecraft:stained_glass_pane",Count:1b,Slot:4b},5:{id:"minecraft:stained_glass_pane",Count:1b,Slot:5b},6:{id:"minecraft:stained_glass_pane",Count:1b,Slot:6b},7:{id:"minecraft:stained_glass_pane",Count:1b,Slot:7b},8:{id:"minecraft:stained_glass_pane",Count:1b,Slot:8b},9:{id:"minecraft:stained_glass_pane",Count:1b,Slot:9b}]}
Have the fastest clock type next to that so it's continually being activated. Then what you want to do is have a comparator (NOT touching the clock) leading as an output to the /testforblock command block. Have a repeater leading into a block with a redstone torch on the other side and then redstone dust after the torch (Should be turned off until moved stained glass), from there dig two holes either side to the redstone dust and put two commandblocks in them both. On the left one you say "/tellraw @p {text:"NO. BAD."}" and on the other side a command block that will have this command in: /setblock X Y Z {Items:[0:{id:"minecraft:stained_glass_pane",Count:1b,Slot:0b},1:{id:"minecraft:stained_glass_pane",Count:1b,Slot:1b},2:{id:"minecraft:stained_glass_pane",Count:1b,Slot:3b},4:{id:"minecraft:stained_glass_pane",Count:1b,Slot:4b},5:{id:"minecraft:stained_glass_pane",Count:1b,Slot:5b},6:{id:"minecraft:stained_glass_pane",Count:1b,Slot:6b},7:{id:"minecraft:stained_glass_pane",Count:1b,Slot:7b},8:{id:"minecraft:stained_glass_pane",Count:1b,Slot:8b},9:{id:"minecraft:stained_glass_pane",Count:1b,Slot:9b}]}
And there you have it! I could make it better with scoreboards but I have to go and I had only 2 minutes to test it xD
Rollback Post to RevisionRollBack
Well, I think I found what I'LL be in the after life. <3 Goats for life.
Don't thank me just press the green upward arrow.
The answer to the universe.
Well, I think I found what I'LL be in the after life. <3 Goats for life.
/testforblock X Y Z {Items:[0:{id:"minecraft:stained_glass_pane",Count:1b,Slot:0b},1:{id:"minecraft:stained_glass_pane",Count:1b,Slot:1b},2:{id:"minecraft:stained_glass_pane",Count:1b,Slot:3b},4:{id:"minecraft:stained_glass_pane",Count:1b,Slot:4b},5:{id:"minecraft:stained_glass_pane",Count:1b,Slot:5b},6:{id:"minecraft:stained_glass_pane",Count:1b,Slot:6b},7:{id:"minecraft:stained_glass_pane",Count:1b,Slot:7b},8:{id:"minecraft:stained_glass_pane",Count:1b,Slot:8b},9:{id:"minecraft:stained_glass_pane",Count:1b,Slot:9b}]}
Have the fastest clock type next to that so it's continually being activated. Then what you want to do is have a comparator (NOT touching the clock) leading as an output to the /testforblock command block. Have a repeater leading into a block with a redstone torch on the other side and then redstone dust after the torch (Should be turned off until moved stained glass), from there dig two holes either side to the redstone dust and put two commandblocks in them both. On the left one you say "/tellraw @p {text:"NO. BAD."}" and on the other side a command block that will have this command in: /setblock X Y Z {Items:[0:{id:"minecraft:stained_glass_pane",Count:1b,Slot:0b},1:{id:"minecraft:stained_glass_pane",Count:1b,Slot:1b},2:{id:"minecraft:stained_glass_pane",Count:1b,Slot:3b},4:{id:"minecraft:stained_glass_pane",Count:1b,Slot:4b},5:{id:"minecraft:stained_glass_pane",Count:1b,Slot:5b},6:{id:"minecraft:stained_glass_pane",Count:1b,Slot:6b},7:{id:"minecraft:stained_glass_pane",Count:1b,Slot:7b},8:{id:"minecraft:stained_glass_pane",Count:1b,Slot:8b},9:{id:"minecraft:stained_glass_pane",Count:1b,Slot:9b}]}
And there you have it! I could make it better with scoreboards but I have to go and I had only 2 minutes to test it xD
Well, I think I found what I'LL be in the after life. <3 Goats for life.