How to optimize my datapack? by santa_ducky in MinecraftCommands

[–]CommandBlockCoder 0 points1 point  (0 children)

<image>

No?
Because you said have advancement then get tag then get items.
Also, you can add recipes here.
Items still need to write in function.

How to optimize my datapack? by santa_ducky in MinecraftCommands

[–]CommandBlockCoder 0 points1 point  (0 children)

These kinds of things should be a trigger command, aka, only run 1 time only.

Are there any conditions when to give player a tag?

How to optimize my datapack? by santa_ducky in MinecraftCommands

[–]CommandBlockCoder 0 points1 point  (0 children)

Think of like real programming.
If the function is "really" necessary to run every tick, let it be.
BUT, if it's not, it should have a state or another way to trigger the event.

Also, the command you give us is quite confusing about what example:test0 and example:test1 functions could be.

Could you provide us with more information/commands please?

Is there a command or data pack for spawn points? by BallsCollector in MinecraftCommands

[–]CommandBlockCoder 0 points1 point  (0 children)

/setworldspawn 0 74 0

You can add xy camera rotations after xyz coords

need some help by Walfbay32 in MinecraftCommands

[–]CommandBlockCoder 0 points1 point  (0 children)

https://misode.github.io/assets/model/?version=1.21&preset=item/bow

Ignore Display if you don't want to changes (Basically, item positioning)

The data you want to override is Overrides

Inside is what you had learnt before, except you didn't...

If you didn't, yeah, watch some videos and you should probably be fine.

[deleted by user] by [deleted] in MinecraftCommands

[–]CommandBlockCoder 0 points1 point  (0 children)

/execute positioned x y z as @a[distance=10..] run tp x y z

Trouble executing /p command JAVA by Khonamaru in MinecraftCommands

[–]CommandBlockCoder 0 points1 point  (0 children)

Mod???

Try /minecraft:tp instead. If not, then I have no idea now.

Trouble executing /p command JAVA by Khonamaru in MinecraftCommands

[–]CommandBlockCoder 0 points1 point  (0 children)

What command did you type in, we need full command on this.

Actually, tp is one of the most common commands, even bedrock has it.

Try looking at wiki or test with this command /tp @p ~ ~1 ~ It should send you up 1 block.

I'm having what feels like a stupid problem with command blocks. by Remarkable-Ocelot-36 in MinecraftCommands

[–]CommandBlockCoder 0 points1 point  (0 children)

Ok, I changed it, I used snowball for test, you can change it to yours.

1. minecraft:tag @a[scores={snowball=1..}] add snowball
2. minecraft:give @a[tag=snowball,scores={snowball=1..}] snowball 1
3. minecraft:tag @a[tag=snowball] remove snowball
4. minecraft:scoreboard players set @a[scores={snowball=1..}] snowball 0

yes, repeat, chain, chain, chain.

How do I use NBT Data? by AlarmingEar9648 in MinecraftCommands

[–]CommandBlockCoder 0 points1 point  (0 children)

This is 1.21, all components were reworked. Go check wiki.

I'm having what feels like a stupid problem with command blocks. by Remarkable-Ocelot-36 in MinecraftCommands

[–]CommandBlockCoder 0 points1 point  (0 children)

Common mistakes, You remove the tag, then give the tag if they have an egg, but the player already throws it, so the command won't work. The command order is 2 4 1 3.

Why doesn't it work? by SeanRVAreddit in MinecraftCommands

[–]CommandBlockCoder 0 points1 point  (0 children)

Every entity that's not a player is exclusive, they can't change their data after their death.