Linked Questions

4
votes
1answer
4k views

Rotate an entity to look at the same place as the player [duplicate]

I try to make a tagged Armor Stand look at the same place as the player, but I can't find a way to do it. For example, if the player looks in the direction of the (x, y, y) block, the Armor Stand ...
0
votes
0answers
10 views

Minecraft 1.15 a way to check if entity can see a player [duplicate]

Hope you are all doing well, i trying to figure out how i can test if an entity can see a player in it's view atm i am using code below; execute as @e[type=minecraft:villager,tag=Path,tag=Villager10] ...
8
votes
4answers
80k views

An item to break only SPECIFIED blocks?

I know that I can make certain blocks only placeable on a specified block, but what is the command to give an item that can only BREAK certain blocks?
14
votes
2answers
1k views

Why remove redstone dust from my command block contraptions?

Whenever I show my command block contraptions to my friends, they always comment that I should remove the redstone dust from them. They say it causes lag and that redstone can be unpredictable, but I'...
8
votes
2answers
1k views

(Java Minecraft 1.14.2) How to recursively (or otherwise) determine if a closed 2D arbitrarily sized rectangle of blocks has been placed?

The title is a little complex, so let me explain it more fully. I am writing a datapack where I want to be able to run some commands if there is a rectangle of iron bars placed which is complete. I ...
0
votes
1answer
1k views

How to tag a function?

I don't know how to "tag" my function in my data pack. Right now I use the function command in repeating command blocks, but how would I tag it so I don't need them?
0
votes
1answer
1k views

Is there a way to change what occurs when a specific block is broken?

I am essentially looking for a way to do three things related to when a block is broken: a) Change a block's "loot table" (what the block drops), either single or multiple item/block drops b)...
0
votes
2answers
225 views

Is It Possible To Pass The Selected Player Down The Command Block Chain?

If I have an impulse block connected to chain command block I can trigger the two commands by pressing a button or standing on a pressure plate (or other redstone). e.g. give a status effect then ...
1
vote
1answer
112 views

Function bullets/guns hitting blocks lag

Simply put, I am making guns and have run into a serious issue. To start off I will have to explain how I made them. So I made the guns by using a function. When you right click with a carrot on a ...
0
votes
1answer
71 views

How can I make an execute command there is a player looking at another player?

I want to make an execute command execute if any player is looking at any other player. I haven't been able to find anything about this online, so I am wondering if it is possible at all. I've tried ...
1
vote
1answer
26 views

Is there a way to have an item which can break SPECIFIC BLOCKS with SPECIFIC FACING?

I know it's possible to make block breakable by items, but I wonder if I could make an item which can only break the specified blocks if they're facing a given direction.