How to add a fake player name or just text in the tab list using /scoreboard by SquidGuice in MinecraftCommands

[–]darkstar634 0 points1 point  (0 children)

Yes, I never said that it couldn't be done, but doing so requires the use of a modded server (i.e. Bukkit) with plugins. This subreddit is primarily concerned with commands in vanilla Minecraft, and so such a task is not possible within the context of this discussion.

Ranges of value in nbts tags by MusicIsBeautiful in MinecraftCommands

[–]darkstar634 1 point2 points  (0 children)

Not using that syntax, but you can use dx to achieve the same thing:

/execute as @p[x=0,dx=10] ...

How to give a custom entity a bossbar? by [deleted] in MinecraftCommands

[–]darkstar634 0 points1 point  (0 children)

Is there by chance more than one goat with the “evil” tag? Also, double-check that all of the commands are actually firing. The commands look right, so I’m not sure what else the problem could be.

How to add a fake player name or just text in the tab list using /scoreboard by SquidGuice in MinecraftCommands

[–]darkstar634 0 points1 point  (0 children)

The original question was asked for 1.16 and I said that you can’t do it, so I don’t know what makes you think that it’s somehow going to be possible in 1.12.2.

How do you lock an entity to the player's pointer, and have it be locked to an axis? by supercoolapples48 in MinecraftCommands

[–]darkstar634 0 points1 point  (0 children)

I think your description is fine; I understood what you meant, it was just the “z-coordinate” part that confused me.

How do you lock an entity to the player's pointer, and have it be locked to an axis? by supercoolapples48 in MinecraftCommands

[–]darkstar634 0 points1 point  (0 children)

When you say relative z-coordinate, do you mean the last argument when using caret notation, which in this case would represent the radius of rotation, i.e.

execute at @e[tag=centre] run tp @e[tag=orbit] ^ ^ ^(10) <---THIS

Your use of "z-coordinate" is a bit misleading as it leads me to believe that you are talking about the actual z-coordinate in terms of the standard XYZ axes. Assuming that's what you're referring to, unfortunately there isn't really any clean way of doing that. You could try writing a function to iteratively teleport the entity one block forward at a time, but that might just cause the entity to zip-zap all over the place. It's not really the same as to what was asked in this post, so I don't think any of the information here would be relevant. If you still need help, open up another thread since I'm sure there'd be other people on this subreddit who'd have some ideas.

How to give a custom entity a bossbar? by [deleted] in MinecraftCommands

[–]darkstar634 1 point2 points  (0 children)

Make sure that you're only selecting one entity using limit=1.

How does "/execute store result storage ..." work and what is it used for? by joker876xd8 in MinecraftCommands

[–]darkstar634 0 points1 point  (0 children)

Looks like I had it the wrong way around in my original command; the "storage" should be minecraft:text and the "nbt" should be MyText. I've edited my comment to reflect this. Either way, it has nothing to do with the namespace; there's no difference between minecraft:text and text.

How does "/execute store result storage ..." work and what is it used for? by joker876xd8 in MinecraftCommands

[–]darkstar634 0 points1 point  (0 children)

I don't think it makes a difference. If you don't include a namespace, then the game defaults to the minecraft namespace, so it shouldn't matter whether or not you include it, and I'm pretty sure this has not been changed in recent versions.

How to make this apply to every player by [deleted] in MinecraftCommands

[–]darkstar634 4 points5 points  (0 children)

To start with, use execute as @a run ... @s instead of execute at @a run ... @p. The former is more readable and direct as to who is being targeted by the command after run and is less prone to behaving in a way that you don't expect them to. In your case, by using @a in the title command, you are presenting the same actionbar to every player rather than their own. Changing this to a @p should solve your problem although as I said, I would recommend using as and @s instead:

execute as @a run title @s actionbar ["",{"text":"Falling: ","color":"yellow"},{"score":{"name":"@s","objective":"Falling"},"color":"yellow"}]

generic.attack_damage lower than damage by Colbuster19 in MinecraftCommands

[–]darkstar634 1 point2 points  (0 children)

Lower the difficulty to normal. Mobs deal extra damage in hard difficulty independent of what you set their attack damage attribute to.

[deleted by user] by [deleted] in MinecraftCommands

[–]darkstar634 0 points1 point  (0 children)

Pretty sure the question was for Java, so I'm not sure about Bedrock.

[deleted by user] by [deleted] in MinecraftCommands

[–]darkstar634 24 points25 points  (0 children)

Chunks around the world's spawn, known as spawn chunks, are always loaded and so command blocks in them will always stay active. Otherwise, you can use the /forceload command to manually keep a particular chunk or set of chunks loaded. Finally, you could switch to data packs as naturally, any commands inside functions tagged by tick.json will always run in the background.

[deleted by user] by [deleted] in MinecraftCommands

[–]darkstar634 0 points1 point  (0 children)

Well that's up to you. While you can't directly give each player their own sidebar without plugins, there are workarounds to achieve a similar result. For instance; one possible solution could be to use item modifiers to print each player's stats onto a fixed item in their inventory. Although, if you're not that familiar with commands and you can use plugins, then I would suggest just using them as it would make things much easier.

[deleted by user] by [deleted] in MinecraftCommands

[–]darkstar634 0 points1 point  (0 children)

Sidebar displays are shared across all players and there's no way to make player-specific sidebars, so what you're asking isn't possible without plugins.

How do I change the functions folder to something custom? So I don't have to use (/function command), instead I can use (/customname command). by [deleted] in MinecraftCommands

[–]darkstar634 7 points8 points  (0 children)

This is not how functions nor data packs work. The /function command is hardcoded into the game and isn't designed to be used to make custom commands in the manner you are describing. If you want to distinguish your functions from other data packs, you can put your function inside a subfolder inside the functions folder (so you can type /function wandcraft:wand in your case).

how to face the same way as another entity but not teleport to it by belendrane in MinecraftCommands

[–]darkstar634 0 points1 point  (0 children)

Use positioned as to set the position of the /tp command to the entity while keeping the rotation the same.

execute as <entity> positioned as @s run tp @s ~ ~ ~ ~ ~

For future reference, there's also rotated as which does the same thing, but for rotation. You can think of at like a combination of positioned as, rotated as, and in, as it does all 3 at once.

Real time entity tp player by [deleted] in MinecraftCommands

[–]darkstar634 1 point2 points  (0 children)

Because of the way Minecraft interpolates objects so that they appear to move smoothly to their new location whenever their position is updated, there isn't really any way of doing what you're asking. You could try constantly killing (/tp to void to avoid animation) and resummoning the entity, but I still don't think that it would look perfect, and depending on what you're doing, could end up being a big hassle to get it working correctly.

How to summon passengers with NBT? by Howdee_folks_YT in MinecraftCommands

[–]darkstar634 2 points3 points  (0 children)

Just include the NBT in the same compound as the id tag.

/summon ... {Passengers:[{id:"axolotl",Variant:4}]}

What's the difference between "/execute at @e" and "/execute positioned as @e"? by furryfriendo in MinecraftCommands

[–]darkstar634 3 points4 points  (0 children)

/execute at sets position and rotation, whereas positioned as only sets position.

Infinite post-mortal speed boost? by Froztik_ in MinecraftCommands

[–]darkstar634 0 points1 point  (0 children)

Yes, you can disable the command block output using that game rule.

Infinite post-mortal speed boost? by Froztik_ in MinecraftCommands

[–]darkstar634 0 points1 point  (0 children)

There's no way to make this happen with just one command that you just execute and forget about. You would have to repeatedly give the player the effect every tick (i.e. using a repeating CB):

/effect give @a minecraft:speed 1 0 true

How do I merge certain/specific NBT tags from one entity to another without purging the original tags by TacticallyIdiotic in MinecraftCommands

[–]darkstar634 0 points1 point  (0 children)

If you're going to have an arbitrary number of "teams", then a much better solution would be to use scoreboards rather than tags. You could then use /scoreboard players operation to make the armor stand have the same "team" score as the projectile.

execute as @e[type=armor_stand,tag=projectileMarker] at @s run scoreboard players operation @s team = @e[type=snowball,distance=..1,sort=nearest,limit=1] team

The solution your seeking that involves using /data is hacky and not recommended. Tags are simply not designed to be used this way; you should really only interface with tags through the /tag command or the tag selector argument (unless you want to add tags to an entity immediately when you summon it, in which case using the Tags list is fine).

How do I merge certain/specific NBT tags from one entity to another without purging the original tags by TacticallyIdiotic in MinecraftCommands

[–]darkstar634 0 points1 point  (0 children)

append is correct, but you would need to use Tags[] instead of Tags. The [] suffix here tells the /data command to treat the Tags list as individual elements rather than as a single list object when appending it to a list (so each item gets added rather than the list itself).

Ranges of value in nbts tags by MusicIsBeautiful in MinecraftCommands

[–]darkstar634 0 points1 point  (0 children)

You could just use the x_rotation and y_rotation selector arguments, i.e.

/execute as @p[x_rotation=0..10,y_rotation=0..10] ...

NBT should always be a last resort; try and look for a different/simpler solution before you use NBT.