#Commands General

1 messages · Page 5 of 1

ebon cipher
#

._.

merry solstice
#

but I haven't done a teleport command with that ^

ebon cipher
#

Sorry i don't know either

merry solstice
#

symbol in a very long time.

merry solstice
ebon cipher
#

Wait

#

Maybe i can help

merry solstice
#

tysm man let me know if you can.

ebon cipher
#

What's ur problem?

merry solstice
#

I would really appreciate it

ebon cipher
#

What the problem man

merry solstice
#

So I would like to make myself a custom afk thing just for myself to keep my server up and running.

ebon cipher
#

Ok

#

So u want to make bot or something like that ?

merry solstice
#

everything is so teleporting when it is catching up!

ebon cipher
#

Ok then

merry solstice
ebon cipher
#

Ok

#

Hmmm

#

And u what to make it rotates with teleport command ?

merry solstice
#

I can only do command of what that I know of.

merry solstice
ebon cipher
#

._. that s false thing to do

merry solstice
#

I think some of the old stuff has broke over time.

ebon cipher
#

U are using the wrong command

#

/teleport command it just teleports players

#

Nothing elsse

merry solstice
#

/tp

#

and teleport is most the same thing man

ebon cipher
#

From x y z to x' y' z'

merry solstice
#

last that I check

#

x y z

#

dx dy dz

#

I know all of the classics

ebon cipher
#

I will search for it in wiki

#

Wait

#

I found it

#

/teleport <destination: x y z> [yRot: rotation] [xRot: rotation] [checkForBlocks: Boolean]

#

@merry solstice

#

/teleport <victim: target> <destination: x y z> [yRot: rotation] [xRot: rotation] [checkForBlocks: Boolean]

merry solstice
#

/clear @p[hasitem={item=diamond,quantity=64..}]

#

I know the advanced /clear stuff

merry solstice
ebon cipher
#

Bro ur goal is unclear

merry solstice
#

Brehhhh

ebon cipher
#

You want to rotate a player to face north or something like that ?

merry solstice
#

I want it to keep me rotating on a strate access.

ebon cipher
#

Oh

merry solstice
#

not up

ebon cipher
#

Ok ok

merry solstice
#

but horizontally

#

Dude I mastered all of that stuff ages ago.

ebon cipher
#

Sorry man but i can't help , in this situation

#

I know some behaviour pack things and add-on

merry solstice
#

north: /tp @p ~ ~ ~ 180 0
north: /tp @p ~ ~ ~ -180 0
north east: /tp @p ~ ~ ~ -135 0
east: /tp @p ~ ~ ~ -90 0
south east: /tp @p ~ ~ ~ -45 0
south: /tp @p ~ ~ ~ 0 0
south west: /tp @p ~ ~ ~ 45 0
west: /tp @p ~ ~ ~ 90 0
north west: /tp @p ~ ~ ~ 135 0
south up: /tp @p ~ ~ ~ 0 -90
south down: /tp @p ~ ~ ~ 0 90

ebon cipher
#

I m not too expert in those things , i don't want to waste ur time

#

But i will ask some of my professional friend in this domain

green nymph
merry solstice
#

No just rotating just constantly moving to different positions.

merry solstice
#

I don't understand how I am not explaining it properly

green nymph
merry solstice
#

BUT IT DIDN'T WORK BRO AND I DON'T KNOW WHY 😭

green nymph
ebon cipher
#

Bro

green nymph
# merry solstice

Cus ur running the command as the command block as opposed to as the player, so ur teleporting the player 5 degrees from the command block
U missed the execute component

#

The exact command ur looking for is:
/execute as <target> rotated as @s run /tp …

merry solstice
#

Forgot /execute was updated

green nymph
#

It’s been like that for over a year now how do u forget 😭

merry solstice
#

Like breh, I am so tired I didn't see the /execute

#

Don't bully me man plz.

merry solstice
merry solstice
#

I played modified server Minecraft bedrock edition CubeCraft.

#

Anyway, I back now.

#

Let's see if this works now that I am looking at it on computer.

#

@green nymph

green nymph
#

Hello

merry solstice
#

I have entered

#

sped mode.

#

LOL

#

/execute as @a[tag=OPAFK] rotated as @a[tag=OPAFK] run /tp @a[tag=OPAFK] ~ ~1 ~ ~90 0

merry solstice
#

I am very pleased that it works now.

green nymph
#

I got u sunglas

merry solstice
merry solstice
#

**```
/execute as @initiator run agent create

/execute as @initiator run agent turn right

/execute as @initiator run /agent tp X Y Z

merry solstice
#

This allows you to summon the agent in minecraft bedrock edition child

proud mural
#

Hi guys, how i make a scoreboard appear with the titleraw?

shut crater
#

Heres the format: /titleraw @a { "rawtext" : [ { "score" : { "name" : "*" , "objective" : "obj"} } ] }. This displays the reader's value of the objective obj. You can also use a specific name as well.

Here's the kind to the wiki page on the general format for titleraw and tellraw:
https://minecraft.wiki/w/Raw_JSON_text_format#bedrock_edition

Minecraft Wiki

Raw JSON text is the format Minecraft uses to send and display rich text to players. It can also be sent by players themselves using commands and data packs. Raw JSON text is written in JSON, a human-readable data format.

haughty ridge
#

after 2 years of college i wanted to learn everything bedrock wiki offers from start to finish again so a lot of things seems to have changed.
after learning the basic things again i wanted to test some things so i opened a new function created a tick.json and wrote basic commands.

wanted to use the new Block States as the example in Bedrock wiki but it seems like these new block states doesnt work in a function?

#

but the old aux data works fine

#

is this a glitch i accured or simply functions doesnt allow block states?

#

if i use blockstates in a function it becomes unusable wow

thick rampart
#

also sometimes it uses : instead of = for the block states

haughty ridge
#

oh yeaa

#

that was the problem i was using 1,19,0

#

so its probably was using the old commands

#

what a great way actually so the old addons still work in new versions??

quartz dawn
topaz venture
dull grail
thick rampart
unkempt tapir
#

How telepor player for other dimension

thick rampart
#

execute in nether run teleport ~~~

haughty ridge
topaz venture
opaque venture
#

:^

merry solstice
#

Hey StrafeYourself here, so I am trying to make a good sell system, and I am failing to get it to sell your item by an exact one block position. So if anyone may please help me out and perhaps tell me what I have done wrong, it'll be greatly appreciated.

#

/clear @p[x=50,y=212,z=-27,dy=0] nether_star 0 1

#

Here is the command. Other than that I can't wait for what ever amazing and genius person replies. As I cannot visualise of what I do not know!

#

@p[x=X,y=Y,z=-Z,dy=0]

topaz venture
#

Try using dx=1,dy=1,dz=1 and xyz at the lowest coordinate possible in the block, or rather the block above. Or you can do the neat trick of making a more big radius and just check if the player is standing on a specific block

haughty ridge
#

/execute positioned ~ ~1.5 ~ run clear @p[r=0.2] nether_star 0 1

#

you can resize the selected are by changing the r=? value

haughty ridge
#

also made the r= value to 0.2 block so its also centered

merry solstice
#

Still didn't work.

merry solstice
#

Btw, how do advertise this server.

#

What's the discord link when you need to advertise it.

merry solstice
merry solstice
bitter dome
#

Can I detect item durability using commands?

trim zenith
#

Idk if it's changed or not, but iirc you can check the item with hasitem selector

bitter dome
trim zenith
#

With data, I'm not sure if it's works on another mods, but I guess you can use Script API

bitter dome
bitter dome
trim zenith
#

Check the item durability by how many times the item has been used

bitter dome
trim zenith
#

Like data=0 is new item, data=1 that means the item has been used one time (the durability depleted by 1), etc

bitter dome
#

Oh let me try

merry solstice
#

Hey Minecraft Bedrock Edition Add-ons Community!

#

I am trying to make a system where players can buy infinite effects if they really want something to sweat and grind for.

#

So I here is the problem I want it to be vanilla but not modified!

#

Now I am trying to get the exact vanilla time down pat where I want it to be for exactly 1 minute and 30 seconds for it to run out and then reapply.

#

Now, I don't understand what is wrong with my maths as.

#

20 in game minecraft ticks is equal to 1 real life second if I may be correct right?

#

Now I made it 1820 but it reapplies like way before that.

#

Now I hope you enjoy another cringy clip but with less background noise.

#

With being more cringey due to me turning of the fan and shutting my windows resaulting in me not being able to get enough air in my noggen to think straight

topaz venture
# merry solstice

try copying the command destroying the command block and placing it back down, also are you sure there arent any other command blocks which could afflict speed as well?

haughty ridge
#

And yes using radius would help a lot

topaz venture
#

oh hmmm why dont you use just really long effects instead?

topaz venture
#

yeah but if you reapply it when it runs out wouldnt it be much easier to just make it really long instead?

marble canyon
#

Any programmer who wants to help with servers write to the private

merry solstice
merry solstice
drifting verge
#

help!


                        "run_command": {
                          "command": [
                            "setblock ~~-1~ aba:protective_door [\"aba:door\"=\"open\",\"minecraft:cardinal_direction\"=\"west\"] "
                          ]
                        }

Json][error]-Ошибка синтаксиса: непредвиденное «=»: в «"aba:door">>=<<"open","mi»

[Commands][error]-Command response could not compile commands

mystic apex
#

Use : instead of =

drifting verge
drifting verge
# mystic apex Use `:` instead of `=`

[Molang][error]-block_definitions | /storage/emulated/0/Android/data/com.mojang.minecraftpe/files/games/com.mojang/behavior_packs/[АБА] | blocks/doors/up_protective_door.json | /storage/emulated/0/Android/data/com.mojang.minecraftpe/files/games/com.mojang/behavior_packs/[АБА] | blocks/doors/up_protective_door.json | aba:up_protective_door | events | aba:event | condition | condition | Error parsing: query.block_neighbor_has_any_tag(1,0,0, 'stone' || 'wood' )

mystic apex
#

query.block_neighbor_has_any_tag(1,0,0, 'stone') || query.block_neighbor_has_any_tag(1,0,0, 'wood')

dull grail
#

because it will check for any of the tags listed

mystic apex
#

Maybe

#

I don't mess with molang that often

drifting verge
marble canyon
#

Hello, good evening, I am looking for minecraft bedrock realm programmers who know how to program a scoreboard mod.

drifting verge
# mystic apex I don't mess with molang that often

[Molang][error]-block_definitions | /storage/emulated/0/Android/data/com.mojang.minecraftpe/files/games/com.mojang/behavior_packs/[АБА] | blocks/doors/up_protective_door_a.json | /storage/emulated/0/Android/data/com.mojang.minecraftpe/files/games/com.mojang/behavior_packs/[АБА] | blocks/doors/up_protective_door_a.json | aba:up_protective_door_a | events | aba:event | condition | condition | query.get_equipped_item_name !== 'key_card_a' || query.get_equipped_item_name !== 'key_card_b' || query.get_equipped_item_name !== 'key_card_c' || query.get_equipped_item_name !== 'key_card_d' || query.get_equipped_item_name !== 'key_card_aba' | Error: complex expressions (contains either '=' or ';') must end with a ';'

trim zenith
#

Please ask on #1067869318383157430 channel instead

upper swift
#

is there a way to make music play even if someone has it turned off in settings

#

like sounds have categories

exotic apex
#

/give @s stick 1 0 {"item_lock":{"mode":"lock_in_inventory"},{"minecraft:keep_on_death":{}}
how do u combine the componets

trim zenith
#

You don't need { before "minecraft:keep_on

/give @s stick 1 0 {"item_lock":{"mode":"lock_in_inventory"}, "minecraft:keep_on_death":{}}
exotic apex
#

:o

#

tysm

jagged meadow
#

how to force some player to mount in a mob

#

?

spare veldt
royal turret
#

i have an error: "Invalid JSON form received. Error: /content/0: unable to find the 'options' property."

topaz venture
balmy stratus
#
execute as @a[hasitem={item=heromaster:duals_deagle,location=slot.weapon.mainhand},tag=!reload,scores={ammo=1..}] at @s if entity @s[tag=reloaded] run titleraw @s actionbar {"rawtext":[{"score":{"name":"*","objective":"ammo"}},{"text":"/12"}]} execute as @a[hasitem=[{item=heromaster:duals_deagle,location=slot.weapon.mainhand},{item=heromaster:deagle_magazine,quantity=0..}],tag=!reload,scores={ammo=0..}] at @s if entity @s[tag=reloaded] run title @s actionbar No Ammo scoreboard players set @a[tag=reloaded] reload 0 execute as @a[scores={ammo=..0,reload=..0},tag=reloaded] at @s run tag @s remove reloaded execute as @a[scores={ammo=..0}] at @s run tag @s add reloaded execute as @a[scores={reload=1..20}] at @s if entity @s[hasitem={item=heromaster:deagle_magazine,quantity=1..}] run title @s actionbar reload execute as @a[scores={reload=0..19}] at @s if entity @s[hasitem={item=heromaster:deagle_magazine,quantity=1..}] run scoreboard players add @s reload execute as @a[tag=reload,scores={reload=10},hasitem=[{item=heromaster:duals_deagle,location=slot.weapon.mainhand,data=12},{item=heromaster:deagle_magazine,quantity=1..}]] at @s run playsound reload_sound @s execute as @a[tag=reload,scores={reload=19},hasitem=[{item=heromaster:duals_deagle,location=slot.weapon.mainhand,data=12},{item=heromaster:deagle_magazine,quantity=1..}]] at @s run replaceitem entity @s slot.weapon.mainhand 0 heromaster:duals_deagle 1 0 execute as @a[tag=reload,scores={reload=19},hasitem=[{item=heromaster:duals_deagle,location=slot.weapon.mainhand,data=0},{item=heromaster:deagle_magazine,quantity=1..}]] at @s run clear @s heromaster:deagle_magazine 0 1 execute as @a[tag=reload,hasitem={item=heromaster:duals_deagle,location=slot.weapon.mainhand,data=0}] at @s run tag @s[tag=!reloaded] add reloaded execute as @a[tag=reload,hasitem={item=heromaster:deagle_magazine,quantity=..0}] at @s run tag @s[tag=!reloaded] add reloaded execute as @a[tag=reload] at @s unless entity @s[hasitem={item=heromaster:duals_deagle,location=slot.weapon.mainhand}] run tag @s add reloaded execute as @a[tag=reloaded] at @s run tag @s[tag=reload] remove reload```

```[Commands][warning]-Function magazine_reload_system failed to load correctly with error(s):

[Commands][warning]-Error on line 10: command failed to parse with error 'Syntax error: Unexpected "": at " @s reload>><<"'

[Commands][warning]-Function listed in tick.json with name magazine_reload_system not found.```

Why did it give this error please help
spare veldt
rain pelican
#

How do I detect with execute if an entity is at specific coordinates?

spare veldt
#

or

execute if entity @e[type=?,r=1,x=?,y=?,z=?] run ...
balmy stratus
#

@spare veldt js execute as @e[r=3,tag=!Immune] run damage @s 9 entity_attack entity @p

How do we do this so that the mob in front of it doesn't hit and the player does?

balmy stratus
# spare veldt Can you explain better?

It deals damage all around the player, including the player. I want it to hit only from 3 blocks away and in the direction the player is facing, so that the player does not deal damage to himself.

spare veldt
balmy stratus
spare veldt
#

Do you want to cause damage to all entities around a player, except himself?

execute as @p at @s run damage @e[rm=0.1,r=3] 9
balmy stratus
devout apex
#

My function is not showing on the functions list..

gamerule sendcommandfeedback false

execute as @e[type=item,name="Raw Iron"] at @s run give @p iron_ingot
execute as @e[c=1,type=item,name="Raw Iron"] at @s run summon xp_orb
execute as @e[type=item,name="Raw Iron"] at @s run kill

execute as @e[type=item,name="Raw Gold"] at @s run give @p gold_ingot
execute as @e[c=1,type=item,name="Raw Gold"] at @s run summon xp_orb
execute as @e[type=item,name="Raw Gold"] at @s run kill

execute as @e[type=item,name="Raw Copper"] at @s run give @p copper_ingot
execute as @e[c=1,type=item,name="Raw Copper"] at @s run summon xp_orb
execute as @e[type=item,name="Raw Copper"] at @s run kill

execute as @e[type=item,name="Ancient Debris"] at @s run give @p netherite_scrap
execute as @e[c=1,type=item,name="Ancient Debris"] at @s run summon xp_orb
execute as @e[type=item,name="Ancient Debris"] at @s run kill 
#

pls help

#

i tested the commands inside a command block.. It works there

shut crater
#

Are you getting any content log errors? Also, is your pack in the development_behavior_packs folder? It won't refresh except for when mc loads if it isn't

#

If it is, you just need to leave and rejoin the world

jagged meadow
raw path
bitter dome
#

I made this for my projectile when hits summons particle how do I make it such that it doesn't not summon particle when it hits a entity?
"on:hit": { "run_command": { "command": [ "particle gun:ricochet_effects"

native mantle
#

How do i make a wall appear right in front of the player, facing the player as well? I know you use “^” and /fill, but i would like a wall to appear where the player is looking, I’m sure it’s possible to make it with just one command but idk how

spare veldt
#

The first ^ corresponds to the width of the wall, the second corresponds to the height and the third to the distance between the wall and the player

half sundial
#

Using the /loot command, how can I have the spawned loot spawn centred on a block and not aligned to the grid? Currently, whenever I spawn loot it spawns at the bottom corner of the block—not the centre

thick rampart
half sundial
thick rampart
half sundial
half sundial
#

I think it might just be a problem with the command. It's like the game keeps rounding the coordinates down, so the items always spawn at the block's bottom corner. If anyone has got this command to work with centering on a block's position, please let me know.

half sundial
#

I've decided to just use /structure and load in a structure void with the item in

brisk rune
#

how i can add mcfunction file to a script.js file

shut crater
#

You can use runCommand("function your_function") from either a dimension or player I suppose. Though most of the time what can be done with functions can be done more efficiently with just scripts

unborn burrow
#

How can i make an item act like The Recall Button in Mobile Legends Bang Bang?

#

And how to add a respawn timer after death in a gamemode?

quartz dawn
# unborn burrow How can i make an item act like The Recall Button in Mobile Legends Bang Bang?

I haven't played Mobile Legends Bang Bang so I don't anything about it. For your second question, please refer to these guides:-
https://wiki.bedrock.dev/commands/on-player-respawn
https://wiki.bedrock.dev/commands/scoreboard-timers

unborn burrow
quartz dawn
# unborn burrow Like you used the item, you have to stay still for five second and it will send ...

You can check if the player has used the item using animation controllers or Script API, then run the commands:-

/inputpermission set @s camera disabled
/inputpermission set @s movement disabled
```.
After it, use the scoreboard timers guide I sent to create a timer then at the end of the timer run your teleport command and:-
```js
/inputpermission set @s camera enabled
/inputpermission set @s movement enabled
```.
unborn burrow
#

I see, but if say an enemy player hits the other player, the animation stops?

quartz dawn
#

but you can do it using a minecraft:damage_sensor component in player.json or Script API.

unborn burrow
#

I see

#

Tysm for the info

robust fulcrum
#

/tp @e[family=backpack,r=4,c=1] @s

This command keeps on tping me to the backpack entity

lean canyon
#

It’s not that command then, that’d teleport the backpack to you, not the inverse

robust fulcrum
lean canyon
#

That command would teleport the backpack to you

robust fulcrum
#

Target is the holder

glossy crystal
#

i was doing some bds stuff and i found out there is a command called /transfer..
how do i use the first argument

glossy crystal
#

it appers the command was added in 1.20.30... i returned to minecraft in a good timing

mystic apex
half sundial
#

Can /playanimation play behaviour pack animations (the ones that can run commands)?

half sundial
#

Damn, I was hoping it would...

robust fulcrum
#

anything wrong here?
I keep on getting an error message that the mcfunction which this command is in diesnt exist

#

wondering if this command was invalid

brazen lion
#

I don't think that's invalid

robust fulcrum
spare veldt
robust fulcrum
#

it fixed the problem

turbid plaza
#

Guys, does anyone knows why this command is not working inside a dialogue file?

/setblock -2792 72 2204 stained_glass [\"color\"=\"red\"]

PS. that coordinates are inside a ticking area, and when I use it in the chat on the exact same spot of the NPC that triggers this command, it works

spare veldt
turbid plaza
native mantle
spare veldt
native mantle
#

Thats nice!

keen summit
#

/execute as @a[tag=blue] facing entity @a[tag=blue] feet run effect @s weakness 2 1 true
This is running even if im only one on world with blue

#

@green nymph

green nymph
keen summit
#

I am little confused atm

green nymph
#

idk what ur trying to do

keen summit
#

A team system

#

I just need the execute fixed

#

so it gives it to them if there facing at anaother blue person feet

#

Please help lol

green nymph
#

oh, right; its not rly an easy thing to do w just commands, but the closest u can get is smt like this:
/execute as @a[tag=blue] at @s anchored eyes positioned ^ ^ ^2 if entity @a[tag=blue,r=1.9] run /effect ...
this will run from 2 blocks in-front of wherever someone with the tag blue is looking, and will give them weakness if anyone with the tag blue is in a radius of 1.9 blocks

keen summit
#

Idk how ^ ^ ^ never learned it

green nymph
#

ud need to use a raycast for that which isnt super practical here
^ is just like ~, but instead of being relative to the x y z axis, its relative to the players rotation:
^ ^ ^ just means: left-right, up-down, forward-backward

keen summit
#

um so I would do

#

/execute as @a[tag=blue] at @s anchored feet positioned ^ ^ ^5 if entity @a[tag=blue,r=4.9] run /effect @s weakness 1 1 true
/execute as @a[tag=blue] at @s anchored eyes positioned ^ ^ ^5 if entity @a[tag=blue,r=4.9] run /effect @s weakness 1 1 true
/execute as @a[tag=blue] at @s anchored feet positioned ^ ^ ^5 if entity @a[tag=red,r=4.9] run /effect @s weakness 1 1 true
/execute as @a[tag=blue] at @s anchored eyes positioned ^ ^ ^5 if entity @a[tag=red,r=4.9] run /effect @s weakness 1 1 true

#

First one RUA and next ones CUA

green nymph
#

sure, why not

keen summit
#

ty

#

It does not want to work

green nymph
#

how so

keen summit
#

Im here

#

and it still giving the effect

green nymph
#

may be the case that the ones anchored to the eyes have too large of a radius meaning its detecting urself also
u can reduce the radius to prevent that from happening; this is why teams systems in exclusively commands arent practical

keen summit
#

ty

#

@green nymph I feel like when I hd my acing way worked a lot better if I get it to not effect myself

#

I have most complex way to do it

#

Use a id system and do every single id beside mine it be like 10x the cmds

green nymph
#

i have no idea what ur trying to say, son

keen summit
green nymph
keen summit
#

but there is a way to fix

#

it will require about

#

100cmds

green nymph
#

why

keen summit
#

It allows the commnads to work

green nymph
#

yeah but why

#

thats just inoptimal and excessive ash

keen summit
#

But it will allow a team system

green nymph
#

yeah

#

describe

#

how

keen summit
#

ID System

green nymph
#

why would that ever take 100 commands

keen summit
#

/execute as @a[tag=blue] facing entity @a[tag=blue,scores={id=!1}] eyes run effect @s weakness 1 1 true

#

That for id 1 to run

#

Wait

#

that wrong

green nymph
#

u have no idea what that command does

keen summit
#

I do

green nymph
#

i can assure u, u do not

keen summit
#
/execute as @a[tag=blue] facing entity @a[tag=blue,scores={id=!1}] eyes run effect @s weakness 1 1 true
#

Wait im dumb

#
/execute as @a[tag=blue,scores={id=!1}] facing entity @a[tag=blue] eyes run effect @s weakness 1 1 true
#

There

green nymph
#

u still dk what that command does 😭

keen summit
#

Ok let me explain it

green nymph
#

ik what u think it does

#

but its not what it does

keen summit
#

Got it to work

#

nvm

#

😦

green nymph
#

yep

keen summit
#

How can I get it to work 😦

#

I got a team system with a behavior pack but i want one with cmds

green nymph
#

facing doesnt test when ur facing an entity

#

it sets the direction towards the target entity

keen summit
green nymph
#

ur basically just saying, run the command as all players, look at the target entity

#

except it doesnt even do anything, bc ur command has nth to do w direction and ur also running it from the command block's position

keen summit
#

So is it not possible?

#

I heard from someone they did it

#

so I have been trying to figure it out

green nymph
#

whoever said they did it w only commands v likely exaggerated how accurate it ac is; theres no way to make a 100% accurate, bug-proof, flawless team's system w just commands - hence why i said we dont do it

keen summit
#

I just feel like it is possible

green nymph
#

probably not

keen summit
#

using armor stand invis

#

detecting if they are in a radius on a cord

#

I feel like it is possible

green nymph
keen summit
green nymph
keen summit
#

I find a way to do it but your right it not for a game

green nymph
#

well thats what i been tryna say

#

its not hard to do, its hard to make practical

#

like i said before, u can use a raycast w an armour stand to testfor players in a radius of where ur looking

green nymph
#

but that can cause lots of problems in a practical environment, so its not rly useful

keen summit
#

I know it not practical I just want it so badly lol

#
/execute as @a[tag=blue] at @s anchored eyes positioned ^ ^ ^2 if entity @a[tag=blue,r=1.9] run /effect @s weakness 1 1 true```
green nymph
# keen summit What a raycast?

its the process of essentially drawing a line between point A and B to find out where obstructions are
for example, shooting out a ray to find the block ur looking at, or the entity ur looking at

keen summit
green nymph
#

its not super hard to make:
summon an armour stand at Point A, then have it face the desired direction
then use the following command to shoot it out; in this example, ill be testing for when it hits a block, however u can easily change that by altering the if statement:
/execute as @e[c=2] as @e[c=2] as @e[c=2] as @e[c=2] as @e[c=2] as @e[c=2] as @e[tag=RayCast] at @s if block ^ ^ ^0.1 air run /tp ^ ^ ^0.1
this moves in step increments of 0.1 blocks, and tests for a maximum of ~6.4 blocks

verbal oak
#

if anyone knows how to help me w this I'd really appreciate it, its ruined my motivation to keep working on this jjk addon if this persists but idk what im supposed to do#1207114426755457035

keen stag
#

can someone help me rotate a armor stand in be

topaz venture
keen stag
#

@topaz venture

topaz venture
#

/execute as @e[type=armor_stand,c=1] at @s run tp @p ^^^1
this should tp a player infront of a armor stand

brisk rune
#

Can I make a block throw item when is interact with commands???

stoic oxide
brisk rune
#

I want this when a wood beening stripped to throw an item

stoic oxide
#

Not possible with vanilla blocks

keen stag
#

hi

topaz venture
keen stag
#

yes

#

thatw orks totally

#

I need help

keen stag
#

for so.e reason my experimental features won't stay on

shut crater
worthy narwhal
#

Can someone like really try to help me with commands i never did them and i really wish someone could give me time and help me in private for my addon . Appreacite

topaz venture
worthy narwhal
#

and i don't understand the docs

worthy narwhal
worthy narwhal
native mantle
#

How do i check when an entity is in a specific set of y coordinates from the starting position to 30 blocks above, and if the if the entity is in that range, it will run a command?

#

I think i do “execute at @e[y=..30] run …?”

topaz venture
#

xyz selector arguments merely set the execution position for other selector arguments in that selector something like "/execute as @e[x=0,y=0,z=,dy=29]" should work like you're trying to do, just replace the 0's with your starting position, also please note that the dxdydz arguments were changed to check for hitbox so there might be a tiny inaccuracy if that matters

native mantle
#

The context is that i am trying to make an item powered nuclear bomb that will detonate any item within a 30 block radius and will test for items 30 blocks above the shockwave

native mantle
topaz venture
native mantle
#

I thought dy means direction facing up/down?

topaz venture
native mantle
#

Alright thanks

native mantle
topaz venture
native mantle
topaz venture
native mantle
topaz venture
native mantle
#

yes

#

like a shockwave, basically

#

Video showing mod development progress on my minecraft 1.19.2 forge modding project aiming to create the most realistic nuclear explosions minecraft has ever seen.

There is no download link just yet as I'm still in early development, but I'll definitely keep you up to date with development progress here and do an announcement once it's ready.

▶ Play video
#

and i'd rather not use a bunch of entities that are not items

topaz venture
#

alr well to do that you can combine the 2, first make a full 3d sphere using the r argument you know how to do that, and then you can make a 2d square/rectangle and the area that will be used will be the only area which overlaps so @e[dx=10,dz=10,r=10]

native mantle
#

is there a way to make it in a circle?

topaz venture
#

i mean that is what you asked, so this @e[dx=10,dz=10,r=10] creates a circle like shape, i havent used those in quite some time so you might need to add a dy=0 to make it @e[dx=10,dy=0,dz=10,r=10]

#

oh actually its more like a quarter circle, its late for me so i'll just give you the correct solution when im back

topaz venture
#
/execute positioned 0 0 0 as @e[r=10] at @s[x=~-10,z=~-10,dx=20,dy=0,dz=20] run say hi

this should create the wanted circle like shape, the first 0's are the center of the circle like shape

#

also since you prefer pings @native mantle

native mantle
topaz venture
#

was there a item near the position executed?
also ~0 does nothing, just ~ is okay

topaz venture
#

nice

worthy narwhal
#

How can i make this custom compass (connected to the lodestone) always in inventory even if u died

exotic apex
#

keep on death

worthy narwhal
#

wdym

stoic oxide
# worthy narwhal wdym

Ivan :
/give @s lodestone_compass 1 0 {"minecraft:keep_on_death":{}}
Will give you a lodestone compass that will stay in the inventory even if keep inventory is set to false

worthy narwhal
topaz venture
tribal pewter
#

how would i make a "fake" player appear here? ive got the working join message just idk how or if i can make someone appear here

median gull
tribal pewter
tribal pewter
#

why is the ticking area not going fully to my cords?

fallen steppe
#

Because tickingareas are defined by chunks. The feedback message is showing you which chunks include that area you specified

#

80 / 16 = 5, 64 / 16 = 4, 160 / 16 = 10, etc...

tribal pewter
fallen steppe
#

Yes

tribal pewter
#

bottom left cornor to top right cornor

#

@fallen steppe

fallen steppe
#

What?

#

Yes whatever region you set in the ticking area is in the ticking area if that's what you're asking

tribal pewter
fallen steppe
#

Look at the bounds. The command result told you it created a region from:
Min: 80, 64 to Max: 159, 143. Comparing that with your area requested being Min: 92, 156 to Max: 79 to 143 you can see that the output covers what you "requested"

#

y doesn't matter since chunks are slices and include all y blocks in the x, z chunk

tribal pewter
fallen steppe
#

Yes

tribal pewter
#

ok thank god XD

fallen steppe
#

You can test it by placing a bao_cmd_repeat_unc to spam chat, fly away from the area and make sure the messages are still being sent

tribal pewter
#

and that you

#

Sir

fallen steppe
#

Test it for each corner of the area to validate that nothing was excluded for a sanity check

tribal pewter
#

it do work

tribal pewter
#

it removes offline players

tribal pewter
median gull
#

use fake player in script

tribal pewter
#

me am much dumb

median gull
topaz venture
topaz venture
#

actually if you make a seperate objective for the real money just for fake players you could use "*" to transmit all fake players to the display one with just 1 command, this would be much easier and much more optimised

tribal pewter
#

How do i add a ! so its if the player doesnt have this item it outputs a signal

mystic apex
#

quantity=0

tribal pewter
tribal pewter
# mystic apex `quantity=0`

if you dont mind :L how would i make this work?
/tag @a[hasitem={item=bow,data={"name"="AimBot Bow"}] add AimBot

#

like detect if someones got a named item

mystic apex
#

That's only possible with scripting

noble mason
#

I’m trying to run an ‘execute at’ command near a player that “hasitem”. So far I can’t get it to work with specially named items. Can anyone tell me if this is possible?

mystic apex
noble mason
#

Ahh okay dang

#

But if i added and checked for a tag would it work?

#

Or no because thats still only looking for an item and not an entity

#

And you can only tag entities

topaz venture
#

yeah all tags get removed on pickup since its no longer an entity

noble mason
#

Dang. Any idea for a work around? Otherwise for what im doing ill just limit it to a specific player not @p

topaz venture
#

i mean i dont know what you're trying to do with an item but best specification you could get is using the data value of hasitem, if you give yourself a stick with the data 1000 it will remember the data and can be accessed by hasitem through that, i dont know if its saved on drop tho

noble mason
#

Ive never used data values before

#

Is there an easy way to assign a data value to an item? I can also just look that stuff up and test it.

#

Thanks already for confirming!!

topaz venture
#

you can always check the syntax of a command in chat

#

for give its:
give <player: target> <itemName: Item> [amount: int] [data: int] [components: json]

noble mason
#

Thanks!

tribal pewter
#

how would i do smth like this?
/execute as @a[tag=PlotTrapped] positioned 83 60 -799 run tag @a[r=!7] add ban
if the person with the tag isnt in a area they get banned

worthy narwhal
#

/give @p minecraft:light_blue_banner{BlockEntityTag:{Patterns:[{Pattern:cbo,Color:15},{Pattern:cre,Color:3},{Pattern:mr,Color:9},{Pattern:flo,Color:15},{Pattern:ts,Color:15},{Pattern:pig,Color:15},{Pattern:bs,Color:15}]}} 1

can saomeone convert this java command into bedrock one

topaz venture
#

you will need to premake that banner, save the item as a entity in a structure and then load the structure using /structure to give players the item

topaz venture
worthy narwhal
#

for java and bedrock

topaz venture
#

well then it wont be craftable maybe you can edit the worldfiles nbt to cheat the item in but other than that i dont think you can get it in bedrock

worthy narwhal
#

mhm

tribal pewter
tribal pewter
topaz venture
# tribal pewter

yeah you can turn it off, thats why its in my name to not disable it as i very most likely will not see your message and in turn never respond

tribal pewter
#

that was what i was trying to "link"

topaz venture
#

some arguments dont accept ! to invert the result but the radius argument "r" actually has a counterpart called "rm" which does the logic you have written there

tribal pewter
topaz venture
#

yes

#

rm=1 means anyone who is at least 1 block away

tribal pewter
#

k so, rm=7 means if some one going 8 blocks away it activates? better question, how do i use this in a execute command so if the player leaves the 7 blocks they get a tag?

topaz venture
tribal pewter
topaz venture
#

np

stoic oxide
# tribal pewter ok thank you :D

If you want to remember "rm" it stands as Minimum Radius(rm in short)
Meaning the default commands radius are working at the exact position of the command block(then no minimum radius). But when you specify a minimum radius , the command block will work only in a circle shape beginning outside the specified radius based on the the center of the command block. In this case: 7 blocks

tribal pewter
#

How do i edit the "lore" of a item?

topaz venture
topaz venture
mystic apex
native mantle
#

is there a way to "mimic" a circle when using the spreadplayers command despite the command only spreading in squares?

topaz venture
#

yeah spreadplayers will still only use whole positions so it might look as wanted

native mantle
#

i dont know how to make it a circle though

topaz venture
#

/execute as @e[tag=circlespread] positioned x y z facing @s run tp @s ^^^r

#

this should work

#

xyz is the center of the circle

#

r is the radius of the cirlcle

topaz venture
#

it just tps everyone outside the circle into the circle at the outmost position

tribal pewter
#

So in earlyrer versions you were able to do this
/kick @a[tag=kick]
Now that this is no longer possible whats the best alternative?

topaz venture
jade dirge
tribal pewter
#

More like tag

tribal pewter
#

@topaz venture how would I crash there games?

sour hatch
#

How do i spawn a custom loot table?

spare veldt
sour hatch
spare veldt
worthy narwhal
#

is making commands in function put a delay between every commmand

#

like /say hi
delay of 30 seconds
/say welcome to dungeon

#

for example

topaz venture
tribal pewter
#

how do i name a item like this?

tribal pewter
mystic apex
tribal pewter
#

this tps everyone over and over

topaz venture
tribal pewter
#

now this

#

it tps everyone just over and over :/

mystic apex
tribal pewter
mystic apex
#

y from
dy volume

tribal pewter
#

ah

tribal pewter
#

E

mystic apex
#

What exactly doesn't work?

tribal pewter
mystic apex
#

Swap the values

tribal pewter
#

k

tribal pewter
tribal pewter
topaz venture
tribal pewter
#

im at -6 rn

topaz venture
tribal pewter
topaz venture
#

arguments always need to be hardcoded so you need to either make one for each player or give every player an id while they're online and use "For 1" or "For 2" to give the player with id 1 or 2 the item

tribal pewter
#

thx

#

How would i set up a thing so if you go into a area you get tagged, then if you leave you tp some where

#

/testfor @a[z=2,dz=-2,y=2,dy=-2,x=2,dx=-2] would it be smth like this?

topaz venture
#

yeah that checks if anyones hitbox collides in the area of x-1y-1z-1 to x2y2z2

tribal pewter
#

wait nvm its a 3x3x3\

#

im dumb

topaz venture
#

haha

tribal pewter
#

can you help me please, i dont understand why its 3x3x3

topaz venture
#

btw dxdydz should preferably be positive but its alr

topaz venture
#

so its already a 1x1x1

#

so if you change it todxdydz=1 it becomes a 2x2x2

tribal pewter
#

wait does the dx and x start from the command block?

#

@topaz venture

topaz venture
#

dx starts at the execution position, and x sets the execution x position for the arguments inside this selector. x does not start at the command block unless you do x=~+1

#

basically just like basic coordinates but you change them 1 by 1

tribal pewter
#

ok... so x=start cords, dx=end cords

#

if im understanding right

#

start X cord and end X cord

#

wait no cause then its a 5x5x5 cube 😭

#

i need help with understanding this :/

#

how do i scan from 0 to -10?

#

this doesnt work

#

replace the first -10 with 0

topaz venture
topaz venture
#

the block under the player?

tribal pewter
#

/execute as @a at @a run testforblocks ~~~ ~~-10~ -8 4 1 masked

#

um the hell?

#

~~-10~

tribal pewter
topaz venture
#

xyz is just the lowest coordinate of the thing you want to compare it against

tribal pewter
#

@topaz venture what would the command for these cords be? 91 83 -826 / 77 55 -812, for the dx dy dz thing

topaz venture
topaz venture
#

so 77 55 -826 would be xyz

#

for dxdydz, you just take how many blocks in each direction you want

#

77 to 91 is 14 blocks, so dx is 14-1

#

and do that for y and z too

tribal pewter
#

from one cornor to the other

topaz venture
#

oh wait ignore that

#

switched z and y

tribal pewter
#

math is herd

topaz venture
#

yeah you got the numbers all correct no worries

#

but you need to subtract 1 from each dxdydz since 0 already includes the first block

#

so its dx13dy27dz13

#

and you used -14 for dz you should always use positive unless you know what you're doing

tribal pewter
#

@topaz venture OMG IT WORKS 😭

topaz venture
tribal pewter
#

How would i inverse this? so if they leave they get banned

tribal pewter
topaz venture
tribal pewter
#

ive got a realm full of people on so i dont want to just test it

topaz venture
#

ah yeah that should work, once a player enters the area they get the tag, so its basically once they enter the area they are never allowed to leave again

tribal pewter
#

how would i remove myself from this thing? ive got the tellraw for a fake leave but idk how to remove myself from this

stoic oxide
tribal pewter
#

hm didnt work :/

stoic oxide
#

I just test it before sending you and it works lol

tribal pewter
#

huh.... oh hold on

topaz venture
# tribal pewter hm didnt work :/

if you got a working offline player scoreboard you need to remove yourself from the actual money scoreboard to not be shown on the display

#

or just edit the commands to exclude you

stoic oxide
tribal pewter
tribal pewter
topaz venture
stoic oxide
#

Oh because of the tellraw ? I don't have tellraw maybe it's why

topaz venture
tribal pewter
#

which ones? i mean like type of them ive got them all sorted

topaz venture
tribal pewter
#

this one?

#

just does this :/

topaz venture
# tribal pewter this one?

again, i do not know what command blocks you have in your world, you need to know yourself what command blocks add what to each scoreboard

upper swift
#

for minimum radius :D

tribal pewter
upper swift
tribal pewter
upper swift
#

i assumed it meant it was new

#

clearly it didnt bring me to the bototom

tribal pewter
upper swift
#

Lmao

formal loom
#

/execute as @a run fill ~10 ~10 ~10 ~-10 ~-10 ~-10 cyan_wool replace green_wool

#

whats wrong?

stoic oxide
formal loom
#

i havent learned the new execute command yet 💀

#

im used to the OLD one

stoic oxide
#

I had some troubles back in the day to update my useful clone command while holding an item

formal loom
#

i switched to script api because it has much more freedom

stoic oxide
upper swift
#

What were the 2 tags on execute that ment as the player

fallen steppe
#

@upper swift
These are all available "Selector Variables"

  • @a - Target all players
  • @p - Target the nearest player
  • @r - Target a random player
  • @e - Target all entities
  • @s - Target the executor
  • @initiator - Target the player interacting with an NPC

Reference https://wiki.bedrock.dev/commands/selectors

tribal pewter
#

what is this execly? it doesnt error

tribal pewter
#

the subtext part

mystic apex
#

subtext isn't a thing

upper swift
fallen steppe
#

Idk how to link to a section on a Minecraft wiki article, but check out everything under "Modifier Subcommands" here https://minecraft.wiki/w/Commands/execute

Minecraft Wiki

Executes another command but allows changing the executor, changing the position and angle it is executed at, adding preconditions, and storing its result.

#

It explains everything

upper swift
#

Ty

upper swift
#

When will new execute and trapdoor directions come to functions

stoic oxide
#

It is working in functions like it's working in the command blocks. No differences. If it doesn't work it's necessary because the block states specified in your command doesn't match your expected result.

#

I must recognize that the addition of the block states could be tricky to work with, but it's a nice addition. Just give you some times with chat commands on a single block first. Takes a couple of tries to find out the right command. When you will find what works for you, make it function if you wish

upper swift
#

Thats why it wasnt working

#

unless the manifest min engine version whatever has something to do with it

stoic oxide
#

I am not sure what you are talking about when you say "function" tbh

#

Scripting?

upper swift
#

dude

#

.mcfunction

#

functions

#

/function

native mantle
#

A set of slash commands compacted so that you can run all said commands with one command

stoic oxide
upper swift
stoic oxide
#

Ps: you have deleted the post where I was showing a working version. Can I ask you why?

upper swift
#

Waiting on your response

stoic oxide
#

what about that?
execute at @a positioned ~~~ run fill ~-5~-5~-5 ~5~5~5 spruce_trapdoor ["direction" = 1, "open_bit" = true, "upside_down_bit" = false] replace spruce_trapdoor ["direction" = 3, "open_bit" = false, "upside_down_bit" = true]

upper swift
#

thats the one i marked with a hashtag so it doesnt run anymore

#

that doesnt work for me

stoic oxide
#

nope the one marked wit a hastag is not what I have posted

#

totally different

upper swift
#

What

#

3 are hashtag

stoic oxide
#

are you able to read?

upper swift
#

Do you mean the one you posted here earlier

stoic oxide
#

The command I pasted is the perfect replacement for this command in the file you posted
execute @a ~~~ fill ~-5 ~-5 ~-5 ~5 ~5 ~5 spruce_trapdoor 9 replace spruce_trapdoor 7

#

#1067870225585938444 message

#

the old one vs the new one

upper swift
#

trying to understand what you mean

#

are you saying the one you posted would work?

#

it doesn't

#

Anyways does the manifest engine version have a impact on mcfunction commands?

upper swift
#

sorry cant trust that

stoic oxide
#

You shoud it has been made by a guy from here

#

Don't remember who. Useful that deserve more recognition

#

I have used it quite a lot while doing fill replace when they changed the system

upper swift
#

just send me a image from the website

stoic oxide
#

It has been created by......

upper swift
#

I dont need those

stoic oxide
#

SmokeyStack , the very admin of this discord 😄

#

You don't trust him ?

upper swift
#

functions are still using the 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 states

stoic oxide
#

Then you don't understand how this tool is working bud

upper swift
#

execute @a[r=50] ~~~ fill 10 0 21 10 0 21 spruce_trapdoor 10 replace spruce_trapdoor 2
execute @a[r=50] ~~~ fill -10 0 21 -10 0 21 spruce_trapdoor 10 replace spruce_trapdoor 2
execute @a[r=50] ~~~ fill -20 0 11 -19 0 11 spruce_trapdoor 10 replace spruce_trapdoor 2
execute @a[r=50] ~~~ fill -33 0 -8 -31 0 -8 spruce_trapdoor 10 replace spruce_trapdoor 2
execute @a[r=50] ~~~ fill -19 0 -9 -20 0 -9 spruce_trapdoor 10 replace spruce_trapdoor 2
execute @a[r=50] ~~~ fill -10 0 -18 -10 0 -18 spruce_trapdoor 10 replace spruce_trapdoor 2
execute @a[r=50] ~~~ fill 9 0 -30 9 0 -30 spruce_trapdoor 10 replace spruce_trapdoor 2
execute @a[r=50] ~~~ fill 10 0 -18 10 0 -18 spruce_trapdoor 10 replace spruce_trapdoor 2
execute @a[r=50] ~~~ fill 20 0 -9 19 0 -9 spruce_trapdoor 10 replace spruce_trapdoor 2

#

this is what i went with

#

and its working

#

had to put all seperate but idc

stoic oxide
#

search for a block, on the left you have aux val(old system) and on the right you have the block states, the new system

#

than, look at your old command, check what aux val it was, and look on the right what it was replaced with

#

I dunno what to say more tbh

upper swift
#

bruh

#

if I do that it wont work as it has not been implemented to mcfunctions

#

If i put that it will say error

#

doo you not understand

stoic oxide
#

It should not be different. A function is a repeating command block if ticked or a command block with impulse when using /function my_function. I haven't faced yet a difference with normal commands. You talked about the manifest. I'm not expert enough to say if it could have an impact, but as the new command system is here from a while now(don't remember exactly, but it's around one year..) if you manifest is older than that, I would suggest to update it at the latest version

tribal pewter
mystic apex
#

You could put anything there and it wouldn't return an error

tribal pewter
mystic apex
#

text, selector, translate, score

tribal pewter
mystic apex
tribal pewter
tribal pewter
mystic apex
#

Yes

tribal pewter
#

||Pog||

upper swift
stoic oxide
#

Finally ! 😄

#

Sometimes it's just the manifest, I wasn't able to have my script working and realized it required beta, got stuck one hour trying to figure out were I made a mistake in my script while there was not.

formal glade
#

Question:

How would I spawn until there are 5 with in 100 blocks?

If I use unless it just keeps going even with the c=5

/execute if entity @e[tag=corp_1_miner,r=100,c=5] run summon olcass:corp_1_ship_miners

tawdry parrot
#

C is counting the Mobs closest to it... and if it - it count the farthest...

formal glade
#

hmm

#

oknm

fallow cliff
formal glade
#

Thanks. I gave up on it and did something. Different. But thanks.

plucky condor
#

hello folks, i have a question,

I am creating a "sliding" ability using barriers, and id like to know

how would i clear the barriers without making the movement jittery?
(filling a barrier with air and filling it back with a barrier, moving you in and out of crawl)

#

it makes the screenshake, and it really hurts lol

uneven light
#

Hello, excuse me, could you please help me with a minecraft bedrock command? What happens is that I want to give a force effect to the wolfs when the player has 10 points on a scoreboard but I don't know how the excecute command works very well, I would really appreciate it if someone could help me 😄

heavy holly
#

How would I execute a command at a block instead of an entity? Like execute @e[type=zombie] but instead a block?

topaz venture
fallow cliff
heavy holly
heavy holly
fallow cliff
#
fill <from> <to> bc:block 1 replace <block id> [data value]

execute @e [tag="@b"] ~~~ <your command>

event entity @e [tag="@b"] despawn

This was a little pack made long time ago for people who can't edit files, but since you can, you can add commands directly instead of using the extra steps

#

I'm not sure if it works in current update, but you can test or get an idea of how to make a better version of your own in current update

heavy holly
#

Alright thanks.

drifting verge
#

я переделал, компоненты не находит

/give @p writable_book 1 1 {"author":"ИмяАвтора","title":"Название Книги","pages":[Страница,Вторая страница]}

mystic apex
#

You can't do that in bedrock edition

#

Save the item in a structure block and load it at the player

wise flower
#

Hello, I have a question, how can I use commands to show the totem particle when a mob/player hits you?

heavy holly
#

Anybody know how to fix /fill not working?

topaz venture
#

Show error

heavy holly
spare veldt
topaz venture
worldly jungle
#

Does anyone know what the symbol for the connective "or (||)" is in minecraft bedrock?

#

In command lines

topaz venture
#

Wdym?

worldly jungle
#

EXAMPLE: if I want to say 'hi' to a player with the tags "a" and "b" I would say </title @a[tag=a,tag=b] actionbar hi>, but if I want to say 'hi' to players with tag "a" or "b", the mentioned command is not appropriate as the symbol "," means "and".

topaz venture
#

You can do ```
/tag @a[tag=a] add or
/tag @a[tag=b] add or
/title @a[tag=or] actionbar or

topaz venture
fallow cliff
#

@topaz venture @worldly jungle
There's a slightly more optimized technique to achieve the same result documented in this page:
https://bedrockcommands.github.io/commands/logic-gates.html

(not wiki.bedrock.dev link cause PR isn't merged yet)

#

Hope it helps! :D

topaz venture
hybrid musk
#

testfor @a[hasitem={item=minecraft:chainmail_helmet,data=2}]

#

how can i check i item with the data of 1

heavy holly
#

execute unless score @a plot1 matches 1 run scoreboard players add @s plot1 1"
execute unless score @a plot2 matches 2 unless score @s plot1 matches 1 run scoreboard players add @s plot2 1

is there a better way to test for this instead of slowly adding unless scores each time it goes up?

green nymph
heavy holly
green nymph
heavy holly
# green nymph why

i just did it that way, but now your making me think why dont i change it to if plot1 = 1,2 etc

green nymph
#

im rly rly unsure why u chose to do it this way

#

even w this method, tags make more sense -- but the score method will always be better for quantitative data

heavy holly
#

i created it a wee while a go so im fixing it up now to be a bit better, just what i used at the time.

tight lotus
#

How to clear item that have durability, Example:
If i use /clear @s iron_shovel 0 1 it will not clear the iron shovel, if iron shovel have half durability

#

If i use /clear @s iron_shovel it will clear all iron_shovel, but i only want to clear 1 iron shovel

brave solar
heavy holly
#

How do i execute a command if a player has a certain ammount of blocks in their inv

spare veldt
balmy stratus
#

@spare veldt Hello, I want to run the damage command in the direction the player is facing. How to do it?

#

He didn't look around, he just looked at the creature in the direction.

spare veldt
spare veldt
balmy stratus
spare veldt
#

Maybe it's dx,dy,dz...

balmy stratus
spare veldt
#

But in Java @e exists, or not?

balmy stratus
spare veldt
#

maybe I'm wrong but It seems that in java edition the damage command is limited to 1 entity

mystic apex
#

The java damage command selector requires a single type selector

#

limit=1

spare veldt
#

And does it work?

execute as @a at @s positioned ^^^2 run execute as @e[r=1] run damage @s <count> <cause>
mystic apex
#

All they have to do is add limit=1 to the selector for java

balmy stratus
rich moss
#

ummm

gamemode 2 @a[m=!2,tag=!admin,r=200]

gamemode 1 @a[m=!1,tag=!admin,rm=201]

what wrong with that?

spare veldt
rich moss
#

oowh ok i'll try this one

#

it...just the same:)

rich moss
#

i have like a house for hiding secret room
it has iron block for access the secret room that below the house, "admin" need to stand on the iron block, sneak and jump in order to enter the secret room

then why doesn't this one work?

execute positioned 1933 69 1146 as @a[r=2,tag=sneak] at @s[tag=admin] if block ~~-2~ iron_block run tp @s ~ 56.5 ~
half sundial
#

Can falling anvils be summoned (not the block, but the entity itself)

mystic apex
half sundial
#

Ah, i was hoping there was a sort of identifier for it so i could use it in scripts

exotic apex
#

Is execute if blocks better than testforblocks

spare veldt
exotic apex
#

thanks

green nymph
old ridge
#

How to use the /give command to get the mending book

#

Minecraft pe

mystic apex
gentle harbor
#

I'm wanting to know why my one command block setup doesn't work. I'm able to do alot with command blocks, but I took this command block idea from an older world about 2/3 (maybe 4) months old and now it won't work. I logged onto the older world and it won't work there either

wide ruin
#

Give more information. The more information you give the better. May need to give some examples about your commands, their behavior, and your actual intentions.

gentle harbor
#

I can send an image of the command. It wasn't edited at all from the old one

wide ruin
#

Yea, share it if you can. I don't personally use command blocks so that is not my expertise. I focus primarily with script API. I just wanted to help you with getting that information out there so somebody here who knows more about commands can assist you more efficiently.

gentle harbor
#

That's the command

wide ruin
# gentle harbor

Also, they have forums here where you can create and ask questions too. Those are actually pretty useful because when people reply in those forums it's typically on topic to the issue at hand and there's no in between off topic discussions (usually).

#

Here -> #1067869288859447416

gentle harbor
#

Created one

wide ruin
gentle harbor
#

Thank you

plush mortar
#

#helo

#

#1220678234430115901

#

#announcements pls read

brisk rune
#

How I can break block 3by 3 with finction

#

Function

fallow cliff
brisk rune
#

@fallow cliff and for break only specific blocks

#

???

spare veldt
brisk rune
#

@spare veldt Ty both

fallow cliff
#

If it's only a 9×9 cube that ^ method should be good for you

brisk rune
#

like that execute if block ~~~ stone run setblock ~~~ air destroy
execute if block ~~~ stone run setblock ~~~ air destroy
execute if block ~~~ stone run setblock ~~~ air destroy
execute if block ~~~ stone run setblock ~~~ air destroy
execute if block ~~~ stone run setblock ~~~ air destroy
execute if block ~~~ stone run setblock ~~~ air destroy
execute if block ~~~ stone run setblock ~~~ air destroy
execute if block ~~~ stone run setblock ~~~ air destroy
execute if block ~~~ stone run setblock ~~~ air destroy

stoic oxide
fallow cliff
stoic oxide
#

Oh yes I haven't understand he wants to really break the blocks . Then just need to add destroy at the end of my command. It will do the same without having to setblock multiple times. Edit not at the end :
Replace: destroy
Edit bis : nevermind I'm stupid 😅

charred halo
#

Hello, does anyone know a command to reduce the durability of an item?

mystic apex
#

You can only set the durability through the data argument

#

/give @s diamond_sword 1 250

charred halo
#

Yes I know that is possible but I am trying to achieve something that subtracts 1 durability from the tool that the player in hand can trim

#

I tried something with /execute but it fails

cedar dragon
#

Anyone here who is a bit in the protocol shit? this worked 100% a few versions ago and it were enums just like /weather <clear|set> or smh (this is captured on a server)

green nymph
fallen galleon
#

I run the command manually and it works, but when I put it in the on_hurt_entity event it doesn't work.
can anyone help?

spare veldt
# fallen galleon

It looks like your bp manifest file has a min_engine_version below 1.19.40, switch to a newer version

fallen galleon
spare veldt
#

I don't know if there's anything wrong with this, but also check the format_version of your entity, and change run_command to queue_command

mystic apex
fallen galleon
fallen galleon
#

I've changed to 1.20.0 and it works, thank you GST378 & ExplosionHm

charred halo
#

Damm , thx

tardy nest
tardy nest
sand tusk
#

1.20.72 erro command, help me?
/damage @s 20 suicide

spare veldt
uncut notch
#

Hello does anyone know the limit of distance /camera command have

#

Like 60 blocks or 100 blocks

green nymph
uncut notch
#

What did I do wrong here?


execute as @p at @s if entity @s[hasitem={item=diamond_chestplate,location=slot.armor.chest}] run ability @s mayfly true```
golden hound
knotty shell
#

hello

#

Does anyone know if this command is correct? It's for a function that will make my item attack monster-type enemies with evocation fangs execute @e[family=monster,r=10] ~ ~ ~ summon evocation_fang

uncut notch
native mantle
#

Between the “execute” and “@e” try adding “at” between them in the middle. And for the “~ ~ ~” can easily be replaced with “run”

#

You could probably use scoreboards to allow this evocation to spread more like a shockwave instead of all at once

knotty shell
#

For some reason, the command works with the command block on the item, but not when I run the command from it.

obsidian falcon
native mantle
native mantle
# obsidian falcon ?

If execute run doesn’t work for entities, then there will be no purpose for the command other than to white list or black list blocks

obsidian falcon
#

Yeah ik it sucks

native mantle
#

It works with entities for me

#

That’s the whole purpose of the command

#

Run commands and events are really useful and they been exiting for awhile, and now mojang wants to remove them i guess

icy torrent
#

I think it's because you have to execute AS something, the problem might be you're running an execute command as something that genuinely can't be targeted by the game maybe? So try execute at ___ as @r

uncut notch
# knotty shell guys

What version for min engine in manifest? Cause if 1.20.70+ you should use queue_command instead of run_command

uncut notch
#

Anyone knows if the /hud really been removed on 1.20.70+

obsidian falcon
uncut notch
#

Maybe a bug or something

upper swift
#

pls tell me a solution for this

#

ITS URGENT

#

watch this video

green nymph
#

question answered in another server
the solution should be obv to anyone who watches the video lmao

brave geyser
#

does anyone know a ton of commands i'm trying to use commands to make a realm that has guns and everytime you kill someone you get a new gun and the old one disapears

obsidian falcon
#

||@knotty shell ||

#

Sorry I was late

obsidian falcon
uncut notch
uncut notch
charred halo
#

Hi, I was testing a function with a command that executes the Health Boost effect, I set the time value to 5 and the power of the effect to 1 but due to some reaction in the game it gives me Health Boosts 4

green nymph
charred halo
green nymph
obsidian falcon
#

Hey guys

#

I want to make an entity that when it have a target it plays a chase music and when it loses it’s target the music stops

green nymph
charred halo
green nymph
charred halo
#

[I use the translator, sorry] but I want to use Scoreboards to add a cooldown to the command

green nymph
uncut notch
#

also i recommend use a minecraft tick converter...

green nymph
#

I don’t think that’s super necessary lmao:
1 tick = 0.05 seconds
20 ticks = 1 second

Simple math

green nymph
uncut notch
green nymph
#

Alr np

charred halo
charred halo
#

@green nymph Ey Man , I wanted to say thank you very much for the help, the timer was very useful to me and I did experiments and I was able to achieve many things, thank you:D

upper swift
#

Hi, I wanted to know if it can be detected when a player enters or is in a dimension like the Nether

uncut notch
upper swift
#

Mmm, I don't know almost anything about scripts.

#

But I'm trying the in Nether in a function it doesn't seem to work so I'm looking for another method for now nothing works

uncut notch
#

Do you know at least how script works?

upper swift
uncut notch
upper swift
#

Well, I am trying to have the function execute a command only if the player meets x characteristics and is in the nether

#

The command works fine, it runs in the overworld

uncut notch
upper swift
#

Thank you

#

Although I will tell you something funny

uncut notch
#

Hmm?

upper swift
#

Turns out the command had a small spelling error hahaha

#

And now it works

#

But this script catches my attention, does it have any limits?

uncut notch
#

Nope

#

You could put multiple player.runCommsnd there

#

Just check internet on how to add scripts on manifest.json

upper swift
#

I saw in the guide that you have to make a change to the manifest

upper swift
#

I'm going to try to do something with Scripts but first learn the basics

uncut notch
# upper swift I saw in the guide that you have to make a change to the manifest

It will look like this and also I don't think you could put RP dependencies on BP if there's a script

{
    "format_version": 2,
    "header": {
        "name": "Addon Name",
        "description": "Addon Description",
        "min_engine_version": [
            1,
            20,
            60
        ],
        "uuid": "1f8dacbe-c193-43bf-92ec-51bfd0fc0891",
        "version": [
            1,
            1,
            0
        ]
    },
    "modules": [
        {
            "type": "data",
            "uuid": "43f26857-01a4-4617-8172-1dcdec41432c",
            "version": [
                1,
                0,
                0
            ]
        },
        {
            "type": "script",
            "language": "javascript",
            "uuid": "524f8ddf-a4c4-4be1-ba71-af8efa08c001",
            "entry": "scripts/main.js",
            "version": [
                1,
                0,
                0
            ]
        }
    ],
    "dependencies": [
        {
            "module_name": "@minecraft/server",
            "version": "1.10.0-beta"
        },
        {
            "module_name": "@minecraft/server-ui",
            "version": "1.2.0-beta"
        }
    ]
}```
#

Here I gave you a template

urban heart
#

Am I stupid or is this wrong? /kill @e[type=item,y=4,dy=4]

uncut notch
#

It will kill the item on the position 4 in y

urban heart
#

Yeah thats what I want it to do, kill items from y level 4 to 8, but it kills nothing saying "no target found"

native mantle
#

I think “y=~4..8” should work

uncut notch
uncut notch
native mantle
#

That sucks

urban heart
uncut notch
urban heart
#

oh those I know, but Im not wanting to use it since I want it to be based on a fixed coordinate

#

if that makes sense

shut crater
urban heart
#

Im used to old commands, im crazy rusty

urban heart
#

I got it working dw

uncut notch
#

nvm HAHAHAHA

shut crater
tribal pewter
#

can someone tell me why this isnt working?

/execute as @a[dx=11,dy=87,dz=-852,x=-3,y=55,z=-866,tag=!admin,tag=!PAID_admin] run tag @s add ban

Its support to be a if they go into a area