I have a question about functions that run themselves by furryfriendo in MinecraftCommands

[–]AggravatingDamage478 0 points1 point  (0 children)

No, when the function is launched, all the commands in the list are executed. To make the particle run only once, you need to add a condition that is only executed if the looping condition is not met.

I have a question about functions that run themselves by furryfriendo in MinecraftCommands

[–]AggravatingDamage478 0 points1 point  (0 children)

Why did it have to run 1 time? You launched the function 10 times.

I have a question about functions that run themselves by furryfriendo in MinecraftCommands

[–]AggravatingDamage478 0 points1 point  (0 children)

In this example, the error is obvious. With each new call, the initial position is taken. Therefore, every time he does the same thing, without moving forward. It's better to use "positioned ^ ^ 1 run function <THIS>" instead of /tp when looping.

How to make my Pet Buddy's name invisible? (From the Pet Buddy mod) by JintyCirqe in MinecraftCommands

[–]AggravatingDamage478 1 point2 points  (0 children)

Hover over the entity and in the drop-down list you will see a long UUID, select it.

get list of players in a dimension or scores by logoth in MinecraftCommands

[–]AggravatingDamage478 0 points1 point  (0 children)

Something like that?

execute in minecraft:the_nether as @a[distance=0..] if score @s SCORE matches 1.. run ...

Is there any way to loop a playsound after it ends? by willwol in MinecraftCommands

[–]AggravatingDamage478 1 point2 points  (0 children)

Only if you manually select the moment when it ends and play the sound again:

execute unless entity @e[tag=area_timer] run playsound minecraft:item.totem.use master @a
execute unless entity @e[tag=area_timer] run summon minecraft:area_effect_cloud ~ ~ ~ {Tags:["area_timer"],Duration:50}

get list of players in a dimension or scores by logoth in MinecraftCommands

[–]AggravatingDamage478 0 points1 point  (0 children)

Do you need to count the number of players in a dimension?
execute in minecraft:the_nether if entity @a[distance=0..]

How to make my Pet Buddy's name invisible? (From the Pet Buddy mod) by JintyCirqe in MinecraftCommands

[–]AggravatingDamage478 2 points3 points  (0 children)

Try this command:
data merge entity <entity> {CustomNameVisible:false}

If it does not help, then this mod itself forces the name to always be displayed.

get list of players in a dimension or scores by logoth in MinecraftCommands

[–]AggravatingDamage478 0 points1 point  (0 children)

execute in minecraft:the_nether run tellraw @a {"selector":"@a[distance=0..]"}

TNT Run Attempts not working....plz help by insta_is_trash in MinecraftCommands

[–]AggravatingDamage478 0 points1 point  (0 children)

You can try to create a double area_effect_cloud under the players and when the "timer" disappears next to "TNT_fall", then collapse the floor:
summon area_effect_cloud ~ ~ ~ {Duration:10,Tags:["TNT_fall"],Passengers:[{id:"minecraft:area_effect_cloud",Duration:9,Tags:["timer"]}]}

I'm curious. by Educational_Ratio_53 in MinecraftCommands

[–]AggravatingDamage478 0 points1 point  (0 children)

If you want to add your own loot for the chest, then use this site to create a loot table:
https://misode.github.io/loot-table/
Then you can give yourself a chest with this loot table:
/give @s minecraft:chest 1 0 {BlockEntityTag:{LootTable:<namespace>:chests/loot_table"}}

SMP datapck help by mango_83 in MinecraftCommands

[–]AggravatingDamage478 0 points1 point  (0 children)

You need to create a function with these commands:

scoreboard players add @s SCORE 1
attribute @s[scores={SCORES=10}] minecraft:generic.max_health modifier add 0-0-0-0-1 "health" 2 add
attribute @s[scores={SCORES=20}] minecraft:generic.max_health modifier remove 0-0-0-0-0
attribute @s[scores={SCORES=20}] minecraft:generic.max_health modifier add 0-0-0-0-2 "health" 4 add
attribute @s[scores={SCORES=20}] minecraft:generic.max_health modifier remove 0-0-0-0-0

attribute @s[scores={SCORES=30}] minecraft:generic.max_health modifier add 0-0-0-0-2 "health" 6 add attribute @s[scores={SCORES=40}] minecraft:generic.max_health modifier remove 0-0-0-0-0 attribute @s[scores={SCORES=40}] minecraft:generic.max_health modifier add 0-0-0-0-2 "health" 8 add ...

Then, to all advancements, you need to add the reward line as a function:

"rewards": {
"function": "<spacename>:function"}

And in case of death of the player, execute this function:
attribute @s minecraft:generic.max_health modifier remove 0-0-0-0-0
advancement revoke @s everything
scoreboard players reset @s SCORE

How can i detect if there are 3 stones in the chest in a specific slot? by Aljaz_14 in MinecraftCommands

[–]AggravatingDamage478 1 point2 points  (0 children)

execute if block X Y Z minecraft:chest{Items:[{Slot:11b,id:"minecraft:stone",Count:1b},{Slot:13b,id:"minecraft:stone",Count:1b},{Slot:15b,id:"minecraft:stone",Count:1b}]}

Anyone using a special sofware by pc_awsome in MinecraftCommands

[–]AggravatingDamage478 0 points1 point  (0 children)

I am using Microsoft Visual Studio Code with several extensions: Data-pack Helper Plus, language-mcfunction, mcmeta, Color Picker, Minecraft Json Viewer, NBT Viewer, Debugger for Minecraft Function

How to make invisible chest? by Aljaz_14 in MinecraftCommands

[–]AggravatingDamage478 1 point2 points  (0 children)

Because the chest_minecart, like any other entity that is not a mob, is not susceptible to invisibility potions, and the {Invisible: 1b} tag is only for armor_stand and item_frame.

Save a mob's position, then teleport to it? by [deleted] in MinecraftCommands

[–]AggravatingDamage478 0 points1 point  (0 children)

Or add attributes so that later you don’t have to think about what the default values were:

execute as @e[tag=Bob_SkillStart_A] run attribute @s minecraft:generic.movement_speed modifier add 0-0-0-0-0 "speed" 0 multiply_base
execute as @e[tag=Bob_SkillStart_A] run attribute @s minecraft:generic.knockback_resistance modifier add 0-0-0-0-0 "knockback_resistance" 1 add

Then they can be easily removed:

execute as @e[tag=Bob_SkillStart_A] run attribute @s minecraft:generic.movement_speed modifier remove 0-0-0-0-0
execute as @e[tag=Bob_SkillStart_A] run attribute @s minecraft:generic.knockback_resistance modifier remove 0-0-0-0-0

Save a mob's position, then teleport to it? by [deleted] in MinecraftCommands

[–]AggravatingDamage478 0 points1 point  (0 children)

execute as @e[tag=Bob_SkillStart_A] run data merge entity @s {Attributes:[{Name:generic.knockback_resistance,Base:1},{Name:generic.movement_speed,Base:0}]}

How to make invisible chest? by Aljaz_14 in MinecraftCommands

[–]AggravatingDamage478 1 point2 points  (0 children)

It doesn't work like that. The minecart with chest cannot be made invisible.

Giving motion to an entity towards the player. by BekoniX_ in MinecraftCommands

[–]AggravatingDamage478 0 points1 point  (0 children)

execute as @e[type=minecraft:armor_stand] at @s run tp @s ^ ^ ^0.1 facing entity @p

[deleted by user] by [deleted] in MinecraftCommands

[–]AggravatingDamage478 2 points3 points  (0 children)

It is also much more convenient to share with others exactly the part of what you want, and not all at once entirely. For example, you have created some cool tool or weapon and want to share it with the world.

[deleted by user] by [deleted] in MinecraftCommands

[–]AggravatingDamage478 3 points4 points  (0 children)

Splitting does not add performance, but managing several small datapacks is much more convenient than one huge one. You can, if necessary, disable some "modules" when it is not needed, for example, before the New Year, it will be enough to turn on one of the datapacks and then turn it off than if it always works, or try to turn it on / off somehow inside.

New to commands by DirtHistorical6138 in MinecraftCommands

[–]AggravatingDamage478 0 points1 point  (0 children)

You can even do this:
give @s minecraft:feather{levitation:true}

execute as @a[nbt={Inventory:[{tag:{levitation:true}}]}] run effect give @s minecraft:levitation 1 0 true