Tag: minecraft-commands

/testfor command to count players?

How can I make a /testfor command emit a signal when there is only one player in the required area? I understand /testfor @a[x=,y=,z=,r=].

Variables in Minecraft?

I would have a lot more possibilities if I could add variables to my commands. Is there anyway to do this? I have tried to use armor stands but it requires a command block for every single possibility.

Counting items in a chest

I am working on a system that allows a player to build a template building such as a house. Building one of these structures requires the player to meet a certain quota of required items. (for example 20 planks and 35 stone bricks) I’ve been trying different strategies to accomplish this such as draining the […]

How can I target a player after detecting an item in their inventory

If I detect a player having a nether star in his inventory, and it detected let’s say “XPhotoCrafterX”, how can I make it so it automatically effects him with strength 3? I’ve tried to search on google but it didn’t work.

Make a certain block unplaceable?

I was wondering if there is a way to make a block such as bedrock or obsidian unplaceable in a certain area, because I wanted to give players creative mode for a game, but I don’t want them to use bedrock or obsidian in their creations. Is there any way to make a block unplaceable […]

How to make a command block chain?

I’m trying to make a chain of command blocks that would change a player’s gamemode and then teleport them somewhere from the press of 1 button. I tried connecting them with redstone and also tried using a repeater and nothing has worked. Any suggestions?

How do I delay a command

I tried: /tp @e[type=ArmorStand,T=100] ~ ~1 ~ Then: /tp @e[type=ArmorStand,Time=100] ~ ~1 ~ I’m stuck. I am looking for a command-block only solution.

How to enable sethome and home on a Vanilla Minecraft Server

I’ve seen some Vanilla Minecraft servers that use books with a teleport home, set home, and tp to spawn options. I found an app that I can use to build the custom book, but I can’t figure out how to allow players to set home, automatically get books when they die/first spawn, etc. Is there […]

How do I fix 'Invalid JSON' errors on Minecraft PC?

I’ve been at this for almost two hours and no one seems to have the same problem as I and I doubt this will be solved but I’ll try anyway. this is the code /tellraw @p [“Would you like to teleport?”,{“text”:”Yes”,”color”:”green”,”bold”:”true”,”clickEvent”:{“action”:”run_command”,”value”:”/tp @p ~ ~4 ~ “},”hoverEvent”:{“action”:”show_text”,”value”:{“text”:”Confirm”}},{“text”:”No”,”color”:”red”,”bold”:”true”,”clickEvent”:{“action”:”run_command”,”value”:”/tellraw @p{“text”:”Come back when you want to teleport”}”}}}] this part […]

How can I make a random number generator with command blocks in Minecraft?

I want to make a mini game in Minecraft were I need a random command generator for 9 commands. I need a random command to give the player a random item. I can’t do the command block in the dispenser any more because it will just drop out instead of being placed.

We love Playing Games, especially Video Games.