#Commands General
1 messages · Page 5 of 1
but I haven't done a teleport command with that ^
Sorry i don't know either
symbol in a very long time.
:/ me neathier man.
tysm man let me know if you can.
What's ur problem?
I would really appreciate it
What the problem man
So I would like to make myself a custom afk thing just for myself to keep my server up and running.
Now every thing I do that and come back in the morning
everything is so teleporting when it is catching up!
Ok then
No man I just want a single command that makes my constantly rotate.
I can only do command of what that I know of.
correct man.
._. that s false thing to do
I think some of the old stuff has broke over time.
U are using the wrong command
/teleport command it just teleports players
Nothing elsse
From x y z to x' y' z'
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]
No, np
Bro ur goal is unclear
Brehhhh
You want to rotate a player to face north or something like that ?
I want it to keep me rotating on a strate access.
Oh
not up
Ok ok
Sorry man but i can't help , in this situation
I know some behaviour pack things and add-on
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
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
U want to rotate around continuously on the y rot axis; is that what ur asking?
No just rotating just constantly moving to different positions.
I want it to do it for myself
I don't understand how I am not explaining it properly
/execute as <target> at @s run /tp ~ ~ ~ ~5
where 5 represents the amout of degrees u wanna rotate per tick
THAT IS WHAT I ORIGNALLY THOUGHT
BUT IT DIDN'T WORK BRO AND I DON'T KNOW WHY 😭
U probably missed the Tilda (~)
Bro
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 …
Lol, I didn't know that dam.
Forgot /execute was updated
It’s been like that for over a year now how do u forget 😭
Dude I quiet bedrock vanilla for a year.
Anyway, thank you maxed out love yoir helpfulness.
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
Hello
I have entered
sped mode.
LOL
/execute as @a[tag=OPAFK] rotated as @a[tag=OPAFK] run /tp @a[tag=OPAFK] ~ ~1 ~ ~90 0
TYSM, maxed out for helping man.
I am very pleased that it works now.
I got u 
Yeah, you do man.
**```
/execute as @initiator run agent create
/execute as @initiator run agent turn right
/execute as @initiator run /agent tp X Y Z
Must run from a NPC!
This allows you to summon the agent in minecraft bedrock edition child
wut
fr
Hi guys, how i make a scoreboard appear with the titleraw?
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
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
maybe increase your min_engine_version to [1, 20, 50] inside the manifest.json
also sometimes it uses : instead of = for the block states
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??
Yes, as long as they didn't used experimental features.
wdym by sometimes? doesnt it use only ":" in the newest version?
Can't you just use setblock 0 -60 0 purple_wool now?
Ah, I guess it only happens on animation_controller or other stuff, I don't remember which one, but there are still some that use : instead of =
How telepor player for other dimension
execute in nether run teleport ~~~
After chaanging the min_version to 1,20,50 as Gega said. It worked perfectly fine
ah that would make sense, i dont really use addons at all so i only know it from commands where i believe you only use : but it would make sense if other places still require = in the addons
:^
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]
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
fixed this by using execute positioned
/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
simply what i did here is run the command exactly 1.5 block above from the command block so it is centered.
also made the r= value to 0.2 block so its also centered
Tried that man.
Still didn't work.
Tysm, for letting me know.
Btw, how do advertise this server.
What's the discord link when you need to advertise it.
Anyway, just watching a little bit of tv currently I will check to see if it works later.
Would it be perfectly centred? If so would we need the radius?
Can I detect item durability using commands?
Idk if it's changed or not, but iirc you can check the item with hasitem selector
/execute @a[hasitem={item=gun:gascan,location=slot.weapon.mainhand}] how to check durability with this ?
With data, I'm not sure if it's works on another mods, but I guess you can use Script API
So what do I have to do in data?
Though I can use animation controller as well but I want with commands
Check the item durability by how many times the item has been used
How do I do that?
Like data=0 is new item, data=1 that means the item has been used one time (the durability depleted by 1), etc
Oh let me try
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
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?
İt should be
And yes using radius would help a lot
oh hmmm why dont you use just really long effects instead?
yeah but if you reapply it when it runs out wouldnt it be much easier to just make it really long instead?
Any programmer who wants to help with servers write to the private
I it figured out by myself. I just had to turn off execute on first tick.
I will give credit man tysm!
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
Use : instead of =
expressions of gratitude
[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' )
query.block_neighbor_has_any_tag(1,0,0, 'stone') || query.block_neighbor_has_any_tag(1,0,0, 'wood')
ok
Thank you
couldn't you also doquery.block_neighbor_has_any_tag(1,0,0, 'stone', 'wood')?
because it will check for any of the tags listed
I already configured it differently
Hello, good evening, I am looking for minecraft bedrock realm programmers who know how to program a scoreboard mod.
[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 ';'
Please ask on #1067869318383157430 channel instead
is there a way to make music play even if someone has it turned off in settings
like sounds have categories
/give @s stick 1 0 {"item_lock":{"mode":"lock_in_inventory"},{"minecraft:keep_on_death":{}}
how do u combine the componets
You don't need { before "minecraft:keep_on
/give @s stick 1 0 {"item_lock":{"mode":"lock_in_inventory"}, "minecraft:keep_on_death":{}}
/ride <player> start_riding <mob>
i have an error: "Invalid JSON form received. Error: /content/0: unable to find the 'options' property."
if this is a problem with commands you're gonna need to be much more specific as that most likely is #1067535382285135923
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
In scoreboard players add @s reload you forgot the value to be added
Okey Thanks
How do I detect with execute if an entity is at specific coordinates?
execute positioned x y z if entity @e[type=?,r=1] run ...
or
execute if entity @e[type=?,r=1,x=?,y=?,z=?] run ...
@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?
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.
The command is executed on a player, and it deals damage to all entities within 3 blocks in front of that player?
execute as @p at @s positioned ^^^3 run damage @e[r=3] 9 entity_attack entity @p
My first shot was damaging the creatures around me when I used the command. When I bought Survival and tested it, I used it and saw that the player was damaged, now these will not happen.
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
Yes, this is what I want, but why shouldn't the creatures around it only deal damage in the direction it is facing?
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
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
thanks bro
Can anyone help me? https://discord.com/channels/523663022053392405/1201451022997012480
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"
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
I think this should work:
/execute as @p at @s run fill ^-3^^5 ^3^6^5 stone
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
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
execute ... align xyz positioned ~0.5~0.5~0.5 run loot ...
How would that look in a script that returns a block's location into a variable (e.g. ${location.x} ${location.y} ${location.z})?
${Math.floor(location.x)+0.5} ${Math.floor(location.y)+0.5} ${Math.floor(location.z)+0.5}
Still not able to get the loot command to spawn loot centred on a block...
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.
teleport the item entity ig
I've decided to just use /structure and load in a structure void with the item in
how i can add mcfunction file to a script.js file
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
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?
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
Like you used the item, you have to stay still for five second and it will send back to the respawn point of the base.
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
```.
I see, but if say an enemy player hits the other player, the animation stops?
No
but you can do it using a minecraft:damage_sensor component in player.json or Script API.
/tp @e[family=backpack,r=4,c=1] @s
This command keeps on tping me to the backpack entity
It’s not that command then, that’d teleport the backpack to you, not the inverse
wait then what should the vorrect one be?/
I meant that it isn’t that command teleporting you to the backpack. It’s something else.
That command would teleport the backpack to you
Oh, I used it in a item, under the event> run_command
Target is the holder
i was doing some bds stuff and i found out there is a command called /transfer..
how do i use the first argument
it appers the command was added in 1.20.30... i returned to minecraft in a good timing
/transfer <player name> <IP> <port>
Can /playanimation play behaviour pack animations (the ones that can run commands)?
nope they cannot
Damn, I was hoping it would...
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
I don't think that's invalid
Probably line above or smth
well i tested it again, it keeps on spammin the /say command
Try execute as @a[tag=!joined] run say Welcome ...
i used /msg
it fixed the problem
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
Try with
/setblock -2792 72 2204 red_stained_glass
I thought that had to be the command at first, but that didn't worked
Wait they finally removed the needs for brackets when using the setblock/fill command for a block with more than one type, in this case its glass?
Yes, they are doing this with various blocks like concrete, planks and stone
Thats nice!
/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
well, yeah; u basically just said to give all players with the tag blue weakness
Wait so I should do ?
I am little confused atm
idk what ur trying to do
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
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
Then could we do it so if they are in a hittiable distance
Idk how ^ ^ ^ never learned it
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
ok tysm
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
sure, why not
how so
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
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
i have no idea what ur trying to say, son
/execute as @a[tag=blue] facing entity @a[tag=blue] feet run effect @s weakness 2 1 true
In this command how can I make it so it doenst effect me
i dont think u understand what that commands does
I just reliazed
but there is a way to fix
it will require about
100cmds
why
It allows the commnads to work
But it will allow a team system
ID System
why would that ever take 100 commands
/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
u have no idea what that command does
I do
i can assure u, u do not
/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
u still dk what that command does 😭
Ok let me explain it
yep
How can I get it to work 😦
I got a team system with a behavior pack but i want one with cmds
facing doesnt test when ur facing an entity
it sets the direction towards the target entity
huh
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
So is it not possible?
I heard from someone they did it
so I have been trying to figure it out
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
you think their will every be one?
I just feel like it is possible
probably not
using armor stand invis
detecting if they are in a radius on a cord
I feel like it is possible
it is possible, but its not practical
Wdym pracitcal
its possible to make, but in an actual game, its not rly smt u should add
true
I find a way to do it but your right it not for a game
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
What a raycast?
but that can cause lots of problems in a practical environment, so its not rly useful
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```
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
Do you think another day you could help me make it. Then on my own I will make it practical as much as I can
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
very confused but I gtg
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
can someone help me rotate a armor stand in be
you can use /tp to rotate entities
how do I tp player where armorstand looks
@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
Can I make a block throw item when is interact with commands???
yep with loot command. Create a loop table and include the item you want your item to drop, and create an event into on_interact component, run the command loot in your event.(I'm using this to have food plates that drop eatable items)
I want this when a wood beening stripped to throw an item
Not possible with vanilla blocks
hi
hi, beautiful about me btw
help
for so.e reason my experimental features won't stay on
You'd need a script for that. There's an event in it that triggers when people interact with blocks. You can check if the block is woof and the item is an axe, then spawn the item with the script
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
If you have any questions you can just ask here
i want someone work with me and try to help me i have no clue on programming :/
and i don't understand the docs
i wanna know if it's possible to make custom command that can do that:
?pay (selector) (amounth) (message to that person)
Using #1067535382285135923 yes
oh
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 …?”
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
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
Can you do starting to end position in a single axis point, which in this case its “y”?
yeah the starting point is xyz, and the end point is x+dx, y+dy, z+dz
I thought dy means direction facing up/down?
no thats rx and rmx which stand for rotation x, and rotation minimum x
Alright thanks
execute at @e[type=item,y=0,dy=30,r=60] run summon ender_crystal ~~~ ~~ minecraft:crystal_explode
no targets found
well first of all you're missing x and z so they're most likely 0 depending on how it got called meaning the r will be calculated from there and it most likely will not find any near 0 0 0
if i were to put x and z, wouldnt the explosion be square if it does work?
i mean x y z wouldnt change any shape, they just change the current commandcontext on where arguments like "r" and or "dy" get calculated from. x y z are always set and if they shouldnt be they still are set but to 0 0 0
could you provide an example command please? i know how to make it spread in a sphere shape but idk how to make it spread in a disk shape
in a disk shape? so you want the area to be a 2d circle?
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.
and i'd rather not use a bunch of entities that are not items
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]
is there a way to make it in a circle?
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
/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
""/execute positioned ~0 ~0 ~0 as @e[r=10,type=item] at @s[x=~-10,z=~-10,dx=20,dy=0,dz=20] run summon ender_crystal ~~~ ~~ minecraft:crystal_explode"" no target found
was there a item near the position executed?
also ~0 does nothing, just ~ is okay
yes, also i think i fixed it
nice
How can i make this custom compass (connected to the lodestone) always in inventory even if u died
keep on death
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
can't i give the compass with like different display name ?
if you wanna go that fancy you can use an anvil and just use /structure to spawn the item onto the player
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
add a score to the name "realhumab12345"
k
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...
so are all of them in the ticking area?
Yes
What?
Yes whatever region you set in the ticking area is in the ticking area if that's what you're asking
ok, i thought there was going to be a limit
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
soooo it still work? im getting that it works
Yes
ok thank god XD
You can test it by placing a
to spam chat, fly away from the area and make sure the messages are still being sent
Test it for each corner of the area to validate that nothing was excluded for a sanity check
it do work
the way ive got the money setup i cant just add scores to fake players because of this little command setup
it removes offline players
just use script bro
huh
use fake player in script
#1067535382285135923
i mean seems more complicated to switch to scripting just because a small command thing isnt in their system
best thing i can think of using the standard offline player scoreboard is just by adding the fake players to the real scoreboard and just add a command block to the offline player scoreboard creator for each fake player you're trying to convert to the display scoreboard
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
how
How do i add a ! so its if the player doesnt have this item it outputs a signal
quantity=0
Thx
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
That's only possible with scripting
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?
This
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
yeah all tags get removed on pickup since its no longer an entity
Dang. Any idea for a work around? Otherwise for what im doing ill just limit it to a specific player not @p
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
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!!
yeah
just /give @p stick 1 1000
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]
Thanks!
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
/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
bedrock doesnt support nbt in commands
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
how can i do that
you can edit banners using the loom
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
mhm
@topaz venture "reply ping" is a reletive turm
wdym?
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
what?
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
that was what i was trying to "link"
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
sorry it took me so long to reply lol,
so r=!1 is the same as rm=1?
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?
just replace "r=!7" in your command with "rm=7"
ok thank you :D
np
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
How do i edit the "lore" of a item?
shouldnt be possible in bedrock
most likely the same answer as this
Scripting only
is there a way to "mimic" a circle when using the spreadplayers command despite the command only spreading in squares?
yeah spreadplayers will still only use whole positions so it might look as wanted
i dont know how to make it a circle though
/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
oh yeah this should be run after using /spreadplayers on them
it just tps everyone outside the circle into the circle at the outmost position
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?
damn you must be talking pretty early, the ability to use selectors in /kick was removed some time ago from what i heard it was because of hackers and using hacked /kick @a
best alternatives i can think of and would use if needed to would probably be just to crash their game or just lock them in permanent stasis
/inputpermission for camera and movement works really well
I use that as a "freeze" command
More like tag
I've got this npc which forces you to alt-f4 but I wanted smth that doesn't even let them in the world
@topaz venture how would I crash there games?
How do i spawn a custom loot table?
/loot spawn ~~~ loot <loot_table>
What one does not seam to find my custom loot table, is there an extra configuration step needed after creating the json file?
You must place it in the loot_tables folder of your BP and in the /loot command use its file path
is making commands in function put a delay between every commmand
like /say hi
delay of 30 seconds
/say welcome to dungeon
for example
How does that npc work?
#1206545003401187390 message
how do i name a item like this?
just opens the npcs dialog so many times so fast you cant even close it, doesnt even let horion users use there hack menu :D, ive tested that
Save the dropped item in a strucuture and load it at the player
K, new question:
this tps everyone over and over
lmao thats great forgot about /dialogue defintly a fun choice
This,
/dialogue open @e[tag=bangui] @a[tag=ban]
stops hackers 😎
now this
it tps everyone just over and over :/
Add dy=0
what does that do exaclty?
y from
dy volume
ah
What exactly doesn't work?
its suppost to tp people that fall under -1 but its not duin that
Swap the values
k
nope :/
doesnt detect them atall
in that case dy should be -999 and y should be -1
oh
dont work :/
im at -6 rn
try executing it at the players position /execute as @a at @s run tp @s[y=-1,dy=-999] -130 15 -486
that works :D
now then, question number duo:
/testfor @e[name="For {player}"]
how do i get smth like this to work? What i want it to do is read the name of a item then if the items name is "For <Expl>" it tps to that player
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
ive got that setup already, i just wanted to know if there was a better way
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?
yeah that checks if anyones hitbox collides in the area of x-1y-1z-1 to x2y2z2
so im test this why is it only a 3x2x3 cube?
wait nvm its a 3x3x3\
im dumb
haha
can you help me please, i dont understand why its 3x3x3
btw dxdydz should preferably be positive but its alr
dxdydz=0 already include the block its in
so its already a 1x1x1
so if you change it todxdydz=1 it becomes a 2x2x2
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
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 :/
waht
how do i scan from 0 to -10?
this doesnt work
replace the first -10 with 0
what region do you want to check? since 0 to -10 arent full coordinate pairs
um under the player
the block under the player?
/execute as @a at @a run testforblocks ~~~ ~~-10~ -8 4 1 masked
um the hell?
~~-10~
all blocks from the players feet to -10 under the players feet
/testforblocks ~~-1~ ~~-10~ x y z like this
xyz is just the lowest coordinate of the thing you want to compare it against
so the cords of the block?
@topaz venture what would the command for these cords be? 91 83 -826 / 77 55 -812, for the dx dy dz thing
blocks, you're using /testforblocks, the second coordinate is just the same size as the first coordinate pair
the lowest pair is xyz
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
so
/execute as @a[x=77,y=55,z=-826,dx=14,Dy=28,dz=-14] run tag @s add PlotTrapped
from one cornor to the other
yeah altho first of all from-826y to -812 is 14 blocks too, so dy should be 14 as well
oh wait ignore that
switched z and y
math is herd
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
@topaz venture OMG IT WORKS 😭
yippee
How would i inverse this? so if they leave they get banned
YIPPEE
/execute as @a unless @s[your arguments here] run tag @s add isoutsidethearea
so
/execute as @a[tag=PlotTrapped] unless entity @s[x=77,y=55,z=-826,dx=14,dy=27,dz=14,tag=!admin,tag=!PAID_admin] run tag @s add ban
ive got a realm full of people on so i dont want to just test it
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
thats what i want >:)
how would i remove myself from this thing? ive got the tellraw for a fake leave but idk how to remove myself from this
/scoreboard players reset "your name" YourScoreboard
K :D
hm didnt work :/
I just test it before sending you and it works lol
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
so reset both moneydisplay and money? i did that :/
open the pause menu -_-
they're using a sidebar for the example
Oh because of the tellraw ? I don't have tellraw maybe it's why
if you did this command on the money scoreboard and still show up some of your commands add you back
which ones? i mean like type of them ive got them all sorted
i mean i dont know what command blocks you got in your world
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
i did
use rm instead of r
for minimum radius :D
yeah your like..... a week late?
oh…
lol
im so sorry it just showed up first thing when i opened the channel
i assumed it meant it was new
clearly it didnt bring me to the bototom
its fine XD i do the same on old posts
Lmao
/execute as @a run fill ~10 ~10 ~10 ~-10 ~-10 ~-10 cyan_wool replace green_wool
whats wrong?
try execute at and not as, and if it still not work
/execute at @a positioned ~~~ run fill ~10 ~10 ~10 ~-10 ~-10 ~-10 cyan_wool replace green_wool
ahh
i havent learned the new execute command yet 💀
im used to the OLD one
it's why 🙂
I had some troubles back in the day to update my useful clone command while holding an item
i switched to script api because it has much more freedom
I'm on your side, I'm into learning the basics rn
What were the 2 tags on execute that ment as the player
@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
the subtext part
subtext isn't a thing
I ment the at run positioned if as and whatever else there were
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
It explains everything
Ty
When will new execute and trapdoor directions come to functions
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
The new execute and direction facing false true etc has not been added to functions yet
Thats why it wasnt working
unless the manifest min engine version whatever has something to do with it
A set of slash commands compacted so that you can run all said commands with one command
I know what is a function is thank you 😄 I don't understand what OdimydO is saying, it's different
whats different about what I said
show us a working version without function(repeating command block, the code you have used) and the one you use in a function
Ps: you have deleted the post where I was showing a working version. Can I ask you why?
Yes I can actually I realised that the new execute command was not working in my function file so I used the old execute command and it worked fine so I felt that there was no reason for it anymore
Waiting on your response
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]
thats the one i marked with a hashtag so it doesnt run anymore
that doesnt work for me
are you able to read?
Do you mean the one you posted here earlier
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
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?
sorry cant trust that
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
just send me a image from the website
I dont need those
functions are still using the 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 states
Then you don't understand how this tool is working bud
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
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
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
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
it doesnt error tho?
You could put anything there and it wouldn't return an error
ah, what are the working, "things"
text, selector, translate, score
text is text, score is a scoreboard? wahts translate and selector?
i need to bookmart this XD
oh so selector is basicly @e
Yes
||Pog||
updated it and now the new execute works lollloll
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.
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
C is counting the Mobs closest to it... and if it - it count the farthest...
It doesn't work because c doesn't test for count, rather selects n targets by nearest/furthest distance
Though this method should work:
https://wiki.bedrock.dev/commands/entity-counter.html
Thanks. I gave up on it and did something. Different. But thanks.
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
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 😄
How would I execute a command at a block instead of an entity? Like execute @e[type=zombie] but instead a block?
you can use /execute positioned <block position> to execute at the block
You will do it like the above answer but if you mean dynamically without entering coordinates, you can use a custom block that runs a function immediately as it gets placed. Then you would just /fill replace the blocks you want to target and have the custom block run the commands you want
Yeah see the problem is, The block is at a random place everywhere, and theres multiple of them, so theres no set pos. @topaz venture
How would I do this function though thats my problem, and also, It would have to repeatedly spawn above the block.
You have the scripting tag so I assume you must know how to make a BP, use functions and edit files.
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
Alright thanks.
я переделал, компоненты не находит
/give @p writable_book 1 1 {"author":"ИмяАвтора","title":"Название Книги","pages":[Страница,Вторая страница]}
help
You can't do that in bedrock edition
Save the item in a structure block and load it at the player
Hello, I have a question, how can I use commands to show the totem particle when a mob/player hits you?
Anybody know how to fix /fill not working?
Show error
Its all good and working now, Just the "cant place blocks out of world" bug from it sometimes.
Increase the simulation distance of your world
All blocks need to be loaded and not in the void
Does anyone know what the symbol for the connective "or (||)" is in minecraft bedrock?
In command lines
Wdym?
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".
You can do ```
/tag @a[tag=a] add or
/tag @a[tag=b] add or
/title @a[tag=or] actionbar or
But remove tags before executing this
@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
Trueee, good old double inversion
testfor @a[hasitem={item=minecraft:chainmail_helmet,data=2}]
how can i check i item with the data of 1
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?
unless score <target> Obj matches 1..3
targets all scores between 1 and 3
yeah but the thing is its difffrent objs
why
i just did it that way, but now your making me think why dont i change it to if plot1 = 1,2 etc
that is definitely a good thing ur starting to think that way
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
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.
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
There's a trick to detect hits using just commands, but it's kind of bad. It's wearing a leather helmet if I'm not mistaken. You can look for this trick if it interests you.
How do i execute a command if a player has a certain ammount of blocks in their inv
You must specify the block, assuming it is glass, you use:
@s[hasitem={item=glass,quantity=10..}]
This checks if there are 10 or more glass blocks in inventory and triggers the command
@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.
execute as @a at @s positioned ^^^1 run damage @e[dx=0,dy=2,dz=5] <count> <cause>
dz is the distance the damage will be applied, 5 blocks in front of the player, dy is the height (2 blocks)
How can I do it for Java?
I don't know, but if the command syntax is the same it should work
I tried but the @e part didn't work
Maybe it's dx,dy,dz...
dx dy dz no problem, when you type @e it doesn't work, when you type that part as @s it works.
But in Java @e exists, or not?
there is
maybe I'm wrong but It seems that in java edition the damage command is limited to 1 entity
And does it work?
execute as @a at @s positioned ^^^2 run execute as @e[r=1] run damage @s <count> <cause>
All they have to do is add limit=1 to the selector for java
It worked but your player saw that it does not cause any damage to the ground. It hits the creatures around it.
ummm
gamemode 2 @a[m=!2,tag=!admin,r=200]
gamemode 1 @a[m=!1,tag=!admin,rm=201]
what wrong with that?
I'm not sure if m=!1 worked, try changing to:
m=!2 -> m=!a
m=!1 -> m=!c
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 ~
Can falling anvils be summoned (not the block, but the entity itself)
Only if you save it within a structure block
Ah, i was hoping there was a sort of identifier for it so i could use it in scripts
Is execute if blocks better than testforblocks
Yes, they both work the same way but execute allows you to execute another command without having to use another command block
thanks
Never ever use any testfor variant — aside from simple tests from the chat bar
You cannot assign custom NBT data to items using the /give command on bedrock (yet). Use a structure block to save the dropped item and load the structure at the player you would like to have the item you dropped.
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
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.
I can send an image of the command. It wasn't edited at all from the old one
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.
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
Created one
Awesome, and good luck finding a solution.
Thank you
/fill xyz xyz air destroy
You must use 9 commands, one for each block
execute if block xyz stone run setblock xyz air destroy
execute ...
@spare veldt Ty both
If it's only a 9×9 cube that ^ method should be good for you
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
Or
execute at "Your Gametag" positioned ~~~ run fill ~3 ~3 ~3 ~-3 ~-3 ~-3 air replace stone
It will replace stone with air 3 cubes around you in any direction
That won't break/drop, that's why they suggested the 9 command method
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 😅
Hello, does anyone know a command to reduce the durability of an item?
You can only set the durability through the data argument
/give @s diamond_sword 1 250
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
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)
he just gave u an answer: u cant ._.
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?
It looks like your bp manifest file has a min_engine_version below 1.19.40, switch to a newer version
I used min_engine_version 1.20.50
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
What format version are you using?
1.16.100, should be what version?
I've changed to 1.20.0 and it works, thank you GST378 & ExplosionHm
Damm , thx
Events are being removed. Do not use them. #announcements
You will need to use scripting
1.20.72 erro command, help me?
/damage @s 20 suicide
suicide was changed to self_destruct
Hello does anyone know the limit of distance /camera command have
Like 60 blocks or 100 blocks
I’d assume it’s tailored to the simulation distance of ur world
Oh thank you!
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```
What's the error that the command is throwing?
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
yeah the command is correct but, It's the old execute command. Try using the new one
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
guys
For some reason, the command works with the command block on the item, but not when I run the command from it.
Ik it's weird but execute doesn't work in entities
The command would’ve been useless if that was the case
?
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
Yeah ik it sucks
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
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
What version for min engine in manifest? Cause if 1.20.70+ you should use queue_command instead of run_command
When? It works okay on me though, also that's really stupid if that happened.
Anyone knows if the /hud really been removed on 1.20.70+
Idk it happen with me all of the time even in functions
Maybe a bug or something
question answered in another server
the solution should be obv to anyone who watches the video lmao
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
Learn execute and scoreboard
Make a script where whenever the player kills someone it add score or something tag or whatever you want to change your weapon, cause I don't think you can detect kill using command atm
world.afterEvents.entityDie.subscribe(ev => {
if (ev.damageSource.damagingEntity !== undefined && ev.damageSource.damagingEntity.typeId === 'minecraft:player') {
const murderedEntity = ev.deadEntity.typeId;
ev.damageSource.damagingEntity.sendMessage(`You killed a ${murderedEntity}`);
}
});```
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
In effects: 0 = level 1, and 1 = level 2; ur level is +1 of the value u input, meaning ur giving Health Boost 2 in this command
Health boost grants 2 hearts per level, meaning health boost 1 provides 2 hearts, and health boost 2 provides 4 hearts
Thank You so much Man 😄
Apparently the Health Boost already works but the regeneration effect is bugged in functions I put values from 0 to 3 and it always healed the same
If ur setting it to 0 seconds, ur just not giving it enough time to work correctly; regeneration should work faster and faster scaling by level
If ur looking to heal an amount of health instantly, use instant_health 0 255
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
Not rly possible w just commands; u can kinda guess when they’re chasing a target by raycasting to an entity and checking if the entity is facing within a radius of the armour stand for a certain amount of ticks, then u can play it — but it’s not perfect
If you tell me, I'm planning to make a counter with Scoreboards to avoid that.
Little bit confused on what ur referring to here — the sentence is a little weirdly worded
[I use the translator, sorry] but I want to use Scoreboards to add a cooldown to the command
U can make a scoreboard timer as follows:
/execute if score <target> Obj matches 20.. run /command…
/execute as <target> if score @s Obj matches 20.. run /scoreboard players set @s Obj 0```
also i recommend use a minecraft tick converter...
I don’t think that’s super necessary lmao:
1 tick = 0.05 seconds
20 ticks = 1 second
Simple math
Ok if you say so...
I'm gonna delete it then hahaha
It’s not that deep — some users may find it useful — just personally i don’t think it’s difficult and it may be more practical to spread the “20 tick = 1 second” rule
Yeah I know I'm just gonna delete it
Alr np
I don't know what that is, I used to use the old command format haha now there are many things I don't know
Mmm
I'll try
@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
Hi, I wanted to know if it can be detected when a player enters or is in a dimension like the Nether
You can but a bit hard. You could use scripts as an alternative though
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
Do you know at least how script works?
Nope, I've actually never touched a script in my life haha, but I guess I'll have to read the documentation.
What are you trying to do if the player is in nether
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
system.runInterval(() => {
for (let player of world.getPlayers()) {
if (player.dimension.id === "minecraft:nether") {
player.runCommand(``);
player.runCommand(``);
player.runCommand(``);
}
}
});```
Hmm?
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?
Nope
You could put multiple player.runCommsnd there
Just check internet on how to add scripts on manifest.json
I saw in the guide that you have to make a change to the manifest
I'll do that
I'm going to try to do something with Scripts but first learn the basics
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
Am I stupid or is this wrong? /kill @e[type=item,y=4,dy=4]
It will kill the item on the position 4 in y
Yeah thats what I want it to do, kill items from y level 4 to 8, but it kills nothing saying "no target found"
I think “y=~4..8” should work
you should use ~ what you did was the coordinate. so yeah
4..8 does not work on that
That sucks
Can you give an example on what the command would be? I dont really understand
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
The issue is that you haven't specificed an x coordinate. What I'd do is something like /execute @e[type=item] at @s run kill @s[x=~,y=4,z=~,dx=1,dy=4,dz=1]. This makes it so each item checks if they're between y=4 and y=8
Thanks, didnt know they changed it to where all the coordinates are required now
Im used to old commands, im crazy rusty
the excute is wrong tho
I got it working dw
nvm HAHAHAHA
Ah, yeah, totally spaced and forgot the as
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
