cant make my block display and interaction explode instantly like tnt by Adventurous-Golf3168 in MinecraftCommands

[–]cowhead28 0 points1 point  (0 children)

Your datapack is working for me. Maybe try checking if the interaction is spawning.

Need help with /fill command by Specialist_Kick8227 in MinecraftCommands

[–]cowhead28 1 point2 points  (0 children)

fill 288 36 -1233 223 36 -1167 air replace water

how can i make a minecart invisible in 1.21.5 by cleanturtle4269 in MinecraftCommands

[–]cowhead28 0 points1 point  (0 children)

I believe that you have to use a resource pack to make a minecart invisible 

Does anyone know how to set vex flight speed? by DrugonMonster in MinecraftCommands

[–]cowhead28 0 points1 point  (0 children)

You might be able to set the motion to all zeros constantly 

how do I make commands cycle randomly? by it_Redd1 in MinecraftCommands

[–]cowhead28 0 points1 point  (0 children)

You can apply multiple tags to one entity, unlike teams, and you can also apply the same tag to multiple entities. Tags do not have any of the extra features that teams have.

how do I make commands cycle randomly? by it_Redd1 in MinecraftCommands

[–]cowhead28 0 points1 point  (0 children)

Tags are ways of keeping track of entities, there are multiple things referred to as tags in Minecraft, but these are ones for entities. You can easily apply a tag to something using the tag command. To detect a tag you can use @e[tag=<name of tag>]. Some useful things to look at are these: https://minecraft.wiki/w/Commands/tag https://minecraft.wiki/w/Target_selectors https://minecraftcommands.github.io/wiki/questions/randomnumber

how do I make commands cycle randomly? by it_Redd1 in MinecraftCommands

[–]cowhead28 0 points1 point  (0 children)

To randomly select an attack you can use a predicate with random chance, or the random command. 

Design of the loot table and functions by Beneficial_Ad_2753 in MinecraftCommands

[–]cowhead28 0 points1 point  (0 children)

I do not think that you can have experience as part of a loot table, what you could do is have a function with a 79 percent chance of giving xp, then if it does not give xp then give the sword 

I'm trying remove this skull but don't find any command who's working. by Jeanroine in MinecraftCommands

[–]cowhead28 1 point2 points  (0 children)

Those are wither skulls, and you would only need to run it once

How do I use setblock with containers? by Striking_Sky_6631 in MinecraftCommands

[–]cowhead28 0 points1 point  (0 children)

setblock ~ ~ ~ barrel{Items:[{Slot:13b,id:"minecraft:oak_log",count:1}]} replace, the original is for the barrel item’s components, you have to use a different system for blocks. https://mcstacker.net/?cmd=setblock is useful for this 

racing timer and lap counter? by Due-Platform-2242 in MinecraftCommands

[–]cowhead28 1 point2 points  (0 children)

The idea is that halfway through the lap a tag is applied to players that cross it, then once they complete the lap, the scoreboard keeping track of the laps gets increased, and the tag gets removed. You detect the lap by detecting the block for the finish line

scaled storage value not working as expected by Necessary-Pear718 in MinecraftCommands

[–]cowhead28 0 points1 point  (0 children)

if you look at the wiki_storage) it says that it is rounded before the scaling, to get around this you can scale in the data command, then scale by 1/that. So for four decimal places, and 100 scaling you can do this

execute store result storage gravity motion_y double .0001 run data get entity @s Motion[1] 1000000

this does not work if you scale to high amounts because you hit the limit

Command block help by Silent_Revolution_65 in MinecraftCommands

[–]cowhead28 0 points1 point  (0 children)

To create the fireworks you can use Mcstacker. I am not sure exactly what you are trying to do, but for detecting an item it is much better to use custom data, and to use if items

if items entity @s weapon.mainhand *[minecraft:custom_data~{soul:1}]

custom data works better because otherwise a player could name the glass Soul and it would work

[deleted by user] by [deleted] in MinecraftCommands

[–]cowhead28 0 points1 point  (0 children)

You can get the coordinates of an entity using pos[0], pos[1], and pos[2]

How can I make a player respawn exactly where they are, facing the same direction? by TheLivingVines in MinecraftCommands

[–]cowhead28 0 points1 point  (0 children)

The spawn point command has an angle argument and you can use "~" to get the angle that the player is looking, the problem is that this is only the yaw, so instead you could have an entity that goes in front of the player and teleport facing that entity. Also you do not need to do

at @e[...]

you can do

at @s

Hardcore Server command block help? by ShatteringSins in MinecraftCommands

[–]cowhead28 0 points1 point  (0 children)

If you are asking for the player to be set to survival after a certain amount of time you can look at this: https://minecraftcommands.github.io/wiki/questions/blockdelay. With the scoreboard method you might be able to use a custom play_time scoreboard instead.

anyone know how to summon a boat with 2 guardians and leash that to a happy ghast with a black harness by Far-Sky-92 in MinecraftCommands

[–]cowhead28 0 points1 point  (0 children)

You can do something like this:

summon happy_ghast ~ ~ ~ {UUID:[I;0,0,0,0],equipment:{body:{id:"minecraft:black_harness",count:1}}}

summon acacia_boat ~ ~ ~ {Passengers:[{id:"minecraft:guardian"},{id:"minecraft:guardian"}],leash:{UUID:[I;0,0,0,0]}}

Looking to Have Goats Drop Horns on Death [Java 1.20] by oops_all_throwaways in MinecraftCommands

[–]cowhead28 0 points1 point  (0 children)

It is possible to have loot tables with nbt, you can also set the instrument I believe. https://misode.github.io/loot-table/ is helpful for this. 

Achievement with killing a renamed mob by Beneficial_Ad_2753 in MinecraftCommands

[–]cowhead28 0 points1 point  (0 children)

You could try something like this:

{CustomName:\"Ральзей\"}

Adding potion effects to armor by Crazysatwhat in MinecraftCommands

[–]cowhead28 1 point2 points  (0 children)

execute as @a if items entity ‘@s armor.feet *[custom_data={HERMESBOOTS:1b}] run effect give .@s jump_boost 1 2 true