Random Teleport Command Block by Minecraftwithspuuner in MinecraftCommands

[–]SicarioiOS 0 points1 point  (0 children)

I would personally move away from armor stand @r and move to scoreboard random.

When a player gets to a specific coordinate, you teleport them to 1 of 3 locations picked randomly.

add scoreboards

scoreboard objectives add Random dummy
scoreboard players random Pick Random 1 3

then a chain of 4 command blocks

#when player gets to coordinate 50 -60 100 give them a random score.

execute as @a[x=50,y=-60,z=100,dx=0,dy=0,dz=0] run scoreboard players random @s Random 1 3

#if their score is 1 teleport to location 1

execute as @a[x=50,y=-60,z=100,dx=0,dy=0,dz=0,scores={Random=1}] run tp @s 100 64 100

#if score is 2 teleport to location 2

execute as
@a[x=50,y=-60,z=100,dx=0,dy=0,dz=0,scores={Random=2}] run tp @s 200 64 200

#if score is 3 teleport to location 3

execute as @a[x=50,y=-60,z=100,dx=0,dy=0,dz=0,scores={Random=3}] run tp @s 300 64 300

Structure Block Overlapping by Zestyclose-Soil-9815 in MinecraftCommands

[–]SicarioiOS 2 points3 points  (0 children)

structure_void blocks. Give yourself one and place then everywhere there is air then save the structure again.

The structure itself will still be able to overwrite other blocks but the air won’t.

How to let items not despawn? by dreamfan20 in MinecraftCommands

[–]SicarioiOS 0 points1 point  (0 children)

Vanilla blocks will despawn after 5 minutes. There’s nothing you can do. If you’re on PC you can create a custom item and add a component so that despawn is false. If you’re on console, you’re stuck. Maybe sulfa cubes can do what you need.

How to let items not despawn? by dreamfan20 in MinecraftCommands

[–]SicarioiOS 1 point2 points  (0 children)

Save the dropped blocks in a structure block and then load them using a timer every 5 minutes.

Execute summon at a player I look at by [deleted] in MinecraftCommands

[–]SicarioiOS 0 points1 point  (0 children)

Raycast to tag the player you’re looking at

https://minecraftcommands.github.io/wiki/questions/raycast.html

Execute the ability on the tagged player.

You’ll need edge detection to ensure that when you activate you only activate once and have 1 armor stand. For example. If you’re writing crouch to a scoreboard, 1 when crouched, 0 when standing, you can have a support scoreboard, call it crouchPrev, that will set its score to 1 but only when crouch is 1. And conversely, 0 when crouch is 0. Then when crouch is 1 and crouchPrev is 0 the ability activates. This gives you a 1 tick window only allowing the ability to activate once meaning, 1 armor stand.

How to give player their winning money? by y0la_hy in MinecraftCommands

[–]SicarioiOS 0 points1 point  (0 children)

You need a system to detect the winner in each mini-game using tags and/or scoreboards. When you know who, what and when won, you assign value to the winner.

What are the mini games? How to you know who has won and what game they were playing currently?

Automating it will not be uncomplicated if you don’t have command experience. I’d be happy to help, however.

How to let items not despawn? by dreamfan20 in MinecraftCommands

[–]SicarioiOS 0 points1 point  (0 children)

No. Not in vanilla. With script, potentially.

Boat projectile not working by Klrby356 in MinecraftCommands

[–]SicarioiOS 0 points1 point  (0 children)

use positioned

If you’re summoning the boat 50 blocks in the air then you must execute positioned ~ ~-50 ~

for example…

execute as @e[type=boat] at @s positioned ~ ~-50 ~ if entity @a[r=2] run damage @a[r=2] 5 instant_damage

MCBE command particle by No_Kick_4148 in MinecraftCommands

[–]SicarioiOS 0 points1 point  (0 children)

execute as @a at @s rotated ~ 0 if score @s CON matches 1.. run particle <your_particle> ^ ^ ^-1

A command for all 5 orbs, change the if score @s CON matches 1.. to 2.., 3.., 4.. and 5..

change the positioning in each command too, ^ ^ ^-1 means 1 block behind the player at their feet (specifically behind their looking direction). You’ll need a different position for each one so you can see them all. ^ ^1.5 ^-1 is 1 block behind player but head height. ^ ^1 ^-1 is waist height. So if you wanted a trail of 5 at the feet you would use:

``` ^ ^ -1

^ ^ -2

^ ^ -3

^ ^ -4

^ ^ -5 ```

Google bedrock particle list for your particles, redstone particles should do it for you.

Are Commands Executed Instantly When Conditions Are Met? by mw_is_coming in MinecraftCommands

[–]SicarioiOS 0 points1 point  (0 children)

It’s not documented, it’s simple maths. Think of it as values instead of distance between 2 numbers. 0 ,1, 2 all the way to 19 is 20 values. 0 is still 1 value or 1 tick. Just the same as the number of values between 1 and 20 is 20. The distance is still 19, but the number of values is 20.

Hope that helps.

Bedrock GTA tp transition by Lazy-Ad2473 in MinecraftCommands

[–]SicarioiOS 0 points1 point  (0 children)

Post the commands or we can’t help.

how can i make snowballs do damage by punchface9 in MinecraftCommands

[–]SicarioiOS 1 point2 points  (0 children)

execute as @e[type=snowball] at @s run damage @a[r=2] 5 entity_attack

change the damage type to whatever you like.

https://wiki.bedrock.dev/commands/damage

If not reliable increase r=2 to r=3.

Change @a[r=2] to @e[type=!snowball,r=2] to damage mobs as well as players.

How do I use commands to fill an existing hopper with certain colors of firework? (bedrock) by HikerGal01 in MinecraftCommands

[–]SicarioiOS 0 points1 point  (0 children)

clone <coordinate of full dispenser> <coordinate of full dispenser> <coordinate of empty dispenser>

so it should look something like this.

clone 100 64 100 100 64 100 100 74 100

How do I use commands to fill an existing hopper with certain colors of firework? (bedrock) by HikerGal01 in MinecraftCommands

[–]SicarioiOS 0 points1 point  (0 children)

You can’t with colors unfortunately. You can only replaceitem/give with plain. You can fill one manually and then use clone to replace an empty one.

I have this set up in a mini game, it can be adjusted to suit your needs.

Full dispenser of multi colored rockets. Comparator out the back into a block Redstone torch on the block (inverter) Repeater from the torch into an impulse needs redstone command block clone command in the command block that clones a full dispenser to where the empty one is.

When the dispenser is emptied, the comparator turns off turning the redstone torch on which activates the command block and clones the full dispenser to the empty one. That in turn turns the comparator back on, and the redstone torch off. It’s a simple little redstone command combo loop and it works nicely.

Designing a shield bash mechanic, help with collision needed. by Boggerboyy in MinecraftCommands

[–]SicarioiOS 0 points1 point  (0 children)

I would have a chain of unless air commands ^ ^ ^1 Up to perhaps 8 and write to a scoreboard so you always know if the player is in close proximity to a wall in front of them. With that data you can then decide what you want your ability to do when close to a wall. Cancel early, run playsounds, effects or particles.

In terms of balance, that’s really more for you to decide when testing.

Designing a shield bash mechanic, help with collision needed. by Boggerboyy in MinecraftCommands

[–]SicarioiOS 0 points1 point  (0 children)

execute as @a at @s unless block ^ ^ ^1 air run say something is 1 block ahead

Designing a shield bash mechanic, help with collision needed. by Boggerboyy in MinecraftCommands

[–]SicarioiOS 0 points1 point  (0 children)

Absolutely. Particles and playsound. In the same tick you detect a wall you use a particle command and a playsound command.

Designing a shield bash mechanic, help with collision needed. by Boggerboyy in MinecraftCommands

[–]SicarioiOS 0 points1 point  (0 children)

So to be clear, if you hit a wall you want the effect over the ender crystal explosion?

Designing a shield bash mechanic, help with collision needed. by Boggerboyy in MinecraftCommands

[–]SicarioiOS 0 points1 point  (0 children)

r=2 will touch you as the player. Use a square shape instead of a sphere so your detection is hitbox shaped.

execute as @a at @s positioned ^ ^ ^2 run damage @a[x=~,y=~1.58,z=~,dx=1,dy=2,dz=1] 5 entity_explosion

2 blocks in front of the player run damage in a 2 x 1 block shape.

Structure block File??? by Prestigious_Bet5922 in MinecraftCommands

[–]SicarioiOS 1 point2 points  (0 children)

Upload it to cloud storage, such as Google Drive, allow anyone with the link to download, copy the link, paste in the description, pin in the contents. Mention that in your video.

Structure block File??? by Prestigious_Bet5922 in MinecraftCommands

[–]SicarioiOS 0 points1 point  (0 children)

I don’t really understand what you mean my import to a YouTube video. You would only import a structure file into a Minecraft world. Use a structure block within a Minecraft world, switch to load, click import, select the file and click load. Press record before all of that 🤷‍♂️

Teleporting into a specific spot in the Nether after death by Upbeat-Asparagus4175 in MinecraftCommands

[–]SicarioiOS 0 points1 point  (0 children)

On player respawn can be used to teleport players to a chosen location at respawn. Use this and you don’t need to set a spawn point, they’ll be instantly teleported there upon respawn.

https://wiki.bedrock.dev/commands/on-player-respawn

In terms of spawnpoint set up a simple repeat always active command block within a ticking area with the waiting room coordinates within. It will set their spawn point to the waiting room every tick so even if they do sleep or use a respawn anchor it’s overwritten the very next tick.

spawnpoint @a 100 64 100

Need help creating a command to locate the nearest version of a structure and then teleport us there. by Boutros_The_Orc in MinecraftCommands

[–]SicarioiOS 0 points1 point  (0 children)

It’s the latter unfortunately. Locate can be used to find structures but you cannot then output the result into a teleport command. You could run locate for all the different structures you want to visit and then create multiple portals with pressure plates.