/gamerule kitDropRate
Stand on top the above command and type: /stats block ~ ~-1 ~ set QueryResult @a kitRate
So this sets kitRate to be the same as kitDropRate?
Why do we need to query this, why can't we just use kitDropRate?
We only need to do this once?
Incorrect. We cannot grab the value of kitDropRate until we query it. We are taking the value of it and assigning it to a scoreboard objective that we can actually use. Also, we need to run this on the clock incase you wanted to change it at any time, this command would immediately update the objective to the new value.
About the minutes, if you want to have a scoreboard objective that tells you your total minutes, just make a new objective. /scoreboard objectives add playTime stat.playOneMinute
A problem using repeaters is that you won't be able to target the correct player as easily. A really good way you could do it is by placing a chest down and put all the items you want to give the player into it. Ctrl+middle click the chest. Now place a command block and type "/entitydata @e[type=Item,c=1] {}" into it. Drop the chest with nbt tags onto the ground next to the command block and power the command block. Now the command block contains the exact nbt data of that chest item with the items in it and you can just use one /give command to give a player the chest with the items in it. Be sure to remove any tags that contain "UUID", like UUIDMost and UUIDLeast. Instead of the /execute command, it would look something like: /give @a[score_minutes=0,score_kits=0] minecraft:chest 1 0 {Inventory:{}}
Every single command except for the first four that you mentioned and the /stats command that you typed into chat all need to be connected to the clock.
A problem using repeaters is that you won't be able to target the correct player as easily. A really good way you could do it is by placing a chest down and put all the items you want to give the player into it. Ctrl+middle click the chest. Now place a command block and type "/entitydata @e[type=Item,c=1] {}" into it. Drop the chest with nbt tags onto the ground next to the command block and power the command block. Now the command block contains the exact nbt data of that chest item with the items in it and you can just use one /give command to give a player the chest with the items in it. Be sure to remove any tags that contain "UUID", like UUIDMost and UUIDLeast. Instead of the /execute command, it would look something like: /give @a[score_minutes=0,score_kits=0] minecraft:chest 1 0 {Inventory:{}}
Whoa, you're making my head spin there. I use a mac, so not sure what you mean by Ctrl-middle click? And what do you mean by "drop the chest with nbt tags"?
Thanks for all of the great help. This thread has got a lot of views, so it seems like a lot of other people must be getting something out of it all as well!
Whoa, you're making my head spin there. I use a mac, so not sure what you mean by Ctrl-middle click? And what do you mean by "drop the chest with nbt tags"?
Thanks for all of the great help. This thread has got a lot of views, so it seems like a lot of other people must be getting something out of it all as well!
Middle click is defaultly bound to "Pick block" I don't know what button it's bound to on Mac, open up the keyboard settings and find what button it is and look at the chest with the items in it and hold control then press the "pick block" key. You must be in creative mode to do this. Now you should be holding a chest that has nbt tags. If you place this chest on the ground and open it you will see the items. When I drop the chest, I mean throw it on the ground, don't place it, drop it. Default button to drop an item is Q. Once the item is on the ground power the command block that has the entitydata command in it. Now right click that command block and copy and paste the whole output somewhere and strip off everything but the "{nbt tags here}" part. Keep the braces. Now that you have that, you can add it to the end of a /give command (remember to also remove any tags that have UUID in them):
Thanks. Just trying to get that last part working ok. I did what you suggested and got the following:
[06:12:35] The data tag did not change: {Age:1150s,UUIDLeast:-8024247252754541460L,Motion:[0:-1.0069281151495043E-265d,1:-0.0d,2:5.1610594501164655E-267d],OnGround:1b,UUIDMost:2363157787290191271L,Thrower:"TheRTs",Health:5s,Dimension:0,Air:300s,Pos:[0:54.495659293601534d,1:64.0d,2:245.43585894657053d],PortalCooldown:0,Item:{id:"minecraft:chest",Damage:0s,Count:1b,tag:{BlockEntityTag:{id:"Chest",Items:[0:{id:"minecraft:iron_pickaxe",Damage:0s,Count:1b,Slot:0b},1:{id:"minecraft:iron_sword",Damage:0s,Count:1b,Slot:1b}],Lock:""},display:{Lore:[0:"(+NBT)"]}}},Fire:-1s,FallDistance:0.0f,PickupDelay:0s,Rotation:[0:251.22899f,1:0.0f],Invulnerable:0b}
But I'm not sure which part I need to paste in to the /give command.
Part of the problem is that the stat playOneMinute does not show the number of minutes played as you would expect!! See bug report https://bugs.mojang.com/browse/MC-29522 - it shows ticks.
Will keen playing around with this and report back.
Sorry, I have been away for a few weeks now. My Ubuntu install somehow got corrupt. Today I got the idea to try to boot into my really old Windows XP install on a different harddrive to ensure that it is infact a software problem and not hard ware. This was indeed the case as I am using XP perfectly fine atm.
You must first set everyone's score of kitRate to 0 before the command block will update their score. So if you see your name set to 0, when you type /gamerule kitDropRate 15, then your score should immediately change to 15. If this is not the case, I will gladly connect to your server as text doesn't appear to be an easy method of understanding for this concept.
Sorry, I have been away for a few weeks now. My Ubuntu install somehow got corrupt. Today I got the idea to try to boot into my really old Windows XP install on a different harddrive to ensure that it is infact a software problem and not hard ware. This was indeed the case as I am using XP perfectly fine atm.
You must first set everyone's score of kitRate to 0 before the command block will update their score. So if you see your name set to 0, when you type /gamerule kitDropRate 15, then your score should immediately change to 15. If this is not the case, I will gladly connect to your server as text doesn't appear to be an easy method of understanding for this concept.
So does that mean that the fill block should be up and running before I stand on the command block and enter that command? I had been setting it all up before kicking off the fill clock. Will try that out now.
Glad you're hardware is ok. Software issues can be a pain but at least there is a reinstall option.
So does that mean that the fill block should be up and running before I stand on the command block and enter that command? I had been setting it all up before kicking off the fill clock. Will try that out now.
Glad you're hardware is ok. Software issues can be a pain but at least there is a reinstall option.
Well I was right initially. My main HDD was failing. I was under the impression it might nt be the issue because I COULD still boot, but when I went to upgrade from 13.10 to 14.04 hoping it might fix it. 75% into the install it threw an error it couldn't proceed past, suggesting my HDD was failing. So I'm stuck on Windows for now.
Anyway, back to your question, it doesn't matter when you stand on that block. You just have to do it before it will ever work. You also only ever need to type it once.
I'm going to start a new world to make sure I'm starting from scratch. If your on now your welcome to join to watch/help? How best to get you the address?
Incorrect. We cannot grab the value of kitDropRate until we query it. We are taking the value of it and assigning it to a scoreboard objective that we can actually use. Also, we need to run this on the clock incase you wanted to change it at any time, this command would immediately update the objective to the new value.
About the minutes, if you want to have a scoreboard objective that tells you your total minutes, just make a new objective. /scoreboard objectives add playTime stat.playOneMinute
A problem using repeaters is that you won't be able to target the correct player as easily. A really good way you could do it is by placing a chest down and put all the items you want to give the player into it. Ctrl+middle click the chest. Now place a command block and type "/entitydata @e[type=Item,c=1] {}" into it. Drop the chest with nbt tags onto the ground next to the command block and power the command block. Now the command block contains the exact nbt data of that chest item with the items in it and you can just use one /give command to give a player the chest with the items in it. Be sure to remove any tags that contain "UUID", like UUIDMost and UUIDLeast. Instead of the /execute command, it would look something like: /give @a[score_minutes=0,score_kits=0] minecraft:chest 1 0 {Inventory:{}}
Every single command except for the first four that you mentioned and the /stats command that you typed into chat all need to be connected to the clock.
Whoa, you're making my head spin there. I use a mac, so not sure what you mean by Ctrl-middle click? And what do you mean by "drop the chest with nbt tags"?
Thanks for all of the great help. This thread has got a lot of views, so it seems like a lot of other people must be getting something out of it all as well!
Middle click is defaultly bound to "Pick block" I don't know what button it's bound to on Mac, open up the keyboard settings and find what button it is and look at the chest with the items in it and hold control then press the "pick block" key. You must be in creative mode to do this. Now you should be holding a chest that has nbt tags. If you place this chest on the ground and open it you will see the items. When I drop the chest, I mean throw it on the ground, don't place it, drop it. Default button to drop an item is Q. Once the item is on the ground power the command block that has the entitydata command in it. Now right click that command block and copy and paste the whole output somewhere and strip off everything but the "{nbt tags here}" part. Keep the braces. Now that you have that, you can add it to the end of a /give command (remember to also remove any tags that have UUID in them):
/give @a[score_minutes=0,score_kits=0] minecraft:chest 1 0 {nbt tags here}
Thanks. Just trying to get that last part working ok. I did what you suggested and got the following:
[06:12:35] The data tag did not change: {Age:1150s,UUIDLeast:-8024247252754541460L,Motion:[0:-1.0069281151495043E-265d,1:-0.0d,2:5.1610594501164655E-267d],OnGround:1b,UUIDMost:2363157787290191271L,Thrower:"TheRTs",Health:5s,Dimension:0,Air:300s,Pos:[0:54.495659293601534d,1:64.0d,2:245.43585894657053d],PortalCooldown:0,Item:{id:"minecraft:chest",Damage:0s,Count:1b,tag:{BlockEntityTag:{id:"Chest",Items:[0:{id:"minecraft:iron_pickaxe",Damage:0s,Count:1b,Slot:0b},1:{id:"minecraft:iron_sword",Damage:0s,Count:1b,Slot:1b}],Lock:""},display:{Lore:[0:"(+NBT)"]}}},Fire:-1s,FallDistance:0.0f,PickupDelay:0s,Rotation:[0:251.22899f,1:0.0f],Invulnerable:0b}
But I'm not sure which part I need to paste in to the /give command.
To test I have a command block with
/give @p {id:"Chest",Items:[0:{id:"minecraft:iron_pickaxe",Damage:0s,Count:1b,Slot:0b},1:{id:"minecraft:iron_sword",Damage:0s,Count:1b,Slot:1b}],Lock:""},display:{Lore:[0:"(+NBT)"]}
But when I click the button nothing happens. What am I doing wrong in the give command?
Use: /give @p minecraft:chest 1 0 {Item:{id:"minecraft:chest",Damage:0s,Count:1b,tag:{BlockEntityTag:{id:"Chest",Items:[{id:"minecraft:iron_pickaxe",Damage:0s,Count:1b,Slot:0b},{id:"minecraft:iron_sword",Damage:0s,Count:1b,Slot:1b}],Lock:""},display:{Lore:[0:"(+NBT)"]}}}}
When I did that is says the game rule does not exist
KillaGh0sT
My Youtube Channel (Just Started)
Follow Me For Command Block Help!
You must be playing on 1.7. In 1.8 you can make your own custom gamerules.
I am but I created it but it just says not recognizedf
KillaGh0sT
My Youtube Channel (Just Started)
Follow Me For Command Block Help!
In 1.7 there is no /stats command, so you cannot make a custom gamerule.
Hmm, when I use that it gives me an empty chest.
Well I just tested it out and yeah, strange. It works when you summon it as an item like this though:
/execute @p ~ ~ ~ summon Item ~ ~ ~ {Item:{id:"minecraft:chest",Damage:0s,Count:1b,tag:{BlockEntityTag:{id:"Chest",Items:[{id:"minecraft:iron_pickaxe",Damage:0s,Count:1b,Slot:0b},{id:"minecraft:iron_sword",Damage:0s,Count:1b,Slot:1b}],Lock:""},display:{Lore:["(+NBT)"]}},PickupDelay:0}}
The dataTags for /give start directly within the "tag" tag:
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
That's right, I knew it started somewhere else, but I couldn't remember where. Thanks.
Still trying to get this to actually work!!
Part of the problem is that the stat playOneMinute does not show the number of minutes played as you would expect!! See bug report https://bugs.mojang.com/browse/MC-29522 - it shows ticks.
Will keen playing around with this and report back.
I seem to be having a problem with the following
/gamerule kitDropRate
Stand on top the above command and type: /stats block ~ ~-1 ~ set QueryResult @a kitRate
kitRate seems to be 0. If I do
/scoreboard objectives setdisplay list kitRate
then it shows 0, which fits in with the results of the calculations as well. Is the above command right? Is there another way to use kitDropRate?
Nigathan, I have been reading your post about game rules ( http://www.minecraftforum.net/forums/minecraft-discussion/redstone-discussion-and/2353772-tutorial-make-your-own-custom-gamerules ) which is doing it a different way. Should I be looking at using the data in the game rule that way instead??
Sorry, I have been away for a few weeks now. My Ubuntu install somehow got corrupt. Today I got the idea to try to boot into my really old Windows XP install on a different harddrive to ensure that it is infact a software problem and not hard ware. This was indeed the case as I am using XP perfectly fine atm.
You must first set everyone's score of kitRate to 0 before the command block will update their score. So if you see your name set to 0, when you type /gamerule kitDropRate 15, then your score should immediately change to 15. If this is not the case, I will gladly connect to your server as text doesn't appear to be an easy method of understanding for this concept.
So does that mean that the fill block should be up and running before I stand on the command block and enter that command? I had been setting it all up before kicking off the fill clock. Will try that out now.
Glad you're hardware is ok. Software issues can be a pain but at least there is a reinstall option.
Well I was right initially. My main HDD was failing. I was under the impression it might nt be the issue because I COULD still boot, but when I went to upgrade from 13.10 to 14.04 hoping it might fix it. 75% into the install it threw an error it couldn't proceed past, suggesting my HDD was failing. So I'm stuck on Windows for now.
Anyway, back to your question, it doesn't matter when you stand on that block. You just have to do it before it will ever work. You also only ever need to type it once.
I'm going to start a new world to make sure I'm starting from scratch. If your on now your welcome to join to watch/help? How best to get you the address?