I am an OP to a small community. We are starting a new vanilla survival world and would like to give all that join a starter kit, but we want to make sure it's only one per player.
All of us OPs are noobs at command blocks. Anyone know of any tutorials or can easily explain how we can do this?
Stephie marie, use the chains on command blocks.Here are pictures and steps on what to do:
Step 1: use the command /give to get a command block(full text in pic 1)
Step 2: Click on the command block, and select impulse. It should change to chain, and the command block will be blue(pic 2)
Step 3: type in the /give command (pic 3)
Step 4: Repeat. Attach chain blocks with steps 1-3 to the other command block by shifting. The arrows should be pointing in the same direction, like a chain
Also if the survival is modded, i recommend the mod StartingInventory
OP stated it was vanilla.
Maxaxik is correct, that's the best way of handling it. I used a tag called NotNew, as I also set a bunch of scores, greet them in chat and do some TPing (to a rules room), with it. That way it only handles it once.
The Meaning of Life, the Universe, and Everything.
Join Date:
9/28/2014
Posts:
53
Xbox:
Zombiekiller503
Member Details
If you want to just do it in a really, really simple way, just have new players spawn in a "spawn room" and have them step on a pressure plate to be teleported to spawn, where it sets their spawn point to the spawn area, so they arent spawned in the spawn room if they die. Then have a dropper (not accessible) eject a chest that contains that gives the player a starter kit chest, which has the starter kit inside, so they just need to place it to get the items
@OP - Can you use a datapack? I've got something like what you're asking for made up already. I can post the files and you guys can add them to your world. I've got stuff for 1.13 and 1.12. Includes an AFK tracker, one-player-sleep, periodic server messages, my 1.13 datapack has a system clock as well. Actually, my 1.13 one is a lot more efficient, so if you're running 1.13 and want it, I'd suggest it. I plan on adding more in the future, I've just been busy.
For 1.12, if you guys just want to use command blocks, you'll need to have one REPEATING feeding two CHAIN command blocks for this to work. This gives you a gray shulker box with stone tools and weapons, a stack of bread and a stack of torches. Also, the reason I use a score instead of a tag is that I use the score new_player for other stuff on my server. It increments several times for various checks. You can replace the score with a tag as Maxaxik shows. Anyway, commandy things:
First, you'll need to create a score called new_player for this. Run the following command once right in chat.
/scoreboard objectives add new_player dummy
1) Repeating Command Block with scoreboard command. This will all assume you use the score new_player which is of the type dummy. This command is required to initialize the score new_player for all new players, as when a new player starts they technically don't have any scores until they're initialized. Adding 0 to a score will give them that score, with a value of 0.
scoreboard players add @a new_player 0
2) Chain Command Block 1 with the give command. I like https://mcstacker.bimbimma.com/ for chest generation. I've included the command I generated with the tools, weapons, food and torches as I mentioned above.
give @a[score_new_player=0] minecraft:gray_shulker_box 1 0 {display:{Name:"Starter Kit"},BlockEntityTag:{Items:[{Slot:0,id:"minecraft:stone_pickaxe",Count:1b},{Slot:1,id:"minecraft:stone_sword",Count:1b},{Slot:2,id:"minecraft:stone_axe",Count:1b},{Slot:3,id:"minecraft:stone_hoe",Count:1b},{Slot:4,id:"minecraft:stone_shovel",Count:1b},{Slot:5,id:"minecraft:bread",Count:64b},{Slot:6,id:"minecraft:torch",Count:64b}]}}
3) Chain Command Block 2 with the scoreboard command. This increments new_player for everyone, so that the above give command won't be run on them again.
If you're running 1.13, you have to change your target selectors.
1) Repeating Command Block won't change.
2) Chain Command Block 1 will change to the following. I haven't tested this, so I'm not 100% sure the syntax is correct for the box's data, so someone correct me if this is jacked.
give @a[scores={new_player=0}] minecraft:gray_shulker_box 1 0 {display:{Name:"Starter Kit"},BlockEntityTag:{Items:[{Slot:0,id:"minecraft:stone_pickaxe",Count:1b},{Slot:1,id:"minecraft:stone_sword",Count:1b},{Slot:2,id:"minecraft:stone_axe",Count:1b},{Slot:3,id:"minecraft:stone_hoe",Count:1b},{Slot:4,id:"minecraft:stone_shovel",Count:1b},{Slot:5,id:"minecraft:bread",Count:64b},{Slot:6,id:"minecraft:torch",Count:64b}]}}
3) Chain Command Block 2 will change to the following.
I am an OP to a small community. We are starting a new vanilla survival world and would like to give all that join a starter kit, but we want to make sure it's only one per player.
All of us OPs are noobs at command blocks. Anyone know of any tutorials or can easily explain how we can do this?
Stephie marie, use the chains on command blocks.Here are pictures and steps on what to do:
Step 1: use the command /give to get a command block(full text in pic 1)
Step 2: Click on the command block, and select impulse. It should change to chain, and the command block will be blue(pic 2)
Step 3: type in the /give command (pic 3)
Step 4: Repeat. Attach chain blocks with steps 1-3 to the other command block by shifting. The arrows should be pointing in the same direction, like a chain
Would this limit everyone to only get one?
Or use a plugin. You can find some.
Also if the survival is modded, i recommend the mod StartingInventory
OP stated it was vanilla.
Maxaxik is correct, that's the best way of handling it. I used a tag called NotNew, as I also set a bunch of scores, greet them in chat and do some TPing (to a rules room), with it. That way it only handles it once.
If you want to just do it in a really, really simple way, just have new players spawn in a "spawn room" and have them step on a pressure plate to be teleported to spawn, where it sets their spawn point to the spawn area, so they arent spawned in the spawn room if they die. Then have a dropper (not accessible) eject a chest that contains that gives the player a starter kit chest, which has the starter kit inside, so they just need to place it to get the items
@SpooderPig - that show is awesome!
@OP - Can you use a datapack? I've got something like what you're asking for made up already. I can post the files and you guys can add them to your world. I've got stuff for 1.13 and 1.12. Includes an AFK tracker, one-player-sleep, periodic server messages, my 1.13 datapack has a system clock as well. Actually, my 1.13 one is a lot more efficient, so if you're running 1.13 and want it, I'd suggest it. I plan on adding more in the future, I've just been busy.
For 1.12, if you guys just want to use command blocks, you'll need to have one REPEATING feeding two CHAIN command blocks for this to work. This gives you a gray shulker box with stone tools and weapons, a stack of bread and a stack of torches. Also, the reason I use a score instead of a tag is that I use the score new_player for other stuff on my server. It increments several times for various checks. You can replace the score with a tag as Maxaxik shows. Anyway, commandy things:
First, you'll need to create a score called new_player for this. Run the following command once right in chat.
/scoreboard objectives add new_player dummy
1) Repeating Command Block with scoreboard command. This will all assume you use the score new_player which is of the type dummy. This command is required to initialize the score new_player for all new players, as when a new player starts they technically don't have any scores until they're initialized. Adding 0 to a score will give them that score, with a value of 0.
scoreboard players add @a new_player 0
2) Chain Command Block 1 with the give command. I like https://mcstacker.bimbimma.com/ for chest generation. I've included the command I generated with the tools, weapons, food and torches as I mentioned above.
give @a[score_new_player=0] minecraft:gray_shulker_box 1 0 {display:{Name:"Starter Kit"},BlockEntityTag:{Items:[{Slot:0,id:"minecraft:stone_pickaxe",Count:1b},{Slot:1,id:"minecraft:stone_sword",Count:1b},{Slot:2,id:"minecraft:stone_axe",Count:1b},{Slot:3,id:"minecraft:stone_hoe",Count:1b},{Slot:4,id:"minecraft:stone_shovel",Count:1b},{Slot:5,id:"minecraft:bread",Count:64b},{Slot:6,id:"minecraft:torch",Count:64b}]}}
3) Chain Command Block 2 with the scoreboard command. This increments new_player for everyone, so that the above give command won't be run on them again.
scoreboard players add @a[score_new_player=0] new_player 1
If you're running 1.13, you have to change your target selectors.
1) Repeating Command Block won't change.
2) Chain Command Block 1 will change to the following. I haven't tested this, so I'm not 100% sure the syntax is correct for the box's data, so someone correct me if this is jacked.
give @a[scores={new_player=0}] minecraft:gray_shulker_box 1 0 {display:{Name:"Starter Kit"},BlockEntityTag:{Items:[{Slot:0,id:"minecraft:stone_pickaxe",Count:1b},{Slot:1,id:"minecraft:stone_sword",Count:1b},{Slot:2,id:"minecraft:stone_axe",Count:1b},{Slot:3,id:"minecraft:stone_hoe",Count:1b},{Slot:4,id:"minecraft:stone_shovel",Count:1b},{Slot:5,id:"minecraft:bread",Count:64b},{Slot:6,id:"minecraft:torch",Count:64b}]}}
3) Chain Command Block 2 will change to the following.
scoreboard players add @a[scores={new_player=0}] new_player 1
Again, I suggest using functions in a datapack instead, but the above will work as well, if possibly with a little added lag.
/scoreboard objectives add Time stat.playOneMinute
Add it first
second test the score
/scoreboard players test @a[r=5] Time 100 110
only the new player will get this gud stuff
and when its tested put ur gud /give stuff
Oof I dont know 1.13
sorry for bad english
Making Map Taking suggestion from people and make them