#Commands General

1 messages · Page 2 of 1

fringe orchid
#

I googled it and it says I should use /tag <name> removeall

#

Is that a Java edition command only?

mystic apex
#

Yes

fringe orchid
#

Fuck you mojang

#

đŸ€Š

mystic apex
#

Lol

umbral blaze
#

how do u don't know your tag name?

#

u can check the list

fringe orchid
#

How can i check

mystic apex
#
/tag @s list```
umbral blaze
#

yea then remove each one by one

#

@fringe orchid

fringe orchid
#

I tried it

#

It didn't show any tags

mystic apex
#
/gamerule sendcommandfeedback true```
fringe orchid
#

Even after I added some random tags to mys

#

Myself

umbral blaze
#

u r doin smthing wrong...

fringe orchid
#

Something is wrong in the picture ,did you notice ?

#

💀

#

A sand block on top of torch?

umbral blaze
#

what's wrong?

fringe orchid
#

Sand can't be placed on torch

umbral blaze
#

glitch

mystic apex
fringe orchid
#

No it can't

mystic apex
#

Yes it can

fringe orchid
#

BTW how tf is it possible to be able to open containers like chest or hopper while crouching and having block in hand ?

mystic apex
#

Idk dude. You tell me.

fringe orchid
mystic apex
#

I'm sick. I can't.

fringe orchid
#

💀

#

Thank u guys anyway

mystic apex
#

Np

umbral blaze
mystic apex
#

That will do nothing different

umbral blaze
#

who knows

mystic apex
#

I know

umbral blaze
#

there are some blocks on which u can't place without crouching

#

so I'm just sayin to try

verbal oak
#

Using commands, does anyone have a good idea on how I can make a redeem code system, I had one before but it was some boring, rename paper on anvil and drop it.

#

Functions will work aswell btw, i just dont know scriping n stuff so it has to be done with commands of some sort

limpid prism
#

Idk what else it would be

verbal oak
#

wtf is the block state for light blocks

#

i cannot find it

#

im tryina /fill light blocks with a power level of 15

limpid prism
verbal oak
#

Doesn't help, i tried that already

limpid prism
verbal oak
#

Meh its 4 am and im tired but it was smth like block_light_level or level, tried both

limpid prism
verbal oak
#

Huh

limpid prism
verbal oak
#

oh.. lol

limpid prism
# verbal oak Huh

What you probably did was:

light_block[“block_light_level”:”15”]

verbal oak
#

Ty

pine anvil
#

Hey, how can i run an execute command that affects entities (@e) around me but not the runner itself (@s)?

verbal oak
#

this wont work if they are inside your hitbox though

limpid prism
#

It basically requires them to be halfway inside the player

#

Which usually isn’t a problem

pine anvil
teal kiln
gritty musk
#

execute as @e[r=#,rm=0.1] 


verbal oak
#

selecting @s

#

at @s located on the player

teal kiln
# verbal oak as @s at @s means

Why though? By default that should already be the case unless it is told to be different elsewhere (like a function call or something)

verbal oak
#

well if u put it in a command block

#

if u do as @e[tag=] or something

#

but dont follow up with the at @s

#

itll just do it located at the cmd block

teal kiln
#

If you put it in a command block, u won't use @s, that's why i was confused as to the reason

#

I thought there was a bug or something and that was a workaround

trim zenith
verbal oak
#

only on the at @s part u do

trim zenith
#

Then, why using execute as @s at @s run ... ?

verbal oak
#

he said @s so i just assumed it was a normal non cmd block cmd

teal kiln
#

if it's a normal non cmd block cmd, it shouldn't be needed

#

at least, if you're using @s

tiny cairn
#

Does tellraw not work in functions

#

It’s supposed to be {“rawtext”:[{“text”:”text here”}]} right

mystic apex
#

Wrong quotation marks

tiny cairn
#

Is there a character limit for tellraw

mystic apex
#

Nah

limpid prism
mystic apex
#

Lame

gritty musk
#

Which is different on all devices lol

dark bison
#

I need an execute command for if there's a diamond block below me

Like

execute as @a at @s positioned ~~~ run damage @s 5

gritty musk
#

execute as @a at @s if block ~ ~-1 ~ diamond_block run


dark bison
#

Tnx

trail eagle
#

Let's say I have a block with multiple different block states / properties. Is there a way to only test for one state without needing to hard code all the possible combinations for the other states?

See, ideally I'd want to do something like this if block ^ ^ ^5.2 gm:pipe ["gm:content":1] but my custom block has 5 properties with about 6 possible values each, so I would probably nuke the game if I try and test for all combinations

mystic apex
#

Use unless instead of if

kind flax
#

Does anyone know how to code a world edit using command blocks?

green nymph
gritty musk
#

Has there been any changed to how the scoreboard command work in the past two months?

gritty musk
#

thanks

gritty musk
#

Glad it is now more accurate!

lilac scaffold
#

Hi brother who is not a brother but is a Naruto fan so yeah

rain lance
#

Could anyone inform me of how the score component in tellraw works with (fake-)players who have spaces in their name? I cannot seem to get the value printed properly and I'm unsure how to get around this issue.

#

My exact test code is /tellraw @s {"rawtext":[{"score":{"name":"Testing Object","objective":"Warn"}},{"text":"Aa"}]}

#

this is not working even though Testing Object exists and Warn exists

#

it outputs the error:
Syntax error: Unexpected "Object": at "Testing >>Object<<"

rain lance
#

nvm I found a way

lusty sable
#

Just change Testing Object to TestingObject

limpid prism
#

It’s also less troubling to just add 4 more characters:

{"name":"\"Testing Object\""
#

boom, easy peasy

wintry heart
#

How can I check (If) the number of entities in the execute command?

#

I tried using (example) execute if entity @s[c=2] run say test. And that didn't work as expected, because despite the player not being equal to c=2, the command was executed

limpid prism
#

The workaround for this has 2 methods

#

But the scoreboard method is what I will explain

#

Create a scoreboard, for this I’ll use “Count”

#

Then:

execute as @e run scoreboard players add Entities Count 1

#

This will select all entities then add 1 to the Count score of the fake player named “Entities” for each entity in the world

#

We can then execute a command after this, such as:

execute if score Entities Count matches 5 run say There are 5 entities in the world currently

#

And then finally reset the number using:

scoreboard players reset Entities Count

#

Hopefully they’ll add a count minimum selector argument or something so we don’t have to do this, but this isn’t that complex anyways.

wintry heart
#

Thank you, I will try this

wintry heart
#

execute as @s at @s if score @e[type=thrown:double_barrel_bullet,r=1,y=~1.2] entity_count matches 2 run say two entities

#

@limpid prism

limpid prism
wintry heart
limpid prism
#

Also you aren’t following what I said at all

#

What entity are you trying to count?

wintry heart
wintry heart
#

I want to know how many entities of a type are within a radius of 1 block positioned in y 1.2 blocks from this point

#

Just

limpid prism
#

Also

#

You’re supposed to execute as all entities

#

Then add it to 1 scoreboard

#

Hence the use of a fake player

#

Please read before you do

wintry heart
#

I put an event in my entity that adds the scoreboard when it is born

#

It is more practical for me

#

"set:scores": {
"run_command": { "command": [ "scoreboard players set @s entity_count 1"] }
}

#

I don't know where the problem is, and I don't want to do exactly as you said, adding the scoreboard to all entities, since I will only count one type

#

I may have some understanding problem as I don't speak English very well, I'm Brazilian

limpid prism
# wintry heart I don't know where the problem is, and I don't want to do exactly as you said, a...

First of all, you’re setting the score in the command shown, secondly, the point of the command is to execute AS all entities that you want to count.

Which gives us the first part of the command:
execute as @e[type=thrown:double_barrel_bullet]

Then we will have all of these entities add 1 to a SINGULAR fake player’s score. Meaning: for each entity selected, it will add 1 to a singular score:

execute as @e[type=thrown:double_barrel_bullet] run scoreboard players add FakePlayer Count 1

#

This sets the “FakePlayer”s count score to the amount of double barrel bullets

#

We then execute a command AFTER that by checking if the amount is a certain amount

#

execute if score FakePlayer Count matches 2

#

Then run a command based off that

wintry heart
#

I think I would have to add the scoreboards in the player

#

Why..

limpid prism
#

execute if score FakePlayer Count matches 2 run say There are 2 double barrel bullets

wintry heart
#

Basically I'm trying to make a multiple damage system, because I don't know if you know, entities don't receive more than one damage at the same time, And I'm making a gun that shoots 6 projectiles at once, and I need that the more projectiles it hits, the more damage it will do, for this I added a damage sensor that when it identifies that the damage caused was by these projectiles, it throws an event that calls a function which should contain the commands that will do the calculation of entities that have within 1 block radius, the damage that will be dealt by default even if all projectiles hit will be 5 damage, then i will check if there are two projectiles then run damage @s 10

check if there are 3 projectiles then run damage @s 15

and so on

#

Just giving a little example of what I'm doing

#

I managed now to understand what you said, now I just have to somehow fit into what I'm doing

novel steeple
gritty musk
#

There isn’t with commands.

novel steeple
limpid prism
novel steeple
# limpid prism Yes

I want to make if i destroy one oak log destroy all tree but command didn't work

execute at @e [type=item] if block ~~-1~ dirt 0 if block ~~1~ log -1 if block ~~2~ log -1 run fill ~~1~ ~~31~ air 0 destroy

limpid prism
rain lance
limpid prism
#

Because I’m pretty sure it works with fake players too

mild rose
#

You can't access the tags of offline layers right?

trim zenith
#

Yes

fallen steppe
#

Hey @buoyant kernel , this isn't a showcase channel

#

If you're wanting to showcase something you've made, you can upload the gif/video/images along with a short description in a #1046947779118895114 post

buoyant kernel
#

Oh my bad, sorry

fallen steppe
#

All good :)

drowsy ridge
#

I have been messing around with the new execute command, but I cannot get it to work when I ask for specific block states. Like with a cauldron, I specified (which works with setblock or fill) a cauldron full with powdered snow (["cauldron_liquid":"powder_snow", "fill_level":6]). Is it impossible to ask for blocks with specific block states within the execute command, or is the syntax different?

trim zenith
#
execute if block ~ ~ ~ cauldron ["cauldron_liquid": "powder_snow", "fill_level": 6] run <command>
``` ?
drowsy ridge
limpid prism
#

Maybe try 1

#

Or any other number

trim zenith
#

Maybe try without fill_level

drowsy ridge
mystic apex
#

If you don't run the command it can't fail

drowsy ridge
trim zenith
#

Huh, mine perfectly fine

limpid prism
limpid prism
trim zenith
#

No really

limpid prism
#

Unless they changed it

#

Doubt it tho

trim zenith
#

Nvm, you need to set all block state

drowsy ridge
trim zenith
#

Ig for now, you need to include all block state

limpid prism
#

Like if block. Unless block. Testforblock

#

Also have you tried all levels yet or

drowsy ridge
# limpid prism Also have you tried all levels yet or

Pretty much. However, it seems to work now. I might have assumed that I used all block states while I never did. Man I always make stupid mistakes. Thank you very much for making me realise that I am stupid (this is genuine, I am not joking).

analog slate
#

anyone know why this isnt working for me in the animation_controller pls ping /fill ~1~~1 ~-1~~-1 air [] replace minecraft:light_block ["block_light_level": 15]

mystic apex
#

Encourage it to work

fast dust
#

How do I run a command for all entities on my line?

limpid prism
limpid prism
fast dust
#

sight

fast dust
analog slate
#

I have the right version for the manifest filr

analog slate
#

No, just made it

analog slate
#

Nvm I figured out the problem...

#

Don't know why I forgot how to format special characters on json

tiny cairn
#

How do I use hasitem to detect an empty main hand slot

#

I tried [hasitem={item=air,location=slot.weapon.mainhand}]

mystic apex
#

You have to use janky tactics

inner mason
#

Is this for bedrock?

tiny cairn
inner mason
#

ok

tiny cairn
inner mason
#

So how do I fricking connect two command blocks and make then both actually trigger???

mystic apex
# tiny cairn Like what

Like filling the players inventory with an item and detecting that as a free spot. (Then you clear the items after)

#

Like that

tiny cairn
#

Is there any other way to do it

twilit forge
#

anybody know a way to make players stop flying immediately once mayfly is disabled for them? It only seems to affect them once they stopped flying

mystic apex
cinder spear
#

hi there, is it possible to test if the player score is null? nvm... I fount it, but now I m trying to use this command inside a NPC to open another NPC screen. Running the command normally works fine:
/execute as @a unless entity @s[scores={q_000_postman=-2147483648..}] run dialogue open @e[type=awp:system_npc,c=1] @s npc_boat_no_member_1

But when using it inside a NPC nothing happens:
/execute as @initiator unless entity @initiator[scores={q_000_postman=-2147483648..}] run dialogue open @s @initiator npc_boat_no_member_1

Is there any limitation on the usages of the execute commands from a NPC?

limpid prism
#

The fix to this is to just tag @initiator at the beginning of the command and using the tag to select the initiator

#

Remember to also remove the tag afterwards

mystic apex
limpid prism
#

Ex:

tag @initiator add Initiator
execute as @a[tag=Initiator] run tellraw @a[tag=Initiator] {“rawtext”:[{“text”:”You are the initiator of this command chain”}]}
tag @a[tag=Initiator] remove Initiator
cinder spear
#

good idea, will try it, thx

cinder spear
#

it worked, thx again!
/tag @initiator add Initiator",` /execute as @s unless entity @initiator[scores={q_000_postman=-2147483648..}] run dialogue open @s @p[tag=Initiator,r=5] npc_boat_no_member_1 "/tag @initiator remove Initiator"

verbal oak
#

Is it a bad idea to have a long counter score for every player in my map, say I give them a 2 hours worth of ticks counter, that constantly goes down? Does it have any effect of performance?

mystic apex
#

Barely

upper swift
#

Anyone have a idea of how to make a stock system

dark bison
#

Can someone explain the inputpermission command?

limpid prism
limpid prism
#
Minecraft Wiki

Specify the operation for the player's permission status. inputpermission query [state: state] Queries the status of the specified privilege of the target. inputpermission set Modifies the status of the specified privilege of the target. targets: target: CommandSelector Specifies the owner of the permission. Must be a player name or a targe...

dark bison
#

Tnx

somber ivy
#

Can players' hearts be modified with commands?

gritty musk
#

health_boost effect is the closest thing

lusty sable
#

Its posible to use rawtext in th name of a mob?

limpid prism
#

{“selector”:”@e[family=mob]”}

#

Just replace @e[family=mob] with your selection sequence

lusty sable
#

No, example: /summon armor_stand {"rawtext":[{"text":"h"}]}

limpid prism
#

As for stuff like numerical values not unless you have like hundreds of thousands of command blocks for each possible name

#

If you’re looking to make each armorstand summoned unique

#

Use an ID system

lusty sable
#

What I want is to appear an armor_stand with my name or anyone's name without the need to add the name by hand.

limpid prism
#

Well you could do it with commands

#

It would just require hundreds of thousands of command blocks

glass wave
#

is there any chance that i can store peoples inventory?

#

Becuz while switching the skyblock to any game the skyblock items are coming to that game

#

@limpid prism

limpid prism
glass wave
#

no

#

again if you go to skyblock their items should come back

#

any solutions?

limpid prism
#

And then give it back to them on reconnect

#

Simple

lusty sable
glass wave
#

just i need command can you give

limpid prism
#

In correlation to a tag

#

Or something

#

Then just summon based on a tag

limpid prism
#

I gave you what you need to do

#

If you don’t know how to make commands then learn them by reading

#

Otherwise just begging people to give you all the commands is just putting yourself into a loop of begging and then begging again

lusty sable
lusty sable
limpid prism
lusty sable
#

No

haughty laurel
#

probably a dumb question but how do I enable the new execute in behavior packs, I changed the min game version to 1.19.70 and it doesnt seem to work

tawdry rover
haughty laurel
#

entity events

tawdry rover
haughty laurel
tawdry rover
haughty laurel
#

I have all the experiments on

tawdry rover
haughty laurel
#

no, except for unexpected syntax error for the command

tawdry rover
#

What does it say?

haughty laurel
#

Unexpected "@s": at "xecute as >>@s<< at @s run"

tawdry rover
#

Oh and would you mind sending your manifest?

haughty laurel
#
{
    "format_version": 1,
    "header": {
        "description": "aaaSimple Guns v1 (Development Pack)",
        "name": "!!aaa§e§lSimple Guns v1! [BP] (Development Pack)",
        "uuid": "6cf2b13d-e972-4bb2-a6c8-62322e5725a0",
        "version": [ 1, 0, 0 ],
        "min_engine_version": [ 1, 19, 70 ]
    },
    "modules": [
        {
            "description": "Addon by Redstoneweewee",
            "type": "data",
            "uuid": "8cfff350-9ca6-44c5-95b1-12a233da0aa9",
            "version": [ 1, 0, 0 ]
        }
    ]
}
tawdry rover
#

Try changing your format_version to 2

#

Version 1 is not supported

haughty laurel
#

ah I see, thanks

tawdry rover
#

No Problem

civic prawn
#

Idk if it's possible with commands but does anyone know how to make a cps tester

tame forge
#

just flex here guys

/scriptevent con:give minecraft:iron_axe{Lore:["Lore1","Lore2 but longer right?", "Yep this is 3rd one but not that big as right?"], NameTag:"My Special NameTag with some under informations", Enchantments:[{lvl:5,id:"sharpness"},{lvl:5,id:"efficiency"},{lvl:5,id:"fortune"}], damage: "95%"}
coarse shore
#

It's like NBT or loot tables with extra steps.

#

Loot tables really need an upgrade though.

trim zenith
#

Also, keepOnDeath: 1b

coarse shore
#

Or just Name instead on NameTag.

tame forge
tame forge
coarse shore
#

I think one of the biggest mistakes about NBT is that it doesn't use snake_case. The casing is all over the place. 😅

#

That's just personal preference though.

tame forge
#

ya

fast dust
#

how to use command or execute to detect if you have a specific block where I'm looking? if you run a command

limpid prism
# fast dust how to use command or execute to detect if you have a specific block where I'm l...

Introduction

This method describes how to check whether the player / an entity is looking at something specific / predetermined, like a specific entity or a specific position! — Thanks to the new execute syntax, this can be achieved in a single, long /execute command.

Note; if you're looking for a more general approach or if you wish to look-detect block types refer to #1041803976749891684

ă…€
We'll use the following subcommands to achieve our goal:

as @a at @s
to modify the execution entity and position.

anchored eyes
to move the execution position up to the players eyes.

facing <entity / coordinates>
to change the execution rotation to be facing our object / entity of desire.

positioned ^ ^ ^1
to move 1 block in the direction of the object.

anchored feet
to move the anchor back down to the players feet (due to a bug in the game which would otherwise apply the eye height modification with each position change, which we don't want).

rotated as @s
to change the execution rotation back to be the same as the executing player.

positioned ^ ^ ^-1
to move 1 block in the opposite direction of where the player is facing.

if entity @s[r=0.1]
to check whether after this back and forth we've arrived roughly back at the players position. To increase / decrease the tolerance for what is considered "close enough", change the distance parameter (it needs to be between 0 and 2, because 2 basically means "you can look in the opposite direction and it's still close enough. So realistically you want to most likely stay well below 1). To calculate the exact viewing cone angle, see below.

ă…€
So, to bring it all together, the full command is as follows:

:copy: Copy:

execute as @a at @s anchored eyes facing <entity / coordinates> anchored feet positioned ^ ^ ^1 rotated as @s positioned ^ ^ ^-1 if entity @s[r=0.1] run
#

ă…€
ă…€

Examples

Run a 'say hello cow' command when looking at the eyes of the closest cow with the tag "target"

execute as @a at @s anchored eyes facing entity @e[type=cow,tag=target,c=1] eyes anchored feet positioned ^ ^ ^1 rotated as @s positioned ^ ^ ^-1 if entity @s[r=0.1] run say hello cow!

Run a 'say hello block' when looking at the position "10 20 30"

execute as @a at @s anchored eyes facing 10 20 30 anchored feet positioned ^ ^ ^1 rotated as @s positioned ^ ^ ^-1 if entity @s[r=0.1] run say hello block

ă…€

Calculate Viewing Angle

To approximate the distance/radius you want to use based on your viewing angle, you can use the following formula, where α is the angle that you want this method to trigger inside of, left and right of the target:

r = 2 * sin ( α / 2 )

or, the inverse to calculate what viewing angle a certain radius / distance (r) value will give you:

α = sin^(-1) (r / 2) * 2

Note; depending on your calculator you need to convert from radians to degrees.

With the above calculation the example value of r=0.1 / distance=..0.1 leaves us with roughly a 6° angle by which we can miss the exact target in either direction and still have it considered "close enough."

fast dust
limpid prism
limpid prism
# fast dust at?

Changes where the command runs, setting the command's position, rotation, and dimension context to the entity:

/execute at <origin: target> -> execute

This does not change the executor of the command, so @s will remain as whoever was targeted last.

If multiple targets are specified then a command is ran once for each target, setting the position, rotation, and dimension context to each target.

limpid prism
fiery beacon
#

Can someone show me an example of using /clear username minecraft:air dataHere 12 the data thing?

limpid prism
cinder spear
#

hi there, I m trying to run a function that executes titleraw, the problem is that I can see the titleraw being executed but without text at all, the function only have this lines:

execute as @s[tag=temple_citzen1] run tp @s 2402 70 -1438 facing 2402 70 -1437
execute as @s[tag=temple_citzen1] run titleraw @s actionbar {"rawtext":[{"text":"§6Text to be sent §c§lCity!"}]}
execute as @s[tag=temple_citzen1] run tag @s remove temple_citzen1```
and this is how the titleraw shows up ingame:
is there anything that I m missing to use it on a function?

EDIT: so I figure out that the .mcfunction files do not accept special characters, so I cannot add colors to the text I will print, any workaround for this?
limpid prism
cinder spear
#

I got it solved, I had to change the encoding to UTF-8 on my editor, now it works

rain pelican
#

Why does this work in the new execute format type
/execute as @s at @s if block ~ ~ ~ leaves run say hi
but this doesnt in the old execute format type
/execute @s ~ ~ ~ detect ~ ~ ~ minecraft:leaves 0 tp @s @p

mild rose
#

do you link it to a script and pass the "NBT' as arguments?

rain pelican
tame forge
#

i am working on it 🙃

trim zenith
limpid prism
rain pelican
limpid prism
#

You also detected ~~~ meaning inside leaves not on leaves, are you inside leaves?

rain pelican
#

It works with any other block

#

Except leaves

limpid prism
rain pelican
#

Just placed on the ground.

civic prawn
#

How do I make a pickaxe only able to mine stone

limpid prism
# rain pelican Oak leaves

I downgraded mc and the following command worked for me:

execute THECRUMEBELER1 ~~~ detect ~~-.1~ leaves 0 say e

limpid prism
#

I can’t exactly get myself inside leaves without filling or pistons and stuff so I just did this

limpid prism
#

Is the hitbox of the entity actually contained entirely in that egg or is it somewhere else

rain pelican
#

Except

#

Leaves

barren gulch
#

is there a way to locally change water color without changing biome

#

I know fogs exist but that doesnt change the surface color

celest wing
#

does anyone know why the command does not work even if the scoreboard pinkDeaths is greater than purpleDeaths ?execute as @s if score @e[type=armor_stand,name=pink] pinkDeaths > @e[type=armor_stand,name=purple] purpleDeaths run function purple_win

lost phoenix
#

Is it possible to make a title with a number of the scoreboard points of some1? like if i have 4 points in a objective do a title command with that number

trim zenith
#
/execute as @a run titleraw @s actionbar {"rawtext": [{"text": "Scores: "}, {"score":{"name": "@s", "objective": "value"}]}
lost phoenix
#

doesn't works

mystic apex
#

Did you make the scoreboard?

lost phoenix
#

yes, mine is called money but when i change the name in the command doesn't works

limpid prism
lost phoenix
#

ooh, i see

#

thnaks btw

trim zenith
#

Oops, mistyped, sorry for that

lost phoenix
#

np

mild rose
#

Is there some better way to run as at some entity than as @s at @s

trim zenith
#

None that I know, but you doesn't need both always, you can use one of that in certain command and uses

mild rose
tawdry rover
celest wing
#

I just had to add a c=1 to the selectors and it worked.

tawdry rover
#

Ah worked it out I had to include a c=1

#

ah

#

yeah thanks

#

Its annoying that it doesn't give you an error

celest wing
tawdry rover
#

I thought i might have uncovered a bug :)

celest wing
#

I think we did, you could report it on the bug page

craggy knoll
#

How do I make a function using new execute?

limpid prism
#

If you also want block states the. You’ll need to use 1.19.70+

#

But they changed some stuff about block states in later updates

#

So you might just want to go the newest version

#

But formatting might be a bit confusing

#

Cause the api changes like every half a second for no reason

craggy knoll
#

How do I change the function version?

umbral blaze
#

manifest ig?

#

@craggy knoll

fallow cliff
tawdry rover
#

yep

lost phoenix
#

how do i make both titles commands show without deleting the 1st one?

#

is it possible with titleraw?

lusty sable
rain pelican
#

Didn't work it saus acasia

craggy knoll
#

I made this function to detect when the player dies, spawning a mob I created, but spawn more than one

#

can anyone help me to fix this

lusty sable
# craggy knoll can anyone help me to fix this

New syntax

tag @a add dead tag @e[type=player] remove dead execute at @a[tag=dead,tag=!still_dead] run summon pbmc:player_skeleton tag @a add still_dead tag @e[type=player] remove dead

Old syntax

tag @a add dead tag @e[type=player] remove dead execute @a[tag=dead,tag=!still_dead] ~~~ summon pbmc:player_skeleton tag @a add still_dead tag @e[type=player] remove dead

green nymph
craggy knoll
craggy knoll
#

I fixed the function. I used tags to only summon the skeleton if it has the tag and then add the tag to limit the amount

still phoenix
#

Anyone happen to know of a table with the potion data IDs. I need for a recipe and can't figure it out by going through all the command gives... I need potion of weakness

limpid prism
median gull
#

why is /gmc and /gms actually a command

limpid prism
craggy knoll
#

How do I detect if there is no armor equipped on the player, using [hasitem={}]?

coarse shore
#

Use quantity=0.

graceful nova
#

Is there a way to check if there is a specific item in a chest? I have tried looking at tutorials on YouTube, but they are all for Java or from before the time when the /execute command was changed. It keeps giving me a syntax error message.

gritty musk
#

testforblocks is the most similar you can get

limpid prism
#

Testforblocks is going to get removed so probably don’t use that

graceful nova
#

I’ve tried /execute if blocks, that’s the tutorials I watched but they didn’t work. It may work with something other than a chest though


gritty musk
#

From where you got testforblocks gonna get removed ?

trim zenith
#

Not remove, but deprecated

gritty musk
#

ah

exotic apex
#

whats it being switched over to

#

or the alternative for it

limpid prism
exotic apex
#

o

limpid prism
#

execute if blocks

exotic apex
#

thanks

limpid prism
#

For some reason people don’t know that “run” isn’t an essential part of execute

#

Thought I don’t see why you wouldn’t use it

limpid prism
#

I should say “run” is optional*

#

It’s very much essential

exotic apex
#

Ah

coarse shore
# limpid prism Thought I don’t see why you wouldn’t use it

That behavior isn't as useful on Bedrock since there's no /execute store.
When we discussed this with the Java devs, the idea was to store the result of /execute if|unless or other subcommands. The only limitation is that it would take the result of the last subcommand.

For example, here's a way to get the total number of players in a single command:

execute store result score player_count temp if entity @a
#

At least, I believe that was the intention. Its been years.

limpid prism
coarse shore
#

Mostly with run being optional.

#

It used to be required back when /execute was being reworked on Java.

limpid prism
#

I mean yeah but this is bedrock

coarse shore
#

I know, but they ported the same behavior.

#

I could see it being useful in command blocks though.

limpid prism
#

I just don’t really understand what you’re responding to and what’s your point

#

Because “run” is very much essential in like 99.99% of execute commands

coarse shore
#

I'm trying to explain why it exists because we're partially responsible for this behavior.

limpid prism
#

Because “run” is very much useful after execute

#

Otherwise it would just be a weird way to rewrite testfor and testforblocks

coarse shore
#

I think we're both misunderstanding each other.

limpid prism
#

Seems so

coarse shore
#

As I said, I'm just trying to explain why that specific behavior exists. In most cases, run is necessary.

limpid prism
#

Oh I see

#

Yeah I kind of misread “behavior” as something else

#

Honestly I should’ve probably known what you were talking about considering I used to do java commands

coarse shore
#

It's fine. At least the confusion seems to be resolved. 😅

exotic apex
#

is it possible

#

to make crates

#

without using armor stands

topaz venture
#

like loot crates?

topaz venture
exotic apex
#

just like no entity using scoreboard

topaz venture
#

well you can use fake players then

#

just randomise a scoreboard value and then whatever that value is give the player a predefined packet

lusty sable
# exotic apex without using armor stands

Use structure blocks

execute if blocks ~~~ ~~~ ~~~ all run scoreboard randomCrate random 1 10
execute if scoreboard randomCrate random matches 1 run structure load "structure name" ~~~
execute if scoreboard randomCrate random matches 2 run structure load "structure name" ~~~
...
exotic apex
#

o

limpid prism
#

There’s a toxic rain command???

limpid prism
#

Thatsssss not how it works, rain is purely a visual particle it doesn’t have a hitbox so you can’t detect if it hits the player only when there is rain

#

Though I only know how to do it in scripting, not sure about commands

topaz venture
#

okay but how do you detect rain?

#

oh how do you detect changes?

#

and you prob can with daylight sensors since they can sense if rain is there because it inflicts the daylight

#

ah trueeeee

#

ah i mean it sounds smart with what we have

#

haha

fallow cliff
#

could detect fire being extinguished

fiery beacon
#

Is there a syntax error?

execute as @a[scores={tpa=${tpaId}, name=!${sender.name}}] run tp @s ${sender.name}
topaz venture
#

yeah it seems you put the name argument in the scores dictionary change it too

execute as @a[scores={tpa=${tpaId}}, name=!${sender.name}] run tp @s ${sender.name}
fiery beacon
#

Ohh, Thanks! I never would have caught it

topaz venture
dense herald
#

can mcfunctions not use execute?

#

they don't load or reload if I add an execute command (execute as @e[r=16] at @s run tp @s ~ ~ ~1)

mystic apex
#

What's your min_engine_version? It needs to be 1.19.50 or higher.

still phoenix
#

who does the r=16 refer too? the caller of the function?

#

If anything is off in the mcfunction, it will not load

#

is that the only thing in there?

dense herald
verbal oak
#

with the /camera command how would you rotate the camera so that its looking back at you,so kinda like third_person_front but looking back at you no matter what direction you are looking?

dense herald
#

execute if block ~ ~-2 ~ piston ["facing_direction":0] if blocks ~8 ~-8 ~8 ~-8 ~-8 ~-8 ~-8 ~-9 ~-8 all as @e[x=~-8,dx=15,y=~-8,dy=15,z=~-8,dz=15] at @s run tp @s ~ ~-1 ~

dense herald
#

nvm

#

i am moving a command block with clone and telling it to move me with tp

#

and it was cloning itself before it was moving me

#

so it didn't move me

#

is there any way to remove the "you have been teleported to: ..." notification when using tp?

#

like gamerule commandblockoutput false but for tp notifications

#

nvm again. it's gamerule sendcommandfeedback

meager dune
#

what command to start raid in a village

wide ruin
#

execute as @s[scores={commandblocks=1..}] positioned as @s run function checks/optional/nocommandblocks

#

Anyone know why this is reporting an error with as on 1.20.0?

limpid prism
wide ruin
verbal oak
#

For some reason when I do camera commands like this in a function file, it doesnt like ease / move slowly, it just instantly puts my camera there, but if i were to run this in a cmd block, it'd ease properly

tawdry rover
verbal oak
#

so i dont think it can run every tick

craggy knoll
topaz venture
limpid prism
# wide ruin BDS

“positioned” argument in execute is broken on realms

#

Also just use “at @s”

wide ruin
wide ruin
limpid prism
meager dune
#

which command starts raid on a village

craggy knoll
#

Put the bad omen effect

verbal oak
#

I think theres a weird bug, where if you have a /camera command running while the player is constantly being teleported to themselves/in the same spot to prevent them moving. Any 'ease' animation thing with the /camera command just wont play, itll basically skip the slow moving camera thing... idk why this happens but is there a reason for this?

next nebula
#

why when running
/execute as @a if block ~ ~-1 ~ air run effect @s jump_boost 1 2 true
in chat it work but when putting it in a command block don't work
failed to execute 'effect' as null
changing "at" with "as" give
excute subcommand if block test failed

still phoenix
next nebula
#

lol i just found the solution from chatgpt

#

thanks anyway

next nebula
#

is this true?

inland grotto
#

@s has trouble In command blocks

next nebula
#

sorry but I didn't understand what you mean

next nebula
next nebula
topaz venture
next nebula
topaz venture
rain pelican
#

This command works
/execute as @p[tag=hole_one,tag=!hole_two] run tellraw @a {"rawtext":[{"text":"§dGo to hole two"}]}
But when I use the old syntax in an animation controller it doesnt:
"execute @p[tag=hole_one,tag=!hole_two] ~ ~ ~ tellraw @a {\"rawtext\":[{\"text\":\"§dGo to hole two\"}]}"
Anyone knows whats wrong?

exotic apex
#

old syntax for execute doesnt work

#

bc of the newer execute syntax

topaz venture
exotic apex
#

question how optimized are mcfunctions

topaz venture
exotic apex
#

speed

#

less computation

exotic apex
#

e

topaz venture
#

and compared to what exactly? because it should be more optimised then command blocks

rain pelican
exotic apex
#

Ohh

rain pelican
exotic apex
rain pelican
exotic apex
#

It should work

#

But, I'm not familiar with the animation controller thing

#

"/execute @p[tag=hole_one,tag=!hole_two] ~ ~ ~ /tellraw @a {\"rawtext\":[{\"text\":\"§dGo to hole two\"}]}"

#

maybe

thick rampart
#

or just double \ it.

{\\\"rawtext\\\":[{\\\"text\\\":\\\"§dGo to hole two\\\"}]}```
mystic apex
#

No

thick rampart
#

Well the command itself isn't wrong either, so it's probably the animation controller setup.

rain lance
#

Why does positioned break if its not the first in the chain /execute???

thick rampart
#

is it on the realm?

limpid prism
rain lance
rain lance
glass wave
#

titleraw @a actionbar {"rawtext":[{"text":" -=-§l‱§aSky§bGen§l§r‱-=-"},{"text":"\n§dName§r : §a"},{"selector":"*"},{"text":"\n§dBalance§r : §a"},{"score":{"name":"*","objective":"money"},{"text":"\n§dBank§r : §a"},{score":{"name":"*","objective":"bank"}]}
What is wrong in this?

vapid sable
#

Whats the new command for tippet arrows????

vapid sable
limpid prism
analog niche
#

Is it possible to identify if you are in the first or third person?

limpid prism
#

But currently the only way is to forcefully set their perspective using /camera to know for sure since then you would be able to control it.

pine mesa
#

Is there a way to /give armor w/ different trims etc.?

I assume there is I just have no clue where to find these json component things.

vapid sable
trim zenith
#

Script even can't detect if you're on FPP or TPP

tame forge
trim zenith
#

First Person Perspective and Third Person Perspective

tame forge
#

oh

#

xd

#

i thought ist some kind of net protocols

trim zenith
#

xd, I misspell it

analog niche
#

tick.json no longer works in 1.20?

vapid sable
#

Huh

vapid sable
#

I found a video on the game source and it has game mode

still phoenix
analog niche
#

mine doesn't work 😩

trim zenith
#

Script API has Game mode too

exotic apex
#
/execute as @e[c=1,type=item,name=Coal] if entity @e[type=item,name="Iron Ore"] run /kill @e[c=1,type=item,name="Iron Ore"]
#

Is this unoptimized

fallen steppe
#

that's a lot of @e checks in one command

#

how often will it be run?

#

also remember, for every @e a puppy dies

umbral blaze
limpid prism
fallen steppe
#

Run it 😎

subtle oasis
#

what can /camera do rn?

regal bloom
#

Hi , Does anyone know why my scoreboard appears next to my name? how can i hide it?

mystic apex
#
/scoreboard objectives setdisplay belowname
dense herald
#

is there a reason /ability doesn't work for me even though i'm oped in my single player world?

topaz venture
#

does /ability pop up as an autocompletion in chat?

mystic apex
dense herald
#

Thank you!

dense herald
jade storm
#

Is there a way to /summon firework but include NBT data?

#

Structure Block doesn't store firework data at all

dense herald
limpid prism
fallen steppe
#

Sometimes there are other logical ways to go about a problem that's more optimal

limpid prism
dense herald
#

i guess I can just go with it at see if it lags too much

still phoenix
#

That woujld be family=!player

trail glade
#

is there an accurate way to make you replace the blocks where you're looking at and not air with a function of execute commands

#

from a static position

polar shardBOT
#
angel136381

Does anyone have a jump detection system? Try this, however, if a person stands on the edge of the block and gradually moves to the center, continue giving the tag.

lusty sable
#
execute as @a at @s if block ~~-1~ air if block ~~-1~0.26 air if block ~~-1~-0.26 air if block ~0.26~-1~ air if block ~-0.26~-1~ air run tag @s add jump
execute as @a at @s unless block ~~-1~ air unless block ~~-1~0.26 air unless block ~~-1~-0.26 air unless block ~0.26~-1~ air unless block ~-0.26~-1~ air run tag @s remove jump
dense herald
#

Is there a way to set something on fire with commands other than setblocking it with fire?

dense herald
jade storm
#

cause = fire?

#

Well, it wont make the player take more damage

dense herald
#

it damages them, but it doens't light them on fire

jade storm
#

Yep

dense herald
#

I just want to light them on fire

jade storm
#
/setblock ~ ~1 ~ air```
#

Something like this?

dense herald
#

that might work

#

I'll make the air into a fill to catch entity movement

#

there's no way other than setblock though?

jade storm
#

execute at @a[tag=target] to catch them lol

jade storm
#

There's a dumb way to do it without setblock but its very unreliable

#

And not really multiplayer friendly

#

Without scripting

jade storm
#

Spawn an invisble zombie near the targer

#

/replaceitem to make the zombie hold a sword

#

/enchant to give the sword fire aspect

#

/damage and the source is from the zombie

#

then kill the zombie + sword

dense herald
#

lmao

jade storm
#

Like I said, not really a clean method

dense herald
#

at that point I can just make the entity I'm running the command from attack it

#

that's funny though

#

it would be even funnier if it wasn't invisible

jade storm
#

💀

dense herald
#

thanks for the help!

jade storm
#

DISCLAIMER!!!!!

#

@dense herald

#

This method doesn't work

#

I just tested it

#

LOL

#

Time to report this as a bug. /damage doesn't respect entity's item enchantment

dense herald
#

i tried it too

#

i got it to work by just having the entity attack

#

I'm about to test it out with area attacks

grand wigeon
#

Is it possible to use the new execute in the animation controller bp or just the old one?

dense herald
#

Area attack doesn't work with equiped items

still phoenix
verbal oak
#

Why does the /camera command with the 'ease' thing not work if the player is being teleported to a certain spot.

Say I want the player to stand still on the spot and do a cutscene around them with the camera command, it doesnt like 'slide' across with the ease thing, it kinda just teleports/instantly switches to the coords set for the camera...?

limpid prism
#

Because I don’t think you know what the “ease” part of /camera actually does

verbal oak
#

this is something like what some of the cutscenes look like

#

this works completely fine for everyone, but people that are being constantly teleported to the same spot

limpid prism
verbal oak
#

thats a command?

limpid prism
#

Yeah

verbal oak
#

oh- il try that ig

#

can u turn it off for 1 person specifically

limpid prism
#

It allows for you to disable their movement and I think camera movement too

verbal oak
#

and back on after

limpid prism
#

Yeah

verbal oak
#

ok ig il try it

lost phoenix
#

why yhis is not working?

#

"execute if block ~ ~ ~ k:puerta_tenida_azul [ 'stylax:facing_direction' : 0 ] run setblock ~ ~ ~ k:puerta_tenida_azul [ 'stylax:facing_direction' : 3]"

dusky vortex
#

I don't understand new execute
"run_command": {
"command": "/execute as @a at @s if entity @e[type=item,name=Cobblestone,c=1,r=6] run function drop",
"target": "self"

still phoenix
lost phoenix
#

?

still phoenix
still phoenix
# lost phoenix ?

How is your cmd not working,.,, error or not finding the block. The ~ ~ ~ position is at the knees of a player, is the block supposed to be there? Is it a bush or something?

#

oh and also, there is no reference point.. if that command was not ran by a mob, then ~ ~ ~ is referring to spawn

dense herald
#

Can someone help me with the syntax on this selector?

#

I want it to target regular arrows only, not effect arrows

#

@p[r=2,hasitem={item=arrow,location=slot.hotbar,quantity=1..}]

trim zenith
still phoenix
dense herald
#

it is 0

#

do you mean like @p[r=2,hasitem={item=arrow,data=0,location=slot.hotbar,quantity=1..}]?

#

ty!

#

I didn't see that there was a data part

still phoenix
#

yea, but it was broken for a while... may be fixed.. one way know for sure is to try out... even with other stuff not zero to see

dense herald
#

it works as far as I can tell

dense herald
still phoenix
dense herald
#

thanks!

dusky vortex
still phoenix
#

manifest? and take out the slash.. not needed for run_command and may cause error @dusky vortex

#

Only way to get that error is for something to not be 1.19.50+ That is what can recognize the new execute.

dusky vortex
#

Ok Ill try

dusky vortex
exotic apex
#

This cmd
when my friend rejoins
Redstone doesnt turn off from the cmd block source
so it wont add a score

topaz venture
#

if its in a repeating always active command block it will constantly output the amount of players in redstone strength

exotic apex
#

how can I make it detect

#

if a player joins

topaz venture
#

if you want joining specifacly you'd need to do

/execute as @a run scoreboard players add playercount objective 1

every tick, and just see if the value has decreased if it has decreased somebody must have left

if you want a simpler version you could attach an observer to redstone dust of /testfor @a
but that looks for changes in player count and not joinage

exotic apex
#

thanks

topaz venture
#

np

median gull
#

why doesn't this command work?

/execute at @e[type=thrown_trident] positioned ~~~ run execute at @p positioned ~~~ run summon creeper ^^^4 ~~ minecraft:start_exploding_forced "§c§lBob the Bomb"```
jade storm
#

U didn't declare what entity is execute as so @p isn't valid

#

Wait

#

It works just fine

#

I've just tested it

still phoenix
#

Why does a lot of it seem redundant?

median gull
jade storm
jade storm
#

/execute if entity @e[type=thrown_trident] at @a run summon creeper ^ ^ ^4 ~ ~ minecraft:start_exploding_forced "§c§lBob the Bomb"

#

This will work too

#

This will make it so that any player get near the thrown trident (4 block radius) will get a creeper spawn right in front of them

median gull
#

ok ill try it

gritty musk
#

Is there anyway I can 'lock' a scoreboard to net let it go to negative numbers under any circumstances?
Setting the scores under ..-1 back to 0 on tick.json is too slow for my needs

topaz venture
median gull
still phoenix
#

May help if you explain what you are trying to do because two at @a are not making sense. Are you trying to run this command on everyone for everyone within 3 blocks of them? At least change 1st at @a to as @a at @s.... but the 2nd one is gonna catch the person running the command... that is why best to explain what you are trying to do, so the solution can be given which may be totally different

median gull
still phoenix
#

execute as @a at @s if block ~ ~1 ~ chain......

#

by why the r=3 from before...?? what did that have to do with it?

#

if that does not work try
execute as @a at @s run execute if block ~ ~1 ~ chain......

lusty sable
#

Help, how acceso to chest folder on loot_tables, i try it but make error in chests "/" bastion_teasure
/loot spawn ~ ~ ~ loot chests/bastion_teasure chest

trim zenith
#

Wrap the chest/bastion_treasure with quotes (")

#
/loot spawn ~ ~ ~ loot "chests/bastion_teasure" chest
lusty sable
#

I see, thanks

fallen steppe
jade storm
#

Is there a way to convert scoreboard to number to use in other command?

#

like /tp or /fill /setblock

#

I made something using ScriptApi and want to port it using Addon-only

#

But I cant do calculation or variable storage using Addon

trim zenith
#

Isn't script api part of addon, wdym?

gritty musk
jade storm
cosmic wave
#

How do you prevent a player from moving using commands? Slowness 255 could do this but players can still jump.

#

A looping tp command makes me only face one direction

trim zenith
cosmic wave
cosmic wave
trim zenith
#

3 for current location, last 2 for current rotation

cosmic wave
#

Ah ok

trim zenith
#

Idk if it's works, I forgot

cosmic wave
#

Gon try it rn

cosmic wave
jade storm
#

/inputpermission set @s movement disabled

#

Yes?

cosmic wave
#

I need to keep an entity in place. How to do it with commands.

jade storm
#

/inputpermission set @s movement disabled

#

Entity?

#

Not player?

#

Okay

cosmic wave
#

Ok I'll try your solution, rq

jade storm
#

For entity then just remove its AI

cosmic wave
#

With commands I mean

jade storm
#

Oh...

#

Not with cmd alone

cosmic wave
#

Ah ok

jade storm
#

/inputpermission set @s camera disabled

#

Change the "disabled" to "enabled" so they can move around lol

cosmic wave
#

This works with tag selector too right?

jade storm
#

I dont see why not?

#

@a[selector]

cosmic wave
#

Ok then. Thanks for answering!

jade storm
#

U welcome lol

#

For some reason, I use too much "lol" though lol

trim zenith
#

lol

cosmic wave
#

lol

#

lawl

jade storm
#

STOP

cosmic wave
#

lEL

jade storm
#

💀

cinder spear
#

hi there, why this command is not working? it return error/execute at @a positioned ^^^1 run tag @p add testany idea?

#

and what is the difference between ^^^ and ~~~?

gritty musk
#

^ is for facing and ~ is for location

gritty musk
cinder spear
#
            1,
            19,
            70```which version should I use?
gritty musk
#

I feel like that one should work
 but I recommend you using latest one anyway, 1.20.0

pine mesa
#

What is the error?

#

The only error I could see happening is if you run the command twice, the player you are targeting will already have the tag and thus fails to give the tag.

cinder spear
#

syntax error

pine mesa
#

try ^ ^ ^1 instead.

gritty musk
#

It should work, the syntax is correct

pine mesa
#

Though it should work^

cinder spear
#

nothing... when I type it doesnt give the option to use ** ^**, only the ~, is it normal?

gritty musk
#

No is not

#

are you in the latest game version?

cinder spear
gritty musk
#

ah I think thats normal

pine mesa
#

I don't believe it will autcomplete ^

cinder spear
#

yes on 1.20.1

gritty musk
#

May you try restarting the game?

pine mesa
#

try /execute as @a positioned ^^^1 run tag @p add test

gritty musk
#

I ran your command on my end and I received no errors, got the tag

#

And I directly copied and pasted it

cinder spear
gritty musk
#

I really have no explanation, since it works just fine on my end

cinder spear
gritty musk
#

Well, an alternative could be;
execute as <target run tp @e[type=armor_stand,tag=dummy] ^ ^ ^3
execute as @e[tag=dummy] run tag @e[r=1.5] add Target

#

Not sure about an alternative for removing it though

lusty sable
#

I need help, need test entity in ^^^1 anchored eyes but i cant use positioned, its bugged, something know other way to make test?
execute as Angel136381 at @s anchored eyes positioned ^^^1 unless entity @e[name=cabezaTest,r=0.01] run title @a actionbar NO

fallow cliff
fallow cliff
lusty sable
#

no, the problem with servers >>positioned ^^^1<< error syntaxis

fallow cliff
#

Afaik.. positioned should accept both relative & local coordinates (just not in combination)

cosmic wave
#

How to emulate pauses in functions?

lusty sable
fallow cliff
cosmic wave
cosmic wave
#

Ok Im gonna make a post

rough raven
#

is there any way to change the name of an armor stand in a scoreboard list?

I know it is a unique identifier that displays in the list but would love a way to change the name...

topaz venture
rough raven
topaz venture
#

not to be confused with simulated players

rough raven
#

I have been not paying attention

topaz venture
#

fake players are just a name which holds a value on a scoreboard

rough raven
#

How do you add a fake player

topaz venture
#

just use text instead of selectors

#

/scoreboard players set fakeplayername someobjective 10

rough raven
#

Thanks. Got it sorted for what i needed

karmic yoke
#

Which one is more efficient (not effecting performance)? Scoreboard or selectors

trim zenith
#

On what use case?

karmic yoke
#

I have a lot of commands that use the execute if entity @e[type=player, tag=thing]

#

but I'm wondering if I restructure my system to use scoreboards instead

#

execute if score

#

would it make the game perform better?

#

This is one of my controllers that I have

#

I have many more for different aspects... but it's all selector based reference

#

If I were to change these to scorebased, just curious if it would help performance

topaz venture
karmic yoke
#

good call, made the changes, thanks!

topaz venture
karmic yoke
#
titleraw @s title {"rawtext":[{"text":"§eStat Adjusted"}]}```
#

I have these two titleraws

#

How come the score is not being shown?

topaz venture
#

because you're not using a score part anywhere

#

you just copied that of a website right?

still phoenix
#

same format as titleraw, but shows how to add the score

karmic yoke
#

I was using one of the generators

#

but this fixed it, thanks

karmic yoke
#

execute as @a[scores={short_tick_timer=19..}] at @s run function controllers/controller_effect

#

execute as @a if score @s short_tick_timer matches 19.. at @s run function controllers/controller_effect

#

Both of these should do the same thing. Which one is more "standard" or optimized though

topaz venture
#

both are the same you wont notice any difference, and you need to stop worrying about optimising because those changes are less than 0.00000001 miliseconds

karmic yoke
#

that's what I was looking for, if it was worth it or not. didn't know it was that insignificant.

still phoenix
#

I prefer shorter, correct and to the point.

limpid prism
limpid prism
#

However at that point the delay is extremely insignificant though no actual research has been done on it

topaz venture
limpid prism
#

You said the delay is less than 10 nanoseconds. Although most modern computers are able to carry out an instruction in around .33 of a nanosecond with things like multi core processing, that doesn’t mean a command in Minecraft will also run that fast. Heck, even an input such as from a keyboard or mouse takes a minimum of a few tenths of a millisecond to a few milliseconds. Just finding the files in order to execute the commands would take more than 10 nanoseconds

topaz venture
limpid prism
topaz venture
#

yeah but are you really gonna notice the difference betwenn 0.00000001ms and 0.0000001ms

dense herald
#

Can I tag an entity that gets shot by a player arrow?

#

or rename it

#

any target selectable property

topaz venture
#

and you can only track arrows with inaccuracys

karmic yoke
#

Maybe the difference is important to me đŸ€·đŸŒâ€â™‚ïž

thin lodge
#

what is the command to make the animation of "eating grass" of the sheep?

fallen steppe
#

should be animation.sheep.grazing

#

yes that works, and yes it looks terrifying

#

well uh

gritty musk
#

Enderman but is a player

topaz venture
jade storm
#

Using BPAC

#

When on_hit run event to trigger BPAC, then BPAC will run cmd /tag @e[r=....]

next nebula
#

we can use
execute as @a at @s unless block x y z block1 unless block ~ ~-1 ~ block2 run ...
to check if non of those blocks is in x y z
can we check if only one of the tow blocks is in that position?
if block1 or if block2 do...

#

with one command

pine mesa
# next nebula with one command

I don't believe you can but try something like this:

scoreboard players set @a temp 1
execute as @a at @s unless block x y z block1 unless block ~ ~-1 ~ block2 run scoreboard players set @s temp 0
execute as @a[scores={temp=1} run ...
cosmic wave
jade storm
#

Check the doc

cosmic wave
#

I see. Okay

thin lodge
dense herald
#

I don't think I got any behavior components working. players only work with a few regular components

jade storm
#

???

#

You were asking about arrow???

novel steeple
topaz venture
novel steeple
#

I think it works

topaz venture
novel steeple
#

No

marsh bolt
#

what does memory and disk do in structure blocks?

#

and also the structure command

pine mesa
#

There's also a third option which is exporting it to a BP and being able to load with a function or just the /structure load command

marsh bolt
#

alright thanks

left valley
#

How do I test for netherite armor with the silence armor trim?

#

(Doing this in .mcfunction)

limpid prism
left valley
#

Armor slot

limpid prism
#

Because if you’re asking about on the player you should know that’s impossible

#

.

limpid prism
woven aspen
#

is there a way to execute a /fill command to break all blocks unless bedrock?

haughty laurel
left valley
#

How do I add a tag to a player past 1000 blocks from spawn?

haughty laurel
left valley
haughty laurel
karmic yoke
#

jigsaw blocks don't work

jade storm
#

1000 block will be really laggy if u used cmd

left valley
rough raven
#

Does testforblock x y z bed ["occupied_bit"=true/false]

Not work

#

I get an error for both true and false but when I remove the occupied state it works fine

limpid prism
rough raven
#

There are 3

limpid prism
rough raven
#

Is there a way to wild card

limpid prism
#

No

rough raven
#

Uggh

limpid prism
#

But there are defaults and it tells you them on the wiki

#

Just write them out

rough raven
#

Yeah... Looking for a clean way to check bed occupied in scripting api

#

And this doesn't look clean

limpid prism
rough raven
#

If you want to search a few blocks around the player you need to check directions, head foot, and blocks to check that 1 bit

#

So it is a lot to check

limpid prism
rough raven
#

Kinda.. but based upon player activity

#

I have the afk detector written

fleet zenith
#

why does the block execute the command only when the player is in the green glass blocks
command: execute as @e[y=~,dy=5,family=!knockback] at @e[y=~,dy=5,family=!knockback] run effect @s slow_falling 1 1 true
I want it to execute only when the player is above the block

still phoenix
fleet zenith
#

the event is run from the white block in the image but the y and dy detection is messed up

"run_command": {
  "target": "self",
  "command": [
    "gamerule sendcommandfeedback false",
    "execute as @e[r=1,y=~-1.25,dy=1,family=!knockback] run particle le:mob_particle ~ ~ ~",
    "execute as @e[r=1,y=~-1.25,dy=1,family=!knockback] at @e[r=1,y=~-1.25,dy=1,family=!knockback] run summon le:mob",
    "effect @e[y=~,dy=5,family=!knockback] slow_falling 1 1 true"
  ]
}
still phoenix
#

if the white block is in the middle of that, then so is y=~-1.25,dy=1

fleet zenith
#

ye but it covers an additional layer of blocks for some reason

#

this is how it detects

#

and this is how i want it to detect

still phoenix
#

green glass and detecting is not translating for me.... I do not know what you are trying to do based on the pictures

fleet zenith
#

green glass is block coordinates where the player needs to stand in order for the command to run

still phoenix
#

then add x=~ z=~ dx=0 and dz=0

#

but your command is still over complicated, you do not need all that... just the selector on the effect

verbal oak
#

What did they do to mess up the /tp command, i cant make projectiles using like armour stands or bats teleporting ^^^0.5 forwards anymore, it just always goes like east/same direction it spawned in, even when i spawn it and make it face ^^^10 forwards, (this all worked before 1.20.10)

#

I put a post up in #1067869288859447416 so if yall can help thatd be appreciated

fleet zenith
# still phoenix then add x=~ z=~ dx=0 and dz=0

can u send me a working example
or try this in a command block to see that it still runs the command when im next to the block when its supposed to run it only when you're inside the block:
execute at @e[x=~,y=~,z=~,dx=0,dy=0,dz=0] run summon fireworks_rocket ~ ~3 ~

subtle oasis
#
                "run_command": {
                    "command": [
                        "execute align xz positioned ~.5 ~ ~.5 run summon md:holo
                    ]
                }
            }```
whats the issue with this?
fast dust
#

I want to deal damage to all entities that are within 6 blocks of me, in addition to dealing damage to all entities that are 12 blocks above me

/damage @e[x=~6,y=~0,z=~6,dx=-3,dy=12,dz=-3] 25
#

for some reason this doesn't work, it keeps removing the player as an axis

#

it doesn't happen in my radius just in a coordinate close to me

#

;-;

#
/damage @e[r=6,dy=12] 25

does not work

still phoenix
#

what if you did... execute as @e[x=~6,y=~0,z=~6,dx=-3,dy=12,dz=-3] run damage @s 25

#

though the other was reasonable

fast dust
still phoenix
#

who is running the command?

fast dust
#

player

still phoenix
#

chat or entity

fast dust
#

using only the radius you can't put a greater height because it increases everywhere

#

/damage @e[r=6,dy=12] 25

still phoenix
#

the one I said to try was not radius

fast dust
#

😭

still phoenix
#

do testfor @e[x=~6,y=~0,z=~6,dx=-3,dy=12,dz=-3]

#

do they show up?

fast dust
#

I want it to be within the radius of an entity

still phoenix
#

put your x y z to 0 and use dx dy dz to move out... but that is one direction

#

u need more commands then

#

wait

#

is there a way to test if that is doing the rectangle correctly...

fast dust
#

I need to make a damage rectangle in a radius

still phoenix
#

2 commands

#

one for the radius, the other for the Y

karmic yoke
#

if i use dialogue open on two players and run commands with @initiator, does it affect both of them? or is it seperate for each one like @ s

still phoenix
#

separate

fast dust
fleet zenith
#

hi

verbal oak