#Commands General

1 messages · Page 3 of 1

still phoenix
#

Do the r=6...... then do the y=0 dy=12

woven aspen
#

its possible to add more than one Molang condition in playanimation command? I need variable.is_first_person || query.any_animation_finished but is not working if I use it like that

karmic yoke
#

if I load a structure block in a tickingarea where a player isn't, it doesn't seem to load the structure

fast dust
#
/damage @e[r=6,y=~0,dy=12] 25
sand tusk
#

Someone help me, In this update it's turning yellow, I want the white color

execute as @s at @s anchored eyes run camera @s fade time 0.0 0.8 0.3 color 249 225 25

This one is taking away the night vision

execute as @s at @s anchored eyes run camera @s set minecraft:free ease 0.0 linear pos ^ ^ ^3 rot ~ ~180 
trim zenith
#

color 255 255 255

#

If you're on 1.20.10

Rendering of experimental minecraft:free camera no longer affected by player state like night vision

still phoenix
#

you can branch out, won't kill anything

jade storm
#

Im one day old learning camera have the colour thing

#

Is there a way to set the color to translucent?\

#

Alpha channel thinggy?

topaz venture
topaz venture
jade storm
#

Asking if its possible in /camera?

#

Seem like it only receive RGB value

topaz venture
fallen steppe
#

not possible sadly @jade storm

#

color is used for fading / transitioning

#

not as a permenant overlay

jade storm
#

Where like your screen flashing red

#

But pure red....is too much

fallen steppe
#

Ah still not possible sadly

jade storm
#

I know

fallen steppe
#

...okay?

#

lmao

jade storm
#

Time to ask Mojang to make it

fallen steppe
#

lmao fr

jade storm
#

RGB + alpha channel

#

255 0 0 0.25

#

LOL

#

Btw

#

???

fallen steppe
#

laughing my ass off, for real

heavy holly
#

is there any way to do on a sidebar like the players battlePassXp and then the battlePassLevel x20 ( battlepasslevel x 20 is the equation to work out the XP)

heavy holly
# subtle oasis What

e.g like on my sidebar i want to do level:100/200 {1} but to get the /200 i was wondering if i could do the Level they are x20 since for every level you get in my mod it times the level you are by 20 to figure out how much you need to level up

rain lance
#

That should get you the exact number you want

heavy holly
#

my current command titleraw @a title {"rawtext":[{"text":" §7-= §cPVEWORLD §7=-§r\n\n • §aName§r: "},{"selector":"*"},{"text":"\n • §7Time Played§r: "},{"score":{"name":"*","objective":"hours"}},{"text":" Hours\n\n§7 -= §bMember §7=-§r\n • §gCoins§r: §g$§r"},{"score":{"name":"*","objective":"money"}},{"text":"\n • §dLevel§r: "},{"score":{"name":"*","objective":"battlePassLevel"}},{"text":"\n • §4Prestige§r: "},{"score":{"name":"*","objective":"prestige"}},{"text":"\n\n §7-= §bServer Info §7=-§r\n • §l§bPlayers§r: "},{"score":{"name":"idg","objective":"id"}},{"text":"/11\n • §l§9Discord§r: ########\n • §l§2Realm§r: ########"}]}

rain lance
#

After running those cmnds you just get the players neededXp score

heavy holly
rain lance
#

Those two cmnds will have to be in repeat always active

heavy holly
#

ok thanks

heavy holly
#

(my username)

heavy holly
#

also realised its x65 not x20

rain lance
rain lance
#

Either change the value of fake player “Twenty” to 65 or make a new one called “SixtyFive”

heavy holly
rain lance
#

Did you set Twenty Count to a value?

heavy holly
#

oh

#

no

#

how do i do that sorry

rain lance
#

Might as well change it to SixtyFive

heavy holly
#

never used scoreboard operation before

rain lance
#

/scoreboard players set sixtyFive count 65

heavy holly
#

i already changed it to sixtyFive

rain lance
#

Alright

upper swift
#

lattice

rain lance
rain lance
upper swift
#

ned nerd hep

rain lance
#

Wsp

rain lance
#

With scripts or cmnds?

upper swift
#

😭

#

scripts

#

lmao

rain lance
#

Gay

upper swift
#

commands are ex for me

#

i agree

rain lance
#

Dm me

upper swift
#

yesssirr

rain lance
#

Sorry @heavy holly

heavy holly
#

i dont think this is correct

#

its just constantly changing @rain lance

rain lance
#

LMAO

#

Okay

heavy holly
#

still receive an error from this one

#

dont mind the username it was a big mistake

rain lance
#

Well one sec

#

I think it’s built wrong

heavy holly
#

oh

#

this is the updated cmd for sidebar btw titleraw @a title {"rawtext":[{"text":" §7-= §cPVEWORLD §7=-§r\n\n • §aName§r: "},{"selector":"*"},{"text":"\n • §7Time Played§r: "},{"score":{"name":"*","objective":"hours"}},{"text":" Hours\n\n§7 -= §bMember §7=-§r\n • §gCoins§r: §g$§r"},{"score":{"name":"*","objective":"money"}},{"text":"\n • §dLevel§r: "},{"score":{"name":"*","objective":"battlePassXp"}},{"text":"/"},{"score":{"name":"*","objective":"neededXp"}},{"text":"§7["},{"score":{"name":"*","objective":"battlePassLevel"}},{"text":"§7]"},{"text":"\n • §4Prestige§r: "},{"score":{"name":"*","objective":"prestige"}},{"text":"\n\n §7-= §bServer Info §7=-§r\n • §l§bPlayers§r: "},{"score":{"name":"idg","objective":"id"}},{"text":"/11\n • §l§9Discord§r: ########\n • §l§2Realm§r: ########"}]}

rain lance
#

bao_cmd_repeat_unc this is the neededXp = levels one
bao_cmd_chain_unc

#

Should look like that

#

And for your other issue

heavy holly
#

this one first?

#

or the other

rain lance
#

That one first

heavy holly
#

it works

#

thank you so much i had no clue how to do that

rain lance
#

Oh

#

Nice

rain lance
heavy holly
rain lance
#

Ooo

#

Cool

heavy holly
#

its been a royal pain in the ass tryna get the level system done

rain lance
#

Oh

#

Damn now you got me wanting to make shit like that

#

I shouldn’t tho

#

Good luck!

heavy holly
#

its fun buy ALOT of building

#

thanks

rain lance
heavy holly
#

ill be posting some things from in it showcase soon

rain lance
#

Im utter shit at building

heavy holly
#

its hours of building dungeons

#

thankfully i only have to do the base and the rest of my helpers detail it while i work on the scripts and stuff

#

i gtg now

rain lance
#

Bye

subtle oasis
heavy holly
heavy holly
#

Is it possible with like @a[scores={money=100}] to not make it a specific number? like @a[scores={money=100-200}]

#

almost like lm and l

pine mesa
#

..100 = <100
100..200 = 100 -> 200
100.. = >=100

pine mesa
heavy holly
#

thank you

heavy holly
#

How would i add a scoreboard for every hour a player has played

subtle oasis
#

Could just do it from seconds and use math for hours

karmic yoke
#

does a failed execution of a command count towards the 10k command limit in a single function file?

upper swift
# heavy holly How would i add a scoreboard for every hour a player has played

https://discord.gg/dYSsxYSpZR

TAGS IGNORE
Money pouch
MCPE
Minecraft
Minecraft Bedrock
Minecraft PE
Minecraft command
Money converter
Kill counter
Death counter
How to
how to make
PS4
PS5
XBOX
PC
windows 10
microsoft
Command Central
How to make crates MCPE
Best mcpe commands
mcpe faction commands
mcpe skyblock comands
mcpe kitpvp commands
i...

▶ Play video
heavy holly
upper swift
#

yup

main stirrup
#

how can i randomly spawn for example 5 entity to specific block?

upper swift
#

wym

#

tag @e add RTP

#

tp @e[tag=RTP, c=5] <cords>

#

tag @e remove RTP

main stirrup
#

for example

green - custom block
orange - grass block
red - entity

i want to summon 5 entity randomly in that area only (custom block)

cosmic wave
#

Hello is it possible to use the nbt itemlock in /replaceitem command?

cosmic wave
cinder spear
#

hi there, so I have a problem that sometimes command blocks (repeating) stops working, what can be the cause of it?
I notice this happen always after I recover a backup file, so all the repeating blocks become "Impulse" blocks for no reason, there is any fix for that? some thing that I can do to "re-enable" the repeating blocks back globally instead fixing one-by-one?

gritty musk
gritty musk
cloud field
#

I want to make a teleportation crystal that teleports to 1 of 5 locations of your choice, and will leave behind particles

#

How can I do that?

upper swift
#

put an in is armor stand 10 blocks above where you want the crystal with a name

#

execute at @r armor stands with name and then use /particle and / to then to it 10 blocks below the armour stand

cloud field
upper swift
#

wdym

upper swift
#

certain spots you just summon the crystal?

#

and use /particle for the particle

#

@cloud field

cloud field
#

They already explained to me how to do it, it is necessary to add a java script to the addon

cloud field
#

But

#

[Scripting][error]-Plugin [§a§lMForm§7 (BP) [1.0] - 1.0.0] - [systemFiles/index.js] ran with error: [TypeError: cannot read property 'subscribe' of undefined at <anonymous> (systemFiles/trigger.js:9)
]

gritty musk
#

If you need help with the Script API, I recommend you going to #1067535382285135923

cloud field
#

Thanks

upper swift
#
[Commands][warning]-Function core failed to load correctly with error(s):

[Commands][warning]-Error on line 47: command failed to parse with error 'Erro de sintaxe: ":": inesperado em "isel_type"»:«"smooth"] "'```

What's wrong?
**execute as @a at @s[x=1,y=-64,z=1,dx=-2,dy=218,dz=-2] if block 0~ 0 quartz_block ["chisel_type":"smooth"] run effect @s levitation 1 5 true**
trim zenith
#

Use = instead of :
["chisel_type"="smooth"]

lost phoenix
#

how do i detect if all players has a score of 1 in a scoreboard? like if i have 1 and some1 else has 0 nothing happens but of both have 1 it happens something

#

ik is with execute but idk how

subtle oasis
lost phoenix
#

don't tell me it was that simple, wait let me test

#

BRO I'M SO DUMB

lost phoenix
dense herald
#

Can I select entities using multiple parameters in the same command

#

like @e[family=player,family=monster] ?

#

or do I need separate commands

fallow cliff
fallow cliff
# dense herald like @e[family=player,family=monster] ?

If you put them in same command like this it won't work. Because there is no entity that belongs to the family of players and monsters.

But if it was to say something like this:
/tag @e [family=monster, family=zombie] add monster
This could work since the zombie family belongs to the monster family.

#

Similarly there are some selectors you logically cannot use twice.
Examples:
/kill @e [type=cow, type=pig]
(An entity cannot be a cow and pig at the same time)
/kill @e [name=Steve, name=Alex]
(An entity cannot have more than 1 names at the same time.)

fast dust
#

hello I want you to leave if you have two or more

/testfor @e[type=cow,c=2..]
#

does not work

#

if i use c=2 the comparator activates even having only 1

mighty kindle
#

Can tellraw commands say stuff from json file

trim zenith
fallow cliff
cloud field
#

Who can suggest a command that removes spam from commands in the chat

subtle oasis
cloud field
#

Thanks

cloud field
subtle oasis
cloud field
subtle oasis
cloud field
#

Thanks

ruby island
#

hello people

#

do command groups exist? someone basically told me i could do execute as @a run give @a diamond { say YOU ALL GET DIAMONDS } basically what they said thatd do is it would only run if the first is true, so basically a conditional and i wanted to know if it was true or not and if not if theres any way to actually do so

thick rampart
#

No.

Source pls

ruby island
thick rampart
#

yes, there's no point in giving conditions since it's for all players

#
/execute as @a run give @a diamond
/say YOU ALL GET DIAMONDS
ruby island
#

gega it wasnt a specific thing

#

i made it as an examplea

#

example*

#

im trying to make a sell thing without making every sellable item individually

#

i want there to be one place to sell everything form

#

from

ruby island
#

is regolith an ide?

tawdry rover
#

its a compiler

#

ran in the command line

ruby island
#

oh okay

tawdry rover
#

It wouldn't work if you were using bridge though

ruby island
#

dang it

#

time to use vsc

tawdry rover
#

np

heavy holly
#

why dont this work?
/summon minecraft:zombie ~~~

Also get this error from /summon zombie ~~~

karmic yoke
ruby island
ruby island
#

caps

fast dust
#

hello

#

I want my command block to test if it has a block on its side, after that it activates a redstone signal

topaz venture
karmic yoke
thick rampart
#

or:
execute if block ~1~~ [blocktype] [blockstate(optional)] run ...

grizzled wasp
#

would it be better to have 10 functions with 2 commands or 1 function with 20 commands?
better as in better performance

subtle oasis
grizzled wasp
#

in both cases they would run in the same tick

grizzled wasp
subtle oasis
grizzled wasp
#

alright thanks

topaz venture
grizzled wasp
#

fair point

grizzled wasp
#

so when only looking at this specific situation, which is better, 10 function 2 commands each, or 1 function with 20 commands

topaz venture
ruby island
#

mb for ping

topaz venture
#

xd you dont have to apologize for pinging considering my name, but the closest conditinoals you can get while also being able to use them is /execute <if/unless>

subtle oasis
#

how do i load a structure without keeping water? random blocks of water stay after i load a structure

topaz venture
#

this should be bedrock sorry if it isnt, but you can toggle this waterlogged boolean to false so it doesnt load water, if you're taling about just water blocks you'll have to first extract the structure you want to save with /clone and then actually save it

subtle oasis
topaz venture
subtle oasis
#

i see, thanks

tidal oxide
topaz venture
subtle oasis
tidal oxide
trail glade
#

is it possible to detect with unless execute commands if there is a specific entity in the same block

i tried
/execute as @e[type=chicken] at @e[type=chicken] unless entity @e[type=chicken,r=1] run kill @s
but it doesnt work

topaz venture
#

unless entity means if there are none entities

trail glade
#

hmm so if it checks it self

topaz venture
#

if you want to check if 2 of the same entities are in the same block you could use
/execute as @e[type=chicken] at @s if entity @e[type=chicken,r=1,rm=0.01] run say theres another chick with me in the same block

#

you would need to use align to actually make it the same block tho

trail glade
#

i want to run the kill command only when there's 1 entity in that same block

topaz venture
#

and using dxdydz would make it an actual block

trail glade
#

i dont need as and at since a block is going to run it

topaz venture
topaz venture
trail glade
#

lemme try

#

still runs it when there are more than 1

topaz venture
#

the additon of rm is the important part it basically means any entity which is at least 0.01blocks away which should normally be all except the executing one since that is exactly on its spot so it cant be further away from itself

topaz venture
trail glade
#

yeah

#

like kill @e

topaz venture
#

let me test

#

this is very interesting, it seems like this command always kils alls chickens except 1
/execute as @e[type=chicken] at @s if entity @e[type=chicken,r=100,rm=0.01] run kill @s
that defintly says something about its execution flow

trail glade
#

yeah

topaz venture
#

alright so it does work like its supposed too but the only problem is with the method i've given theres a tiny exclusion which is, if the other chicken is exactly on the same position and i mean exactly then it ignores it because its basically invisible to it, but otherwise it works as intended

trail glade
#

yeah i actually managed to find the solution thank you

topaz venture
#

np

thick rampart
#

/execute as @e[type=chicken,c=1] at @s if entity @e[type=chicken,rm=0.01,r=2] run kill @s

#

or only check if it has special tag

#

/execute as @e[type=chicken,c=1,tag=check] at @s if entity @e[type=chicken,rm=0.01,r=2] run kill @s

#

The previous command means that it applies to every chicken, that's why it kept killing all the chicken.

cosmic wave
#

How to gore a sapling with commands?

#

*grow

topaz venture
cosmic wave
#

Well there was this one time when some dark oak saplings GREW over me while I was exploring, sending me to deth's cold embrace by suffocation 🌳 🙏

cosmic wave
#

🌳 😤 🌳 😤 🌳 😤 🌳 😤

graceful nova
#

Is there a way to summon a charged creeper? I’ve looked online but it’s all for java so it doesn’t work.

still phoenix
#

Did you examine the code to find an event that activates that component group....? If you find one, then summon it with that event.

trim zenith
#

Or just summon lightning at the creeper

graceful nova
#

I’m not great with events so no I have not looked at that. And they will be in a box so I don’t think the lightning can get to them. Thanks anyway!

still phoenix
# graceful nova I’m not great with events so no I have not looked at that. And they will be in a...

So this is where you start to dabble a little and learn about entity files. This is the event that is called to make the creeper do thatjson "minecraft:become_charged": { "remove": { "component_groups": [ "minecraft:exploding" ] }, "add": { "component_groups": [ "minecraft:charged_creeper" ] } }You can use this event in commands 2 ways:

  • /event entity @e[c=1,family=creeper] minecraft:become_charged
  • /summon creeper ~ ~ ~ facing @s minecraft:become_charged (of course change the ~ ~ ~ to a safe distance)
graceful nova
#

Ok, thanks!

cosmic wave
still phoenix
#

u can't

fallow cliff
# cosmic wave *grow

You can't vanilla "grow" it but you could save the corresponding trees in structures and load it at the sapling to simulate a "growth."
You'll need to save multiple structures if you want it to have variations. Or have the logs & leaves randomly generate if you would like to take extra steps.

cosmic wave
fallow cliff
#

You will need to offset

cosmic wave
#

Is that option present in the command itself?

#

Hmmm I think it could be done...

#

Thanks

lusty sable
#

What is tickingarea prereload?

trim zenith
#

Load the area before loading whole world chunk

#

Ticking areas typically load after the world is launched, unless it is marked with "preload". Ticking areas that are marked as preload will be loaded before loading other chunks when launching the world. This could be a useful tool to load some things orderly.
-- Minecraft Wiki

fallow cliff
heavy holly
#

how to make a function run in tick.json

still phoenix
mighty kindle
#

can I detect if player is riding an entity?

fallow cliff
fallow cliff
# mighty kindle can I detect if player is riding an entity?

/execute as @a at @s anchored feet if entity @e [c=1, type=camel, r=0.01] run say riding a camel

You might need to adjust the radius and positioning but I think this is pretty much the way to do it unless you'd like to opt for scripting api or some add-on way of detecting.

fallow cliff
#

Replace with family=mob if you want it to check all mobs

mighty kindle
#

thank you

jade storm
#

query.is_riding

topaz venture
#

since when do armor stands get /killed without a death animation?

thick rampart
#

IDK, I /kill my armor stand without a death animation xd

#

it's just the death sound Somehow its silent

woven aspen
#

uff execute command should support Molang

jolly mesa
fallow cliff
#

Nope, they made a death sound along with white particles

jolly mesa
#

Oh that yeh ik that exists. Just the turning red and 90° angle

topaz venture
#

yeah i used to always kill them by tping them to the void since a random dead armor stand with a bunch of particles spawning never looks good in a map

exotic apex
#

hi

lost phoenix
#

is there anyway to put the first person camera with another point of view with the new camera command? like i want the first person camera to be 1 block above the player with the player hand etc literally the 1st person camera

heavy holly
#

how would i remove all tags beginning with nick: from a player

mystic apex
#

scripting

topaz venture
heavy holly
topaz venture
#

ah well yeah if you're using scripting it would probably be smart to continue using scripting

cerulean mason
#

Could someone help me with the /execute command, so that if the score of a person is 40 it executes a command

mystic apex
#
execute if score <target> <objective> matches 40 run <command>
cerulean mason
#

thank you!

proper geyser
#

Is there a way to have a command run for only hostile mobs?

#

Like /kill @e[type=monster] or something?

mystic apex
#

family=monster

proper geyser
#

Oh, awesome

balmy stratus
#

Hey why is it giving an error i did the calculation correctly

topaz venture
#

if you names start with numbers or some special characters you need to put them in quotes ""

balmy stratus
#

@topaz venture fix the error

dark cypress
#

Looking for a commands dev free dm me

fallen steppe
#

Am I actually lacking braincells? Made a new pack, trying to use the new execute syntax in a function, but still receiving content log error.

#

Manifest format version is 2, min engine version is [1, 19, 10] (also tried [1, 20, 10])

#
{
    "format_version": 2,
    "header": {
        "description": "...",
        "name": "...",
        "uuid": "...",
        "version": [ 0, 0, 1 ],
        "min_engine_version": [ 1, 19, 10 ]
    },```
#

here's the direct content log error if that helps, plus the command causing the error - command failed to parse with error 'Syntax error: Unexpected "score": at "xecute if >>score<< playername..."'
execute if score playername objectivename matches 1 run somecommand

rain lance
topaz venture
#

yeah but he tried 1.20.10 too

dense herald
#

Can I clear a non player entity's inventory without using replaceitem on every slot?

#

or is there a way to check that all its slots are empty?

mystic apex
#

Scripting

dense herald
#

is there a way to check for empty slots with hasitem?

topaz venture
dense herald
topaz venture
#

hm yeah the only thing i really know about hasitem is that if quantity is set to 0 it basically inverts the hasitem

woven aspen
#

can be limited the Y value from /spreadplayers command?

#

my mob sometimes teleport in a cave

fallow cliff
topaz venture
#

yeah usually /spreadplayers teleports to the highest possible block which you can stand on, altho i have been hearing complaints that it tps you to the maximum height recently

woven aspen
#

ahh sorry I made a mistake in the command

#

thx for your help

carmine niche
#

is there a checker / detection like execute if block is not air, then run <whatever> nvm, got it.

topaz venture
#

lmao the fact that you almost perfectly described the syntax before asking is amazing

heavy holly
#

can you summon tnt that doesnt destroy blocks but still does damage?

topaz venture
#

you could disable tnt destruction

heavy holly
#

how do i do that tho cuz it aint a gamerule

topaz venture
#

ah thought it was

heavy holly
#

just tnt explodes

fallow cliff
#

Oh mb, didn't see your question above lol

heavy holly
#

wdym tntexplodes has been ingame for years

#

oh

#

right

fallow cliff
#

Yeah /gamerule command
I thought it was for /event command

heavy holly
carmine niche
#

helo, quick question, does /give command send / broadcast message to the whole players like when you give someone something like, for example /give Player1 my:poo, and to me (as Player1), it shows Player1 has been givien... but does it broadcast to other players also? me don't have friends to try bao_doggo_crying

trim zenith
#

It do, there's gamerule to not show the command feedback

/gamerule showcommandfeedback false

For command block

/gamerule commandblockoutput false
carmine niche
#

Oh, okay. Thanks

heavy holly
heavy holly
#

in a like @a[type=zombie] how do i add mutliple entities?

topaz venture
#

you cant, you could either use family and hope the family you want exists, or if you really want to use type for multiple entities you will have to do type=!x for every other entity that you dont want to select

heavy holly
#

im jus gon give them a tag and do tag= instead

topaz venture
#

oh yeah thats a multicommand solution too

mild rose
#

how do you set a camera to follow you?

#

and is there a list of possible values for camera presets?

rain lance
# mild rose how do you set a camera to follow you?

/camera sets the camera to an exact locations, if you want to smoothly have the camera follow you you’ll need to use an execute command (normally in a tick function or repeating command block) to set it to a certain position near the player

mild rose
#

thx

heavy holly
#

how do i determine if theres 0 of a certain type and execute a cmd (using one command)

topaz venture
#

/execute unless entity @e[type=cow] run say there are no cows
you might have to limit the selection of entities to 1 by using c=1 because minecraft stinky, so
this should have been fixed and c=1 should not be nessecary anymore
/execute unless entity @e[type=cow,c=1] run say there are no cows

heavy holly
#

from both

topaz venture
#

yeah that should mean that cows were found, and thus not executing the command

heavy holly
#

oh right

heavy holly
topaz venture
thin lodge
#

does the new execute work in functions?

#

Command:
/execute at @a[hasitem={item=stick,location=slot.weapon.mainhand}] run setblock ~~2~ stone

Error:

thick rampart
#

The command itself is correct, probably your manifest which causes it.

heavy holly
#

is there a max limit of cmds in a function??

gritty musk
#

10000

#

Can be less but not more

heavy holly
#

right then thats good

#

i just made a 620 line function

topaz venture
topaz venture
heavy holly
#

can somemone help with this it was working earlier??

topaz venture
#

the scoreboard command failed so check for:
if the objective exists
if the target exists

#

also the c=1 for if/unless entity should have been fixed

frail thorn
#

So are "execute as @a" and "execute as @a as @s" the same thing? If not please explain the difference.

thick rampart
#

The difference between them is that when you use as @a you're running the command as that entity, but the location where the command is being run does not get changed to the specified entity location.
Putting this command in a command block and running it each tick: execute as @a run setblock ~~-1~ stoneWill change the block underneath the command block instead of the player.

topaz venture
thick rampart
topaz venture
#

thats nice but i recommend you take a good look at the command again

thick rampart
#

I mean, besides the original problem, "as" and "at" are different.

topaz venture
#

okay but you do realise in the command given by flame, both things are "as" not 1 "as" and 1 "at", both are "as"

#

i think the majority of the command community can agree that "as" and "at" are different tho haha

thick rampart
topaz venture
#

haha its alright its not many of times people ask a question like that and how extremely similar as and at are its very easy to just mistake the as with at since thats one of the most common asked execute questions

frail thorn
#

So adding the extra 'as @s' doesn't do anything?

thick rampart
#

yes

#

'as @a as @s'

  • as @a run for each online players.
  • as @s self-execution. (Which is unnecessary)
frail thorn
#

Oh I thought '@a' just made it run once on all players and by adding the '@s' would specify each player

#

Thanks I'll be able to simplify my commands and make them smaller

topaz venture
#

no each part of the execute will always do the same thing and will not have seperate logic, and also just imagine that every single thing like "at", "as", "positioned", "rotated" etc all just set specific things in the commandcontext

thick rampart
#

Your words confused me, the fastest way to understand is to just test it.

cinder spear
#

hi there, is it possible to use the fill ~-10~~-10 ~10~~10 awp:red_fire replace air in combination with the execute unless to fill only if the bellow block is not air? because it will need to test for the entire range and not a single block position

topaz venture
mild rose
#

Is there a way to set speed without changing the FOV?

#

I tried by setting a camera it doesn't work

main stirrup
#

you cant have ~ and ^ at the same time?

topaz venture
mystic apex
wet ridge
#

fill ~ ~ ~ ~ ~1 ~ light_block ["block_light_level" : 15] replace airWhats wrong?

thick rampart
#

use = instead of :

#

@wet ridge

quartz chasm
#

There's something weird happening with /clear command

#

There's no way to clear dye of all colours at once

#

/clear @p dye clears only inc_sac

#

/clear @p inc_sac also clears inc_sac

thick rampart
#

try:
/clear @p dye -1

quartz chasm
thick rampart
#

Try multiple /clear
/clear @p dye -1
/clear @p dye -1
/clear @p dye -1
/clear @p dye -1

quartz chasm
topaz venture
#

yeah i tested it seems you just need to do every data indidually
/clear @p dye 0
/clear @p dye 1
/clear @p dye 2
/clear @p dye 3

topaz venture
#

i mean its really not that common when you need to use all kinds of dyes and then also need to clear all of them

#

you can just setup a function or a command block functions so you dont need to repeat anything

quartz chasm
topaz venture
#

concrets are blocks so thats a different question

cosmic wave
#

Is there any way to randomly tp an entity around me besides using spreadplayers?

topaz venture
#

unless you want to get complicated no

cosmic wave
#

Spreadplayers sometimes transports the entity to places I dont want it to go

cosmic wave
cosmic wave
topaz venture
#

well you can randomise a scoreboard value and then transfrom the scoreboard value using binary to the entities position relative to another

cosmic wave
#

Seems complicated. Why didn't they add a y value to spreadplayers anyway 😦

#

Thanks for replying

topaz venture
topaz venture
cosmic wave
#

Yeah, I meant that they could add an optional y parameter so that they remain in the y~ level of where they were originally.

supple bough
#

So I got a serious question I know they say tags on a player can cause lag but but how noticeable can it actually be?

So hypothetically if there are 20 players on a server and have like 10-15 tags on each of them how bad would that affect performance?

thick rampart
#

Depending on how often you read/modify the tags and how many players are executed, I think.

topaz venture
#

everything causes lag, just do what you're doing until you're actually feeling lag and then you can optimise

topaz venture
supple bough
topaz venture
#

yeah i highly doubt just some tags are doing that tho

#

but if you really want to optimise you can either switch to scoreboards dont really know if that helps, but the most simple advice which you hopefully were already following is using tags for only true/false things or classes like things

supple bough
#

unless some of the people on just have that high of ping its messing everyone else up

subtle oasis
supple bough
#

as by reading my other messages i explain my thought process

topaz venture
mighty kindle
#

/execute as @a[hasitem={location=slot.weapon.mainhand,item=air,quantity=0,slot=0}] run say I'm not holding any items

thick rampart
#

in a nutshell: quantity = 0 is air

mighty kindle
#

it asks for an item

#

and it doesn't work if you don't enter quantity = 0

thick rampart
#

put anything inside item =

#

could be dirt, item = dirt

#

Cannot be air

#

but quantity = 0 is possible

fallow cliff
#
#test item
give @a barrier 2304


#Your Commands (example)
effect @a [hasitem={item=barrier,location=slot.hotbar,slot=8}] slowness 1 1 true


#delete test item
clear @a barrier
kill @e [name= "Barrier"]
#

Alternatively:

/replaceitem entity @a slot.weapon.offhand 0 keep barrier 1 0
/execute as @a if entity @s [hasitem={item=barrier,slot.weapon.offhand}] run say my offhand slot is empty
/clear @a barrier
cosmic wave
#

Hi can anyone tell me why this command

execute if block ~~~ air run setblock ~~~ light_block ["block_light_level"=15] replace
#

Runs ingame but fails if inside an entity or function file?

topaz venture
#

the block at the entities position wouldnt be air, or they couldnt place the light block

cosmic wave
#

I'll try and use fill instead maybe it'll work

#

Nope, it doesn't

#

I think the bad thing here is in the

["block_light_level"=15]

part, for some reason. How is this fixed?

glacial ingot
#

Hello! please help with the team. I need the command to rotate the entity 90 degrees.

pine mesa
topaz venture
#

oh yeah that too

#

but it should be 1.20+ if i heard correctly

topaz venture
frank bough
#

check your min engine version

cosmic wave
#

Hmmm

#

Okay

cosmic wave
#

Nope, doesn't work still

#

Wait. . .

#

Still throwing a console log error

pine mesa
#

What's the difference between saving a structure to disk and memory, and does either output an actual .mcstructure file that can be accessed?

topaz venture
#

memory should save it only for the current session so when you leave it will be deleted

thick rampart
#

Good to know

heavy holly
#

Is there a way to detect what way a player is facing and make a row of particles spawn in that direction?

frank bough
thick rampart
balmy stratus
#

@topaz venture Is this command correct?
execute as @a[scores={running=1..}] run title @s actionbar Hello!

topaz venture
thick rampart
#

That looks correct for the new execute syntax.

balmy stratus
gritty musk
#

I think this is a simple command but my brain is like at 10% so
How can I run a command to compare between two scoreboards and set to 0 the one with less scores?

#

So basically:
5 < 10 = 0 < 10

tawdry rover
#
execute if score @s thing < @s thing2 run scoreboard players set @s thing 0
execute if score @s thing > @s thing2 run scoreboard players set @s thing2 0

@gritty musk I think this works

#

not tested

thick rampart
#

I bet my left thumb that it will work

gritty musk
#

I will test when I get back from my classes, thank you!

gritty musk
#

oh wait, works perfectly!

#

There was a typo on my end, my bad

#

Thank you very much hatchi! ❤️

rough raven
#

Anyone know a way to /kick programmatically. I know api can run kick. i have tried a few things in mcfucntions and they don't seem to work either. is it only command blocks that could use /kick?

gritty musk
#

Functions can if you set it a defined target iirc

rough raven
#

So you cant do like @p[tag=kick] ?

#

or score boards?

untold nova
#

You cant do that anymore afaik. You must specify the player name

rough raven
#

ugh...

#

Makes moderation tools without direct commands access really tough...

untold nova
#

I think it was to combat kick @a

#

Cant recall the change

topaz venture
#

yeah afaik it was because of that and hackers using it

fallow cliff
#

They should at least make it executable through .mcfunction or .json files

#

I wonder if setting the min engine version helps

#

Back to like 1.14 or smtn I think

#

You should still be able to use newer commands from a second BP of latest version

#

Plus you can call functions in packB from functions in packA

coarse shore
#

Would be nice if they added a way to set the permission level functions are ran with.
On Java, that's something you can change for dedicated servers in their config. So you can have functions run server admin commands if you really wanted to.

#

Overall, the command permission system on both versions are terrible. It would be nice if you could configure the permissions for each individual command. Discord does a decent job of that for slash commands.

heavy holly
#

How would I test if a player is positioned within a radius of a coordinate and execute a command then? hopefully with one command and no entitys, ive tried execute if entity @s positioned 341.49 91.00 -23.45 but thats only 1 coordinate

iron meadow
#

how to make allay execute the command that teleports to one place. execute at @s run tp @s. only allay does it

#

or how can i freeze the mob?

gritty musk
#

Minecraft Commands Communities

If you're interested in joining communities that focus on Minecraft commands, here are some options for you:

  • Minecraft Commands: This community is dedicated to all things related to Minecraft commands. Join to connect with like-minded individuals and discuss various command-related topics.

  • Bedrock Commands Community: If you specifically want to engage with the Bedrock edition command community, this Discord server is a great place to do so. Connect with other Bedrock edition players and share your knowledge and experiences.

  • Bedrock Commands: Another community focused on Bedrock commands, this Discord server offers a platform for Bedrock edition players to collaborate, ask questions, and learn from each other.

Feel free to explore these communities and engage with fellow Minecraft command enthusiasts.

gritty musk
#

Commands

Immerse yourself in the universe of commands with these useful resources.

  • Introduction to Command Blocks: Learn the basics of using command blocks and executing commands in Minecraft.

  • Understanding Selectors: Discover how to target specific entities or players using selectors in Minecraft commands.

  • Functions: Explore the creation and utilization of functions to store and reuse sets of commands in Minecraft.

These resources offer valuable information and guidance for effectively using commands in Minecraft.

wintry heart
#

I wanted to add a camera on top of the player down in front of him, I wanted the x and z position to be relative to the player's rotation but the y axis is not

#

Does anyone know how I can do this? I'm in need a lot

#

camera @s set minecraft:free pos ^^10^10 rot 90 0

#

Using this command I get more or less what I want, but I need the Y axis (height) not to change according to the rotation of the game

tawdry rover
#

The above should set the y rotation to 0

wintry heart
#

Could you explain this to me in more detail?

tawdry rover
# wintry heart Could you explain this to me in more detail?

execute at @s - Sets the position of the command to be at @s
execute rotated as @s - Sets the rotation of the command to be the same as @s
rotated 0 ~ - Sets the x rotation to ~ (which means leave it at the current value) and y rotation to 0

More information on the execute command can be found here

wintry heart
#

Does anyone know how I can make a condition with amount of entities in a command? If/unless @e[c=*] doesn't seem to work

tawdry rover
wintry heart
#

Thx again

tawdry rover
#

No problem

mystic apex
woven aspen
#

how can I remove xp amounts?

#

I cant set negative values on /xp commands, only with levels

mystic apex
#

scripting

lusty sable
#

Can I do line break in lang.json?
Like:
zone.menu1.body=ID: %s \nName: %s

I try =
/tellraw @a {"rawtext":[{"translate":"zone.menu1.body","with":{"rawtext":[{"text":"ID"},{"text":"Name"}]}}]}

show =
ID: ID \nName: Name

I want =
ID: ID Name: Name

frank bough
#

as far as I know \n doesnt work in lang files

lusty sable
#

Ok thanks

lusty sable
#

Failed to execute structure as null
execute if score round games matches 0 if score n games matches 1 run structure load diamantes2 15984 63 16022

frank bough
lusty sable
#

1.20.15

frank bough
#

maybe your syntax is wrong?

lusty sable
#

i dont know why

#

Firt test if round is 0 and n or r 1, after reset round and r/n

frank bough
#

wait lemme test smth out

#

oh ok

lusty sable
#

i think i found the problem

frank bough
#

you cant have 2 if-conditions

#

because the structure will only be loaded if all if conditions are met at the same time

lusty sable
#

Yeah

frank bough
#

use unless

lusty sable
#

Structure name is incorrect

#

BUt

#

Why reicve Failed to execute structure as null

frank bough
#

try to run the say command for a test

#

instead of the structure one

lusty sable
#

Ya ya, the problem is "diamante2" instead of "diamantes2"

#

Thanks

frank bough
#

ok

fallow cliff
#

Imo it would be best to have a default permission level for all commands. And then allow players to set individual perms for separate commands via some .json file in the BP

coarse shore
#

Yeah, it could be a file, UI, etc. More control would just be nice.

tidal oar
#

How could I rotate an entity with old-syntax commands?

thick rampart
tidal oar
fallow cliff
#

Did you also try definite values
~~~ 90 ~

#

Some entities also just have weird facing directions and rotations. Example: boats

tidal oar
fallow cliff
#

Damn :S

tidal oar
#

Otherwise I'd struggle for other ~5 hours

fallow cliff
#

I mean you could've tried finding the specific values through trial and error increments 😅
But if this method isn't much different in terms of optimisation then..if it works it works xD

brazen aurora
#

What are the blockstates for the beacon?

tidal oar
thick rampart
open quiver
#

clamps the rotation to the nearest 90 degrees

tidal oar
#

I've tried it and it didn't work. I've fixed it another way.

open quiver
rapid drift
#

for that?

iron meadow
#

What is the name of the command that teleports the player to random locations?

thick rampart
#

spreadplayers

iron meadow
celest wing
#

is it possible to detect when the player has no item in hand using hasitem?

frank bough
celest wing
#

exactly the same thing happens to me

thick rampart
#

/testfor @a[hasitem={item=barrier,location=slot.weapon.mainhand,quantity=0}]

lusty sable
#

Someone can help me on My World? I make an addon to use script events in commands like

tp @a[tag=chatSend] 0 0 0 tp to everyone who sends a message
tp @a[tag=chatSend:myCustomMessage] 0 0 0 tp to everyone who sends "myCustomMessage"

Or

blockBreak
blockBreak:grass

entityFromDirectiomView:cow

blockPlace
blockPlace:dirt

Etc...

topaz venture
lusty sable
#

Just an example

topaz venture
#

mhm, but are you needing help with?

thick rampart
#

unless there's a rule. Example using a tag: "cancelChat:spawn" to cancel message starts with "spawn"

#

(Btw there's a tag limit on a single entity, and its 256)

lusty sable
lusty sable
topaz venture
lusty sable
upper swift
#

a

#

Any way to bypass the enchantment limit?

#

addon or command idc

mystic apex
#

NBT editing, Add-on scripting & Hack client

upper swift
#

k

thick rampart
mystic apex
#

Alright

fleet ivy
#

Does anyone know how to use the /save command?

green nymph
green nymph
#

oh guess i lied

#

mb

green nymph
jolly mesa
#

That's been a thing for ages. I'm surprised that they even pushed it to clients

limpid prism
jolly mesa
#

we have access to /save on bds

gritty musk
#

Can I make .mcfunction files use / comments instead of #?

thin lodge
#

How many ticks is 1 second currently worth?

topaz venture
#

20 ticks is 1 second

thin lodge
#

certainty? I put it in "tick.json" so that it takes 1 off my scoreboard every time and I had 20 off my scoreboard and it took about 3 to 4 seconds to get everything off

#

Could it be the lag too?

topaz venture
#

i mean you most likely are experiencing lag or a system of yours is wrong

thin lodge
#

I said it wrong, I'm sorry

#

I had 100 on the scoreboard*

#

The scoreboard was supposed to end in 5 seconds

#

But this problem might just be me, I'll ignore this problem : P

turbid plaza
#

Hello people! Quick question, is there a way to create a countdown and show it on the actionbar no matter where the player is? I've created a countdown with armor stands before, but for some reason it won't show if the player's too far from the armor stands that represents the timer's numbers

turbid plaza
#

I did

#

But still the actionbar title dissapears

#

Maybe it's a bug on my world

topaz venture
# turbid plaza I did

you have a ticking area on both the commands and armor stands location? since both things can be unloaded and a tickingarea would prevent that

spring mauve
#

When using /playanimation can you put an animation controller on it?

open quiver
spring mauve
open quiver
#

huh, never noticed that before. I've never used the command though tbh lol

spring mauve
#

Yeah, me too kinda curious. Might be useful too

open quiver
#

might be usable when the rest of the scripting api is pushed to non-exp but until then seems like molang is better for animations

quartz dawn
# turbid plaza Hello people! Quick question, is there a way to create a countdown and show it o...

What about just using function files ? Here is an example of how to create a countdown of 3 seconds.

scoreboard objectives add countdown dummy
scoreboard players @a[scores={countdown=1..61}] remove countdown 1
title @a[scores={countdown=60}] actionbar Launching in 3..
title @a[scores={countdown=40}] actionbar Launching in 2..
title @a[scores={countdown=20}] actionbar Launching in 1..
scoreboard players @a[scores={countdown=0}] reset countdown

This function file will start the countdown for all players if you run the command /scoreboard players set @a countdown 61.

turbid plaza
quartz dawn
turbid plaza
#

The player can add minutes to the countdown by pressing a button

quartz dawn
open quiver
#

there is also tellraw which works the same way

#

you can also compare scores to run events via execute if score @s <objective_name> = "#var" <objective_name> run say test

turbid plaza
#

Thanks guys! Here's the thing: I have to create 3 different countdowns for 3 different minigames I'm working on (one of 5 mins, and the other two will be 1 minute, but it can be just 1 countdown instead of 2 different ones). I have to show them on the actionbar, one at a time, with the format "Time: M:SS". To trigger this countdowns, I have different NPCs with dialogues and buttons. The buttons start the countdown and they change the dialogue of the NPC (and several other NPCs). When the timer is running, the dialogues shows a button to stop and restart the countdown (also reverting the dialogues to the first one). And finally, when the countdown ends, they countdown stop of course, then triggers a couple of titles, and changes the dialogues of the NPCs (a third dialogue for the "game over" option)

#

I'm doing that right now with a very complicated system that I've in another world, using armor stands with nametags between 0 and 9, and another armor stand that serves as a countdown, and showing the name of the numbered armor stand as the timer in the action bar, etc.

#

I assume there will be a better, more efficient and, most importantly, simpler way to achieve that

#

Forget about the "add minutes" function right now. First I want to know if there's a way to achieve just a "simple" countdown without all the hustle

turbid plaza
#

Also, I need for the seconds to have 2 digits

subtle oasis
subtle oasis
#
execute as @a run scoreboard players operation @s second %= "10" time
execute as @a run scoreboard players operation @s second2 = @s time
execute as @a run scoreboard players operation @s second2 /= "10" time
execute as @a run scoreboard players operation @s second2 %= "6" time
execute as @a run scoreboard players operation @s minute = @s time
execute as @a run scoreboard players operation @s minute /= "60" time
execute as @a run scoreboard players operation @s minute %= "10" time``` something like this
turbid plaza
#

Thanks a lot!

rough raven
#

I know i have asked this before. but is there any way to get the data out of the /locate?

Scripting, score boards ECT... dont really care. Even TP would be fine...

rain pelican
#

/execute align "xyz run tp @s ~ ~0.5 ~

Would this teleport me to the center of a block or am I getting align wrong

rain pelican
#

Owh

#

-1.1 becomes -2 for example, it doesnt round it to the closest number.

#

Well thats an issue

#

Oh wait I think that doesnt matter for what im trying to achieve

green nymph
rain pelican
green nymph
rain pelican
lost phoenix
#

is there any way to stop a sound with a fading?

coarse shore
#

No.

#

Technically, sounds played through /music support fade-outs using /music stop <fadeSeconds>, but that's not the same as /playsound.

willow mesa
#

What is the easiest way to run a command once each time the world gets started up? This is for a world load NOT a SERVER.

quartz dawn
willow mesa
# quartz dawn https://wiki.bedrock.dev/commands/on-first-world-load

Trying to do it EVERY time the world loads not just the FRIST time. Trying to figure out how to link it to ONLY the HOST player loading the world. I might have to do a combo between of first world load AND the On player join.
https://wiki.bedrock.dev/commands/on-player-join.html

quartz dawn
#

You can just use a dummy entity with an ac and tick world component. The ac will switch to default every time the world loads mate 😄

willow mesa
#

ac?

willow mesa
quartz dawn
#

?animation controllers

pale kettleBOT
#
Animation Controllers and More

Intro to Animation Controllers: Wiki Link

Running commands in AC: Wiki Link

Stable Documentation for Animations Bedrock.dev Link

Effects in Animations Wiki Link

Death Animations Wiki Link

Math-based Animations Wiki Link
Math animations are a powerful alternative to key-frame animations. Generally speaking, math based animations is the concept of using Molang expressions and maths to animate entity geometry.

Entity Modeling and Animation Microsoft Link

Entity with Animation Turotial Microsoft Link

Resource Pack Animations Microsoft Link

quartz dawn
#

?dummy entities

pale kettleBOT
#
Dummy Entities

Dummy entities are invisible entities which are used behind the scenes for game-play purposes.
Dummy entities are a very useful tool, and the document (linked below) covers some of the ways they are utilized, as well as showing how to set up the resource side of things.
https://wiki.bedrock.dev/entities/dummy-entities.html

willow mesa
# quartz dawn ?dummy entities

Ah right, for some reason my mind was trying to figure out how to use the "fake player" like used in the on first world load example.

#

and I couldn't sort out how to give them an animation controller LOL

restive bone
restive bone
#

It will detect if someone joined

#

Every time

#
  • works on every target with score
#

Even offline

willow mesa
#

I'm trying to quickly set up so a command gets run when the world loads, not on join of every player.

restive bone
#

put it in function idk

willow mesa
#

well now I've discovered it is a moot point since the command I wanted to run is apparently not automateable it apparently is one of those commands that you HAVE to run from the chat directly.

topaz venture
#

the only command for that is really just /kick

hoary burrow
#

What is the difference between the as and at components of the execute command?

jolly mesa
#

as is basically saying that this target is executing this command.
at is saying execute this command at those coordinates.

e.g. /execute as @a run say @s would make all the players say their name but using /execute as @a run setblock ~ ~ ~ planks would set every block to 0 0 0 because at was not specified

#

I think

topaz venture
willow mesa
#

what is wrong with these commands? vscode seems to think something is wrong with the fill command?

execute as @s[tag=nether] run fill ~10 ~4 ~10 ~-10 ~-4 ~-10 air replace minecraft:obsidian```
as far as I can tell there is nothing wrong with these, they seem to work in game when pasting them into the chat just fine.
topaz venture
#

if they work fine ingame vscode is just lying to you

rain pelican
#

Can we combine the use of ~ and ^ in a command?

green nymph
rain pelican
fringe flicker
#

Some tricks to protect my spawn with commands?

willow mesa
#

You could set an execute as @a[select for volume around your spawn location] run gamemode @s adventure or something like that. But then you also need some way to change gamemode back when they leave the spawn area.

turbid plaza
#

Guys, is there any way to target all kinds of food with a /kill @e[type=item] command?

#

Or at least a way to kill several different kinds of edibles with few commands

mystic apex
#

Not really

quartz dawn
fringe flicker
quartz dawn
fringe flicker
#

Bruuh my server is not a pvp or like cub craft

#

Is a survival server with addons

turbid plaza
mystic apex
#

Yep

#

Or use scripting

rapid drift
#

but it's the spawn

#

u want people build in the spawn?

fringe flicker
rapid drift
#

u put the block under the spawn only

topaz venture
# fringe flicker No

you need to be more specific first you say you want people to be able to build shops at spawn and now they shouldnt build at spawn at all

fallen steppe
#
"minecraft:damage_sensor":{
   "triggers":[
      { //if you already have a damage sensor, simply copy this object into the "triggers" array
         "on_damage":{
            "filters":{
               "any_of":[
                  {
                     "all_of":[
                        { "test":"has_tag", "value":"nopvp" }, //does the player have this tag?
                        { "test":"has_tag", "subject":"other", "value":"nopvp" } //if so, does the entity they're trying to hurt have this tag?
                     ]
                  }
               ]
            }
         },
         "deals_damage":false //if any of these filters evaluate to true in the current attack interaction, the target will not be hurt.
      }
   ]
}```
#

Use this damage sensor in behavior_pack/entities/player.json, and use repeating commands to tag players within some area with nopvp and un-tag players outside of that area

#
tag @a[tag=!nopvp,x=~,y=~,z=~,r=50] add nopvp
tag @a[tag=nopvp,x=~,y=~,z=~,rm=50] remove nopvp```
#

@upper swift

#

you could also just apply weakness instead of using a damage sensor

#

there might be a better way to do this, but this was what first came to mind ^^

gritty musk
#

If you have a sword with sharpness above 12 or something like that weakness will no longer work though. I recommend using that damage sensor

balmy stratus
#

/execute @a[tag=test] ~ ~ ~ function test Where is theu mistake?

rapid drift
#

probably u need the new syntax

balmy stratus
#
  "format_version": "1.17.0",
  "minecraft:recipe": {
    "description": {
      "identifier": "myaddon:craft_my_item"`
    },
    "result": {
      "item": "minecraft:diamond_sword",
      "count": 1
    },|
    "ingredients": [ 
      {
        "item": "minecraft:diamond",
        "count": 1
      }
    ],
    "priority": 1,
    "exp": 5,
    "minecraft:crafting_shaped": { 
      "pattern": [
        " D ",
        " D ",
        " S "
      ],
      "key": {
        "D": {
          "item": "minecraft:diamond"
        },
        "S": {
          "item": "minecraft:stick"
        }
      }
    },
    "minecraft:on_crafted": [ 
      {
        "function": "myaddon:first_time_item_craft"
      }
    ]
  }
}```
#

Is there any error in this code?

potent pine
balmy stratus
mighty rune
#

How can I give myself or setblock a chest with name just "§a"? For testing a plugins i made

fallen steppe
#

You could rename one in an anvil, place it, save it as a structure then load it wherever needed @mighty rune

mighty rune
#

Ohh i didn't know i can do that in anvil

#

Thanks!

rain pelican
#

how can I round up entity rotation to closest 0/90/180/270/360 degrees?

#

So when I run the command it only faces exactly north/south/east/west depending on the facing of the entity?

quartz dawn
rain pelican
#

the animations I now have are animation wise

quartz dawn
#

You can use q.head_y_rotation to check for the current rotation of the entity and rotate it accordingly.

open quiver
rain pelican
open quiver
#

You should run it from an animation

#

here it is from a command:

execute if entity @s[rym=-45,ry=45] run tp ~~~ 0
execute if entity @s[rym=46,ry=135] run tp ~~~ 90
execute if entity @s[rym=-180,ry=-136] run tp ~~~ 180
execute if entity @s[rym=136,ry=180] run tp ~~~ 180
execute if entity @s[rym=-135,ry=-46] run tp ~~~ -90
#

best to have both though

rain pelican
open quiver
#

remember that rotation in a server-side entity is from -180->180

open quiver
#

it is what I use to create fake blocks

rain pelican
open quiver
#

no

rain pelican
#

Thats great thanks!

iron meadow
#

if the player is on the given cords and does not have the kk tag, it teleports him to x=1,y=1,z=1. How to write this as a command?

#

I've already made it
/execute as @a[x=-9642,y=78,z=-9945,r=1.7] at @s[tag=!www] run tp @s ~ ~ ~-2

thick rampart
iron meadow
turbid plaza
#

Hey guys! Quick question. How can I write two-word names inside a @e[name=X] selector?

turbid plaza
#

Yeah, it didn't worked because I changed the NPC name in the UI, not with the summon command

#

Thanks!

turbid plaza
#

I need some help creating a minigame for a world I'm working on. I have a pressure plate connected to a dispenser that contains different types of food. Vegetables, fruits, meat, and a golden apple. Each time the player steps on the pressure plate, a random food will drop from the dispenser. What I want to do is to assign each type of food a point value to create a final score at the end of the minigame, which will last about a minute or two. Fruits and veggies are one point, meats are two points, and the apple is five points. The thing is, I'm not exactly sure how to identify which foods are falling from the dispenser each time and I how to assign a single point to a dispenser when that fruit drops. Since using the /testfor command will identify the food, but then it'll assign points while it's there on the ground. I had some thoughts on this, and maybe adding a /kill command will work, but I that will make the food practically invisible tho the player. Also I think that if the player picks up the food, it will be much easier to detect the food in their inventory and then assign a point. But since the dispenser drops the food vertically, and the pressure plate is a couple of blocks away, so the player has to step on the pressure plate, then walk to the dispenser, pick up the food, and then go back to the pressure plate, which is not the effect I want to show. The idea is for the player to have to press the pressure plate to get the dispenser to drop food as quickly as possible. Do you have any ideas on how I can solve this dilemma?

fallow cliff
turbid plaza
#

Yes

#

Because it's teaching about the Heimlich manouver

#

So the player needs to "apply preassure" on something, and the dispenser works as a "spitter" of sorts

turbid plaza
fallow cliff
turbid plaza
#

Thanks!

still phoenix
# turbid plaza I need some help creating a minigame for a world I'm working on. I have a pressu...

Button... Not sure pressure plate is idea... not sure if you can jump on it to keep pressing it. Also as you process the food for points, also tag it so that you do not process it again, while it is floating. There is also the chance that the player can drop the food to get points so make sure the area where points are gather is exact... or make a way they cannot stand there and drop stuff. ( like dispenser is up higher and processing area is a block below)

turbid plaza
#

No, you can't jump on the same block and re-activate the preassure plate, I've tested it. You need to move to one side and then jump from there

turbid plaza
#

But I have two main reasons for not using buttons:

  • First, I already have a minigame nearby where you have to press buttons based on a rythm, so I want to change the action for this one
  • Second, since the narrative is about applying pressure on the chest of a person (made by blocks in this case), it made sense to "jump" on a pressure plate that's located in the chest of that body made of blocks
iron meadow
#

do you know any scary playsound?

fallen steppe
#

The ghast scream can be scary if it's a jumpscare

fallow cliff
mystic apex
barren gulch
balmy stratus
#

@fallow cliff I want your player to throw tp in the direction he looked, can you tell me a command?

fallow cliff
turbid plaza
#

Guys, quick question, what's the selector I have to use to target different types of food?

mystic apex
#

If you're talking about the food item on the ground @e[type=item,name="cooked chicken"]

still phoenix
#

I th ink it is case sensitive, so case it right... if you are ever unsure.... throw one on the ground, backup and do a testfor for stuff close to you and you will get the floating-name

mystic apex
#

It's not case-sensitive

willow mesa
#

is there a way to summon an entity with a particular skin varriant?

mystic apex
#

If it's a custom entity, you can use a spawn event that changes the varient.

willow mesa
#

What if it is an NPC?

mystic apex
#

No. Not with only commands at least.

turbid plaza
turbid plaza
turbid plaza
mystic apex
spare sinew
#

can someone tell me how to run command that give slowness to entity's when players are not in a radius of 5

rain pelican
#
effect @e[r=-5,type=!player] slowness 1 255
#

@spare sinew

rain pelican
#

Oh yeah that exists

fallen steppe
#

ayo does negative radius work? that's sick

rapid drift
#

what's the sense of negative radius

tawdry rover
#

Everything outside of the radius

gritty musk
#

what is the difference between rm and negative r?

tawdry rover
#

rm is the maximum radius, negative r is anything outside the radius

lean canyon
#

Rm is minimum radius, while r is maximum

I don’t even think it accepts negatives?

testfor @a[rm=2,r=20] would find a player at least two blocks away and within 20

#

If r=- does work then maybe it’s the same as rm? Dunno

fallow cliff
fallow cliff
gritty musk
upper swift
#

Could someone help me, I would like the particle to be located right at the coordinate where the player has a vanilla sword.

#

execute @e[hasitem={item=nt:void_sword,location=slot.weapon.mainhand}] ~~~ particle nt:void_spear ~~1~

next nebula
#

is there is a list of animation that can be used on the player with /animation command (ping me)

balmy stratus
#

execute as @a at @s if block ~ ~-1 ~ minecraft:water run fill ~ ~-1 ~ ~ ~-1 ~ minecraft:ice
@fallow cliff the command correct?

turbid plaza
#

Hey guys! Is it possible to use rawtext and translate to name the entity in a /summon command?

#

This one is not working:
summon pix:human -34 70 285 ~~ pix:skin_25 { "rawtext": [{ "translate": "dialogue.npc_name.alejandro"}] }

balmy stratus
#

Hello, can someone help me?

#

I want a function that when I use it, it will dash the player 3 blocks forward.

balmy stratus
balmy stratus
#

@fallow cliff I don't want that, instead of TP, I want the player to be there fast, that is, dash. Is there a Function for this?

fallow cliff
#

/scoreboard players set @s dash 30

#

Repeat

/execute as @a [scores={dash=1..}] at @s run tp @s ^^^0.1
/scoreboard players remove @a [scores={dash=1..}] dash 1
#

Speed is 0.1 block per tick

balmy stratus
#

Ok thank you, I will try it and let you know.@fallow cliff

fallow cliff
balmy stratus
balmy stratus
#

@fallow cliff The command gave an error, what do you think is the problem?


execute as @s[scores={dash1..}] at @s run tp @s ^^^0.1
scoreboard players remove @a[scores={dash1..}] dash 1```
fallow cliff
#

dash=1..

balmy stratus
#

@fallow cliff I'm sorry, I took your time, it's all my property.

turbid plaza
#

If I use this command: /execute if entity @e[type=item,name="apple"] run say hi, I have to have Minecraft set in English for it to work

#

If I change it to Spanish, for instance (since it's my native language), I have to change the word "apple" to "manzana"

balmy stratus
#

@fallow cliff

scoreboard objectives add events dummy
scoreboard players set 1s ticks 100
scoreboard players add timer ticks 1
scoreboard players operation * events = timer ticks
scoreboard players operation chatMessage events %= 1s ticks
execute if score test events matches 0 run say 1```
#

Did I write the command correctly?

fallow cliff
#

Player-name to which remainder was applied and player-name being tested are different

  1. chatMessage
  2. test
balmy stratus
#

@fallow cliff I couldn't understand, it's okay if you just do it and throw it away, sweetie.

fallow cliff
#

idk what you need exactly...
And don't call me "sweetie" or such, I don't even know you

#

Here... idk if this is what you want

scoreboard objectives add ticks dummy
scoreboard objectives add events dummy

scoreboard players set 1s ticks 20
scoreboard players add timer ticks 1
scoreboard players operation * events = timer ticks
scoreboard players operation test events %= 1s ticks
execute if score test events matches 0 run say 1
balmy stratus
#

@fallow cliff It will count up to 30 times and after the counting is completed, a message will appear saying "finished".

#

Let it count as 30 messages, without being seen, and then just say "done".

mystic apex
#

Or you could use scripting

turbid plaza
#

Yes, I'm using multiple commands since I don't know a thing about scripting. But I never thought that the language would be a thing when targeting a vanilla food

lusty sable
turbid plaza
#

Since I got lots of items but only a few different kind of foods, it's faster to just do one command for each language. But that'll a good solution if I had less items

upper swift
#

whats the playanimation when just hitting a mob or mining a block?

#

im trying to run a command specifically for that

fallow cliff
green nymph
upper swift
green nymph
balmy stratus
#

@fallow cliff Can you tell me a system that will add 5 points every second and stop at 100 at the end?

#

When the player used a power, it will be 80, then it will stop at 100 for 1 second, 5 points, for example like this

fallow cliff
lone abyss
#

how do i summon a chicken where ever i look

#

using execute facing

mystic apex
#
execute at @a run summon chicken ^ ^ ^3.5
lone abyss
#

thanks

lone abyss
mystic apex
#

Please clarify

lone abyss
#

okay so /execute facing ^ ^ ^3 run event entity @e[r=2] test:test

#

something like thsi

mystic apex
#

So you want to execute an event on the closest chicken infront of the player?

lone abyss
#

yes

#

it should do facing

#

cuz player can look up or down

mystic apex
#
execute at @a positioned ^^^3.5 run event entity @e[type=chicken,r=2,c=1] test:test
lone abyss
#

thanks

#

/execute at @s positioned ^ ^ ^3 run event entity @e[c=1,r=3,family=chicken] test:test

#

i tried doing this in the addon but it failed to run

#

in world it works

mystic apex
#

In which context are you running it?

lone abyss
#

animation controllers

#

on_exit

#

and on_entry

#

i swear they work animation controller but only command doesnt

mystic apex
#

Send your animation controller

lone abyss
#

kk

#

"controller.animation.chickentest":{
            "initial_state": "setup",
            "states": {
                "setup": {
                    "transitions": [
                        {
                            "open": "q.variant == 1"
                        }
                    ]
                },
                "open": {
                    "on_entry": [
                        "/execute as @s positioned ^ ^ ^3 run event entity @e[c=1,r=3,family=chicken] test:test"
                    ],
                    "transitions": [
                        {
                            "setup": "q.variant == 0"
                        }
                    ],
                    "on_exit": [
                        "/execute as @s positioned ^ ^ ^3 run event entity @e[c=1,r=3,family=chicken] test:no_test"
                    ]
                }
            }
mystic apex
#

What entity is this ran from?

lone abyss
#

player

mystic apex
#

Try it with a debug command

lone abyss
#

works

#

it does /say

mystic apex
#

Interesting

#

Make sure the event exists

lone abyss
#

it does

#

command works in command block

#

i think the addon supports old commands

mystic apex
#

Wait

lone abyss
#

old syntax

#

xD

mystic apex
#

What is your min_engine_version?

lone abyss
#

1.17

mystic apex
#

It needs to be 1.19.50 or higher

lone abyss
#

thanks

glass wave
#

hey anyone there?

#

titleraw @a title {"rawtext":[{"text":"\n\n\n\n\n§a ● §r§dName§r : §a"},{"selector":"*"},{"text":"\n ● §dBalance§r : §a"},{"score":{"name":"*","objective":"money"}},{"text":"\n ● §dBank§r : §a"},{"score":{"name":"*","objective":"bank"},{"text":"\n\n\n"}}}]}

#

it's not working

#

@mystic apex

mystic apex
#

The end has too many brackets

#

And you need two brackets for score

glass wave
#

ok

#

thanks it worked

mystic apex
#

Np

rapid girder
#

How could I make it where it shows my kills and etc in this json file

/titleraw @a title {"rawtext":[{"text":"§r---------------\n"},{"text":"§aPlayer: ","extra":[{"selector":"@s"}]},{"text":"\n"},{"text":"§2Money:§a","extra":[{"score":{"name":"@s","objective":"money"}}]},{"text":"\n§r---------------\n\n"},{"text":"§3Kills:","extra":[{"score":{"name":"@s","objective":"kills"}}]},{"text":"\n"},{"text":"§4Deaths:","extra":[{"score":{"name":"@s","objective":"deaths"}}]},{"text":"\n"},{"text":"§cKillstreaks:","extra":[{"score":{"name":"@s","objective":"killstreaks"}}]},{"text":"\n\n"},{"text":"§eAdvanced "},{"text":"§cNetwork\n\n"},{"text":"§r---------------\n"}]}
```?
mystic apex
#

wow

#

Idk how you got that so wrong bro

rapid girder
#

@mystic apex What colors should I use for my personal scoreboard?

mystic apex
#

Idk

trail glade
#

how do you make it so that the block doesnt drop it self when destroyed with the /setblock command

lean canyon
#

/setblock ~~-1 ~ air wouldnt drop the block

trail glade
woven aspen
#

how can I turn dz relative to entity rotation? I want to detect entities in a line in front of my entity

heavy holly
#

is there anyway to exclude yourself from this @a execute if entity @a[scores={plot1=1..1000}]

subtle oasis
heavy holly
karmic yoke
#

Mcfunction example @heavy holly

tag @s add temp1

Execute if entity @a[scores={plot1=1..1000}, tag=!temp1]…

tag @s remove temp1

ebon cipher
#

Guys any one knows how to re enable achievements after adding behaviour pack

mystic apex
#

World NBT editor

woven aspen
#

is there a way to generate colored firework?

formal glade
#

Question: How would I check for a specific block in an large area. execute if blocks doesn't ask for a block to check for. Just if there are blocks. And the if block only checks 1 cord. How do I check large areas for a block? (in Stable, no api)

mystic apex
#

if blocks compares blocks

#

You would have to check every single block

mystic apex
formal glade
mystic apex
#

I don't see any missing

chrome pawn
#

how do i summon a splash potion with an effect

mystic apex
#

Save it in a structure

chrome pawn
#

…and how am i supposed to do that while a potion is f a l l i n g

mystic apex
#

Set a repeating command block to teleport the potion entity to itself

chrome pawn
#

hmm interesting that’s possible

#

thx

formal glade
strong oxide
#

For fake players, when Added to the list can we add images to those?

green nymph
strong oxide
green nymph
#

Unfortunately not; it’s a little outa my expertise so I’m defo not the person to talk to, but u can fs find some good videos online if u look up smt along the lines of ‘how to make custom font MCPE’ or smt like that

#

They’ll essentially explain how to make a sheet with images on; u just wanna break up wtv image u wanna put in ur title into little segments that fit inside the tiles

#

I think they’re typically smt like 8x8 pixels - no clue

fallow cliff