1

Commandblock testfor

jkctech 7/1/13 7:56 am
306
7/1/2013 8:10 am
is there any way to run a testfor command that tests if you have tnt in ur inventory???

comething like: /testfor @a[block=46]

Please help me!
Posted by
jkctech
Level 37 : Artisan Droid
59

  Have something to say?

JoinSign in

1

MegaDerf
07/01/2013 8:10 am
Level 25 : Expert Nerd
jkctechis there any way to run a testfor command that tests if you have tnt in ur inventory???

comething like: /testfor @a[block=46]

Please help me!

/clear @a 46 1
Use a comparator. This will remove 1 TNT, so you can add other command block:
/give @a 46

This will give the tnt to everyone. And remember, if you don't want a loop you have to make the first command block single-use.
1

Welcome