Hello everyone - I am trying to build my first map - its going to be a Puzzle Map but Im going to need some help with some things. Here is my first question ...
I have a chest filled with various items - the goal is to build something with all items that were in that chest. The over all goal is to build something that will light up a redstone lamp.
Now
Lets say I have a resdstone lamp at 32 32 32
Is there a way to verify -
A. if the lamp is on
B. if all items in your inventory have been used
To check if the redstone lamp is on, there's a separate block id for that, which is lit_redstone_lamp Just use /testforblock command
testforblock 32 32 32 lit_redstone_lamp
For B, there's 3 thing you want to make sure 1. No items in chest 2. No items in inventory 3. No items dropped on the ground For chest and inventory, you'll want to use this command:
/testforblock x y z chest 0 {Items:[]}
(Change the data value according to where the chest is facing)
/testfor @p {Inventory:[]}
For the items, easiest solution is to not allow them to drop items.
Just tp the items back to the player
tp @e[type=Item] @p
Just make sure that there are no other items except the one the player drop
So would I be able to put all these in one command - so that if I were to press a button it would activate and test all these actions at once .. or do I have to put them in separate command blocks?
Rollback Post to RevisionRollBack
aNaturalCause - Steaming Live on Mixer 24/7! Mixer
So would I be able to put all these in one command - so that if I were to press a button it would activate and test all these actions at once .. or do I have to put them in separate command blocks?
You can't do that unfortunately,
There have to be some comparators and "AND" gate involved
Which means you need to put them in separate command blocks
I have a chest filled with various items - the goal is to build something with all items that were in that chest. The over all goal is to build something that will light up a redstone lamp.
Now
Lets say I have a resdstone lamp at 32 32 32
Is there a way to verify -
A. if the lamp is on
B. if all items in your inventory have been used
Then if A and B are met
C. It activates a door
Thanks for your help everyone.
Mixer
Just use /testforblock command
For B, there's 3 thing you want to make sure
1. No items in chest
2. No items in inventory
3. No items dropped on the ground
For chest and inventory, you'll want to use this command:
(Change the data value according to where the chest is facing)
For the items, easiest solution is to not allow them to drop items.
Just tp the items back to the player
Just make sure that there are no other items except the one the player drop
Mixer
You can't do that unfortunately,
There have to be some comparators and "AND" gate involved
Which means you need to put them in separate command blocks