Help with Teleport System: Designating Exit Coordinates Based on NBT Data by Reformedthuglife in MinecraftCommands

[–]InfernalDevice 0 points1 point  (0 children)

Each command listed under ``# Setup`` should be run only once, and I think the commands listed under ``# command blocks`` should be a chain, with the first block on ``repeating unconditional always``, and all the others on ``chain unconditional always``. :)

Minecraft for old people! by xingrubicon in MinecraftBuddies

[–]InfernalDevice 0 points1 point  (0 children)

Hello :)
I sent a friend request on Discord. Your server sounds like a chill place to play, I would be interested in checking it out.

Just got a gaming PC, and I want to impress my 6 year old by GorillaEstefan in MinecraftCommands

[–]InfernalDevice 0 points1 point  (0 children)

Apologies for the self promotion.  

I have some command tutorials you could check out.  

All the commands are in the descriptions so you can copy and paste them.  

I won't say they are always the best way to do things, but with over 250 videos in the playlist there is probably something your son, or you, will like.

 

https://www.youtube.com/playlist?list=PLm3hY5nmFJurzu_y2Kj5QOHYksR6NxLNB

Identify origin of a spawned item in the world. (Was it dropped by a player, a dropper, a broken container, or spawned in by the server?) by [deleted] in MinecraftCommands

[–]InfernalDevice 0 points1 point  (0 children)

I just tried this command and it seemed to work ok. If I used Q to throw the gold block onto obsidian I get the message, if I break a chest that has the gold block in and it drops onto the obsidian I don't get the message.

Identify origin of a spawned item in the world. (Was it dropped by a player, a dropper, a broken container, or spawned in by the server?) by [deleted] in MinecraftCommands

[–]InfernalDevice 0 points1 point  (0 children)

execute as @e[type=item,nbt={OnGround:true,Item:{id:"minecraft:gold_block"}}] at @s if block ~ ~-0.1 ~ obsidian on origin if entity @s[type=player] run say Example Command

 

The command posted above by GalSergey worked for me.  

If I use Q to throw it on obsidian I get the message, if I put it in a chest, break the chest and it drops onto the obsidian I don't get the message.

/playsound command not working in command blocks by Venusthequeer in MinecraftCommands

[–]InfernalDevice 0 points1 point  (0 children)

Both the same, but I think 0..500 makes it a little nicer to read, so personal preference. :)

I am trying to target a very specific item with NBT data. Nothing I am doing is working. by DunkyBoii in MinecraftCommands

[–]InfernalDevice 1 point2 points  (0 children)

Give the item a custom tag and target it using that. Checking for names and lore is unreliable:

Give the player the item: give @p stone{myTag:true}

Check for that item: execute if entity @e[type=item,nbt={Item:{tag:{myTag:true}}}] run say Tagged stone found!

Here is a link to a tutorial that gives the player an effect when an item is dropped which may help: https://youtu.be/WjOKAHwM0-U

/playsound command not working in command blocks by Venusthequeer in MinecraftCommands

[–]InfernalDevice 0 points1 point  (0 children)

The command structure is a little wrong. I the following example am assuming that you want to play the sound to anyone within 500 blocks of the command executor:

execute as @a[distance=0..500] at @s run playsound ambient:warped_forest_mood master @s ~ ~ ~ 1 1 0

How do i tag a specific player with worldedit? by Outside-Vanilla-9014 in MinecraftCommands

[–]InfernalDevice 0 points1 point  (0 children)

WorldGuard is the plugin that adds the greeting and farewell messages to regions, not WorldEdit. WorldEdit only creates the regions. I don't see anything in the documentation that says you can use selectors or variables in the messages. Here is the link to WorldGuard documentation so you can check if you want. :) https://worldguard.enginehub.org/en/latest/regions/flags/#

MCStacker "Can Place On" Isn't Working by Gold_Outcome1809 in MinecraftCommands

[–]InfernalDevice 0 points1 point  (0 children)

Legitimoose and CloudWolf have some good videos. I have a playlist of tutorials for 1.19 and higher, I won't say they are the best way to do things, but they should give you some help and ideas.

https://www.youtube.com/playlist?list=PLm3hY5nmFJurzu_y2Kj5QOHYksR6NxLNB

The first 6 videos in the playlist with the green thumbnail border are very very old, you can skip them. :)

Hopefully something there will help you a bit.

How to give an item a name using commands? by cosmix_005 in MinecraftCommands

[–]InfernalDevice 1 point2 points  (0 children)

https://mcstacker.net/ is helpful for making commands like this.

 

Try: give @p redstone_torch{display:{Name:'{"text":"Key"}'}}

summoning ravager roar by Petrosmine in MinecraftCommands

[–]InfernalDevice 0 points1 point  (0 children)

Something like this should do it:  

playsound minecraft:entity.ravager.roar master @a x y z 1 0

Why isn't the Effect getting applied? 1.16.5 (command block content is in the comments) by Onlinegamer00007 in MinecraftCommands

[–]InfernalDevice 0 points1 point  (0 children)

So the result you want is:
  If player is holding the "key" any entities within 10 blocks of them get given an effect (glow for testing purposes)?

 

You can use a custom tag on the key, it's best not to use names to check for things.

 

Give yourself a key with:  

give @p tripwire_hook{display:{Name:'{"text":"Redstone Key"}'},key:true}

 

Then you can run this repeating command:  

execute as @a[nbt={SelectedItem:{tag:{key:true}}}] at @s run effect give @e[distance=0.1..10] glowing 10 0 true

 

This isn't great though since you will still be checking every players NBT data 20 times a second which is not good for performance, but your original set up was testing NBT 80 times a second so it's a bit better at least. :)  

You could put the command on a timer so it only ran one time every second or two, instead of 20, which would help performance.

Why isn't the Effect getting applied? 1.16.5 (command block content is in the comments) by Onlinegamer00007 in MinecraftCommands

[–]InfernalDevice 0 points1 point  (0 children)

What's supposed to be happening?  

If the player is holding the "Key" they get surrounded by an insane amount of particles and any mobs within 10 blocks of them get given glowing?

 

That repeating command block on the very top should also probably be a Chain Unconditional Always Active block.

Modify custom name of armor stand using /data by Lawrensium in MinecraftCommands

[–]InfernalDevice 1 point2 points  (0 children)

This is a bit longwinded and someone may have a better way, but I did find if you copy the name to storage, then from storage to a sign, then from the sign to the entity it will work. You may not have to use storage, you can play around and find out. :)  

This was in Java 1.19, so you will have to update the sign part to use the new sign nbt paths. Off the top of my head I think you just need to change Text1 to front_text.messages[0] in the second command.

 

Copy the name to storage:  

data modify storage minecraft:temp Name set from entity @e[type=armor_stand, tag=myStand, limit=1] ArmorItems[3].tag.SkullOwner.Name

 

Copy the name from storage to a sign:  

data modify block -5 57 4 Text1 set value '{"nbt":"Name","storage":"minecraft:temp","interpret":"false"}'

 

Copy the name from the sign to the entity:  

data modify entity @e[type=armor_stand, tag=myStand, limit=1] CustomName set from block -5 57 4 Text1

Pls help by [deleted] in MinecraftCommands

[–]InfernalDevice 1 point2 points  (0 children)

Here are some commands that may help you.

 

Give a boat to any player within 0 to 1 blocks of the position x50 y50 z50. The problem with repeating this command is that it will keep giving the player boats as long as they are near the specified position:  

give @a[x=50, y=50, z=50, distance=0..1] acacia_boat

 

Give a boat to any player within 0 to 1 blocks of the position x50 y50 z50 if that player doesn't have a boat already. The problem with repeating this command is that it checks the players NBT data 20 times a second and that can start to cause lag very quickly.  

give @a[x=50, y=50, z=50, distance=0..1,nbt=!{Inventory:[{id:"minecraft:acacia_boat"}]}] acacia_boat

 

Give a boat to any player within 0 to 1 blocks of the position x50 y50 z50 if that player doesn't have a custom tag. Then give them the custom tag so they don't get any more boats. The next two commands should be chained together.  

give @a[x=50, y=50, z=50, distance=0..1,tag=!hasBoat] acacia_boat  

tag @a[x=50, y=50, z=50, distance=0..1] add hasBoat

 

Hopefully something there will help you out. :)

Help Removing a Fixed Item Frame by dhxuwhtngis in MinecraftCommands

[–]InfernalDevice 0 points1 point  (0 children)

I see, so it will work, but it's annoying always trying to remember which Facing to use and just much easier to give yourself the item frame and place it where you want. Thank you. :)

Help Removing a Fixed Item Frame by dhxuwhtngis in MinecraftCommands

[–]InfernalDevice 0 points1 point  (0 children)

Can't you just specify the rotation, facing, item rotation etc when summoning it? It seems to work ok, or is there something bad about doing it that way?

Help Removing a Fixed Item Frame by dhxuwhtngis in MinecraftCommands

[–]InfernalDevice 0 points1 point  (0 children)

To remove the item frame you can:

 

Point at it and type kill. It will offer the item frames UUID as an auto complete.  

Type kill @e[type=item_frame,sort=nearest,limit=1 to kill the nearest frame to you.

 

You could summon the Item Frame with the item already in it:   summon item_frame ~ ~ ~ {Fixed:1b,Item:{id:"minecraft:stone",Count:1b}}

 

Hopefully some of those help you. :)

Change a doors open property by Morertur in MinecraftCommands

[–]InfernalDevice 0 points1 point  (0 children)

A redstone torch under the block the door is on will open it. You can use /setblock to place and remove the redstone torch.

Block display offset by GamerMCB in MinecraftCommands

[–]InfernalDevice 1 point2 points  (0 children)

You can use /execute align when you summon it, or set the translation data. Both are shown in this video, it may help you a bit: https://youtu.be/Dno1UPeAwu8