Questions tagged [minecraft-commands]

Anything related to the usage of commands or command blocks in the game Minecraft. If you're building a redstone device without commands, use the minecraft-redstone tag instead.

Filter by
Sorted by
Tagged with
-1
votes
2answers
16 views

Help Combining Commands on a CMD Block

I'm trying to make a PVP area on my realm away from the main area using command blocks to teleport to the designated area. However I would also like it to clear the players inventory so they don't get ...
6
votes
3answers
2k views

How do I create indestructible terrain?

How do I make terrain that has not been placed by a player be immune to things? Example: TNT, mining. Also, how do I make blocks that have been placed by a player able to be mined/blown up?
-1
votes
2answers
100 views

How can I make every zombie that I kill spawns me one diamond?

I played on a Minecraft map which had this minigame arena mode where you get diamonds for killing each kind of mob. With these diamonds you were able to buy better equipment until you killed all the ...
0
votes
0answers
11 views

How to make a clone only replace specific blocks

I'm in Java 1.14.4 and I'm trying to have a clone command that only replaces blocks that are within the block tag #plantable_landmine execute at @e[type=minecraft:armor_stand,tag=landmine,tag=...
2
votes
2answers
2k views

How can I summon an object in motion where a player is looking?

I have been trying to figure out throwing knives in Minecraft. Is there an easy way (besides a ton of command blocks) to summon an object where the player is with motion according to where the ...
-1
votes
1answer
464 views

Command for filling storage with items..? [closed]

Is there a command for filling any storage unit with items? If so, please let me know.
-1
votes
0answers
10 views

Command block interaction permission

I am on a bukkit server with my friend. I am looking for a way to make it so he is deop but can still interact with command blocks. Is there a way to do this? I am using PermissionsEx. If there is ...
1
vote
2answers
5k views

How to create custom NPC's in vanilla minecraft? (1.10.2)

I am making a map and I would like to know how to make custom NPC's. Thank you I will post the map soon after the answer. (:
0
votes
1answer
221 views

Minecraft 1.13 Java Edition: Teleport an item to a player

In Minecraft pre-release 3 I was able to run the command /execute as @e[type=item,name="Big Apple"] run tp @e[tag=bigapple] @sand it would find an item dropped on the ground named Big Apple and it ...
2
votes
1answer
318 views

How to execute at the same height as an entity?

My problem is that I want to give every player on the same height as an area_effect_cloud within a radius of 25 blocks a scoreboard called 'stunned'. The command for that would look something like ...
0
votes
2answers
127 views

Can I remove the shadow on an item's name?

In Java Minecraft 1.13, I'm trying to /give an item with a custom name and color, but when I view it in the hotbar the text has a shadow effect that isn't present when I hover over it in the inventory....
-2
votes
1answer
39 views

Error after executing command [duplicate]

I have been trying to make a minigame and I need custom npc's I need them to have a name, trades and infinite trades(they never run out). Here is the command I have been using: /summon Villager ~ ~3 ...
-1
votes
1answer
83 views

Minecraft command block targeting

How do I select multiple targets with one command block without using @e[type=!player]? For instance: /execute @e[type=creeper] ~ ~ ~ execute @e[type=spider] ~ ~ ~ execute.... Does this make the ...
0
votes
1answer
351 views

How should I switch a person to another team in minecraft?

So let's say I have 2 teams, Winner and Player. When a player is the only one left on Player, I want to add them/switch them to Winner and remove them from Player. I already have all the testing for ...
0
votes
1answer
192 views

Lobby Selector/Inventory Selector no longer works

I run Minecraft on a Macintosh using Yosemite (10.10.1). My friend told me to press F3 to display coordinates to find him. After doing what my friend said, I can no longer use Lobby Select or access ...
1
vote
2answers
23k views

Minecraft, how to summon specific villager in 18w50a?

I tried every command I could find on the internet and none of them works. -.- I want a toolsmith but: /summon minecraft:villager ~ ~ ~ {Profession:3, Career:3} spawns just a random villager....
2
votes
1answer
99 views

How to teleport seamlessly?

So I'm trying to make one of those "infinite hallways" things, and when I teleport the player there is a short frame of something every time. I am teleporting relative the player shouldn't be able to ...
-4
votes
0answers
31 views

Minecraft bedwars map

I am making a minecraft bed-wars map but I need some help. I need a redstone device that counts diamonds. Every four diamonds it should upgrade the iron and gold generators. (Iron spawns 4 times ...
0
votes
1answer
37 views

Why does kill @e[type=!minecraft:bat] kill every mob

I was tired of the sheer mass of bats I had in my intentionally dimly lit tunnel, so I typed in that command. Then I died. Then I saw that all my pets and animals were also gone. I'm playing in 1.14.2,...
2
votes
3answers
637 views

Detect if the player is at a specific y level in 1.14

I am in 1.14 and I want to check if the player is at a specific Y value. I tried /execute at @a[y=10] run say hi but for some reason, this will constantly return true no matter what. I tried /...
1
vote
1answer
622 views

1.12 Checkpoint System

Note: This is not for 1.13, but 1.12 I want to create a checkpoint system for my Parkour map, but I fail everytime. When a player stands on an emerald block, this should be his checkpoint. If he ...
0
votes
2answers
304 views

Can I turn score into absorption hearts?

I'm attempting to /testfor a player's score, and then take that score and apply it as a number of absorption hearts (golden hearts). Is this possible? For example, imagine the player has 12 score. ...
2
votes
2answers
276 views

In Minecraft, how do I make water buckets only placeable on certain blocks?

In Minecraft 1.13, it seems CanPlaceOn and CanDestroy tags don't work on water buckets. In adventure mode, when using a bucket, you are able to place water on any block, even if a CanPlaceOn tag is ...
0
votes
1answer
47 views

Minecraft any way to use /clone to only replace air blocks?

As the title asks, Is there any way to use the clone command to only replace air blocks, such as breaking a floor and it being replaced by other blocks? I know that this can be done using /fill, but ...
-1
votes
1answer
58 views

How to activate a Redstone lamp with a Command block

I'm trying to make a tower of redstone lamps. Is it possible to activate one of them without activating another lamp with a command block, and if there is, what code can I use to connect a Command ...
-1
votes
0answers
24 views

Armor stand state clock 1.13+

I have a scoreboard dummy objective called State and i have an ArmorStand tagged with Game. How do I make a fill clock that runs when that tagged ArmorStand has a state of 0. This is my command (not ...
3
votes
1answer
65 views

How to detect 15 to 20 item in minecraft?

In Minecraft, how can I detect five or more item in players inventory? I alraedy know: @p[nbt={Inventory:[{id:"minecraft:cod",Count:5b}]}] But it only works with five item and no more or less.
-4
votes
0answers
50 views

What is the command in the Naruto mod that can summon Tsunade?

I am playing Mathiok's Naruto Anime Mod and, I'm trying to get slug sage for my character but I don't want to search for a Jungle Biome to find her. What is the command that I can use to summon them?
0
votes
1answer
33 views

How to test if a mob/animal has been fed? 1.14

I'm trying to test if a fox has been fed sweet berries to execute a command.
3
votes
1answer
34 views

Minecraft 1.14 - how detect blocks at some distance from the player

This will be my first question here about some work I would do for a world that I'm creating. Let's jump into the question. EASY MODE I would be able to detect if player is in "range" of a specified ...
-4
votes
1answer
25 views

How do you make it so that when someone goes to a specific block then text will appear? [on hold]

Can anyone help me with this? I'm making a server. When someone enters a room, I want text to appear that says "Safe area" or "PvP place".
1
vote
1answer
57 views

Attempting to copy scoreboard to another scoreboard in 1.12.2

Firstly, I have to use Minecraft v1.12.2 for plugin reasons. I need to use a command to copy a scoreboard, but I cant figure what I'm doing wrong. I'm using the command: /execute @a as run scoreboard ...
3
votes
3answers
18k views

How to use the /fill command with black wool or oak wooden planks?

I would like to know how to use the /fill command to fill black wool. I know how to use the /fill command, but I don't know how to make it fill black wool. Also how do I use the /fill command for oak ...
0
votes
1answer
98 views

Parsing failed error when spawning a chest preloaded with items

When I use this command to spawn a chest with items already in it: /setblock 219 230 84 chest 0 replace {Items:[{id:261,Slot:0,Count:1, tag:{ench[{id:49,lvl:100,{id:51,lvl:1}}]}},{id:262,Slot:1,Count:...
-4
votes
2answers
1k views

How do you make a block kill you in Minecraft 1.13? [duplicate]

I'm trying to make a block kill you when you touch it using command blocks in 1.13. I tried using answers, but when I put /execute, it's white, and when I put /execute @p it's red.
4
votes
3answers
218 views

How to kill people who are standing in the sun?

I'm trying to find a way to make it so when someone is outside during the day they get killed. I've searched for a long time and I've tried many different things, but they end up killing you even if ...
0
votes
2answers
60 views

Teleporting type command doesn't work with @e

Whenever I type /tp @e[type=anything] @p it teleport all entities nearby and all my named entities, even though I've specified to teleport all cows, or minecart with chests, or whatever I put under ...
1
vote
2answers
74 views

Player quit detection

I am trying to detect when a player has quit the server, I have the scoreboard to detect when a player quits: /scoreboard objectives add quit minecraft.custom:minecraft.leave_game However, the rest ...
-2
votes
0answers
21 views

make falling block not drop item if unable to be placed

I want to make falling block not drop item if unable to be placed. If I remember correctly there is a tag for it. I might be wrong if so tell me thx Basically some falling blocks that when summoned ...
0
votes
1answer
41 views

How can I run a command in server control panel and have the result said in game chat?

I'm trying to get my server to type "tps" into the console every 5 minutes and then forward the result to the ingame chat for players to see. Right now if I type tps into the control panel it just ...
1
vote
1answer
481 views

How to make an armour stand's name invisible through walls?

I want to make a secret room with invisible armour stands with text, but I don't want the armour stand names to be visible from outside the room. I thought of a way to fix it, but using a radius ...
4
votes
1answer
25 views

How to detect if a player has no item selected in his hand?

So, in version 1.12 we can easily detect if a player has nothing selected in his hand by just using the nbt {SelectedItem:{}}. I realise that it is no longer working in version 1.13 +. I tried to ...
-1
votes
1answer
24 views

How to spawn different cat skins in minecraft?

So i want to spawn different cat types in 1.14.4 using the /summon command.. How can i do that? in the new update there are much more cat skins and i would like to know how to summon different skins
0
votes
1answer
32 views

How do I teleport a zombie to me every time it gets too far by using a command block?

I want to teleport a zombie to me if it gets too far from me but the command block only does it if the zombie is far from itself. The command I tried is /execute as @p run tp @e[type=zombie,distance=...
3
votes
2answers
90 views

How could I check if a player is exposed to rain?

I was looking for a way to check if a player is exposed (no roof or anything) for a project and ended up thinking of one, but I failed to create it. I found out that spreadplayer will tp the ...
1
vote
1answer
709 views

How do I execute multiple function within another function?

In Minecraft 1.13.2 PC JAVA creative mode Previous title of this question was : What is console command to fly in creative mode? supposing an issue with 'flying'. I want to execute multiple ...
1
vote
1answer
57 views

How do I make a diamond sword that, when it hits a mob, executes a command?

I have already made a scoreboard objective for "used:minecraft.diamond_sword", but I don't know what to do next.
1
vote
1answer
624 views

How to make an item unbreakable when appearing in inventory?

I already know how to make items in Minecraft unbreakable (using the give command), but how would you make it so that when a player crafts or picks up a tool, the command blocks would make it ...
0
votes
1answer
61 views

How to force-own Minecraft cats?

I've been having a little bit of a problem with my Minecraft cats. I've tamed them for a long long time and now I used another launcher, because the one I was using was glitching, and I tamed another ...
0
votes
1answer
2k views

How do I summon specific villagers in 1.14?

I've tried using codes from 1.13 for it but it doesn't seem to work I always get the same villager, if there is a command for this in 1.14 can someone please tell me it?