Lately On this I've seen a lot of threads where there is just 2 posts: a problem and fix, and it has been clogging up this forum so I made this so people can condense those threads into one, just post your problem in the reply section, and I - or someone else - will solve it.
I'm creating a shop. I need to test for a minimum amount of an item (with a command block).
For example, I'll need test whether or not a player has at least 5 diamonds (to be able to purchase an item).
I know how to test if they have diamonds in the first place, but I can't figure out how to do a minimum amount!
By the way, I'm using Pocket Edition, Beta v1.2.0.18, so the "/timestamp" command does not function yet.
I am new to commands, and only know the basics, because they only just released a couple months ago on pocket edition. Please help! If the "/testfor" command cannot function like that, then I would appreciate it if you could help create my shop via a different method. Thank you.
Firstly, I want to turn off PVP within a certain area on 1.10 , and the tutorials I've seen don't really make sense to me.
Secondly, I want to have a command block that runs once every 24 hours in real world time, so I could set one to always go off at 6pm, one for 8pm, ect.
I'm pretty bad at command block stuff, but I'm tryin.
Then put a repeating command block facing upwards into 2 chain ones, in the repeating one write:
/scoreboard teams join Nopvp @a[x=<strong>x</strong>,y=<strong>y</strong>,z=<strong>z</strong>,dx=<strong>x2</strong>,dy=<strong>y2</strong>,dz=<strong>z2</strong>,r=1]
(replace x y and z with the coordinates of 1 corner of the area and x2 y2 and z2 with the coordinates of the other corner, make sure the corners are diagonal from each other) In the first chain one write:
Lately On this I've seen a lot of threads where there is just 2 posts: a problem and fix, and it has been clogging up this forum so I made this so people can condense those threads into one, just post your problem in the reply section, and I - or someone else - will solve it.
I'm creating a shop. I need to test for a minimum amount of an item (with a command block).
For example, I'll need test whether or not a player has at least 5 diamonds (to be able to purchase an item).
I know how to test if they have diamonds in the first place, but I can't figure out how to do a minimum amount!
By the way, I'm using Pocket Edition, Beta v1.2.0.18, so the "/timestamp" command does not function yet.
I am new to commands, and only know the basics, because they only just released a couple months ago on pocket edition. Please help! If the "/testfor" command cannot function like that, then I would appreciate it if you could help create my shop via a different method. Thank you.
Here is a list of commands on the MCPE wiki: http://minecraftpocketedition.wikia.com/wiki/Commands/List_of_Commands
Sorry, I am a complete Newbie when it comes to MCPE but don't worry If I can't help you then someone will be able to.
I got some for ya.
Firstly, I want to turn off PVP within a certain area on 1.10 , and the tutorials I've seen don't really make sense to me.
Secondly, I want to have a command block that runs once every 24 hours in real world time, so I could set one to always go off at 6pm, one for 8pm, ect.
I'm pretty bad at command block stuff, but I'm tryin.
What can you do for me?
Turn off PVP:
firstly, run this command in chat:
Then this one:
Then put a repeating command block facing upwards into 2 chain ones, in the repeating one write:
(replace x y and z with the coordinates of 1 corner of the area and x2 y2 and z2 with the coordinates of the other corner, make sure the corners are diagonal from each other) In the first chain one write:
In the second chain one write:
and make it conditional, and make sure all the command blocks are set to "Always Active".
Running a Command Block Every 24 Hours:
I don't know how to run a command block every 24 hours since Minecraft isn't linked to real time at all. Sorry.