5
Java Edition Help! - Oscilllate
Posted it in the wrong thing before, fixed that
Anything Java related!
If you want help, comment, I will try to get back to you, no technical requests, but commands and anything else is fine!
Anything Java related!
If you want help, comment, I will try to get back to you, no technical requests, but commands and anything else is fine!
Create an account or sign in to comment.
11

Hi!
Do you know command block stuff too by any chance?
Do you know command block stuff too by any chance?

hello! I know some command block stuff, I don't usually fiddle around with chain ones though, but I'll try my best to help!

Cool!
I have 2 questions
1. Do you happen to know how to activate command blocks when a player enters a certain area without using pressureplates?
2. Is it really difficult to make a simple interactive dialogue with a villager or armorstand character for example? If not, could you maybe tell the basics (or maybe you know good resources for these types of things)
Cuz ive been playing this game too long without really opening myself up to the possibilities of command blocks
All ive done so far is a simple gate animation with the help of a friend lol
Thanks in advance :)
I have 2 questions
1. Do you happen to know how to activate command blocks when a player enters a certain area without using pressureplates?
2. Is it really difficult to make a simple interactive dialogue with a villager or armorstand character for example? If not, could you maybe tell the basics (or maybe you know good resources for these types of things)
Cuz ive been playing this game too long without really opening myself up to the possibilities of command blocks
All ive done so far is a simple gate animation with the help of a friend lol
Thanks in advance :)

1.
2.
Yes, especially if you cannot/do not know how to use a datapack. You'll need to hook villagers/interaction entities with an advancement that detects the right click.
This video is a more simply showcase using villagers
execute as @a[x=<x_coord>,y=<y_coord>,z=<z_coord>,r=<radius>] run <command>
Alternativelyexecute as @a[x=<x_coord>,y=<y_coord>,z=<z_coord>,dx=<x_distance>,dy=<y_distance>,dz=<z_distance>] run <command>
1st command looks for the player in a spherical radius, and 2nd command looks in a bounding box in the dx/dy/dz direction from the xyz coordinates.2.
Yes, especially if you cannot/do not know how to use a datapack. You'll need to hook villagers/interaction entities with an advancement that detects the right click.
This video is a more simply showcase using villagers

Yoo tysm for the additional details and the video!
And yes, id rather not use a datapack so using the advancements will work just fine for me :)
So cool, I never know whats how it could be done
And yes, id rather not use a datapack so using the advancements will work just fine for me :)
So cool, I never know whats how it could be done

Custom advancements inherently require a datapack, so you're not going to have a good time
view more replies ( 1 )

I'll try my best to answer:
1. you can activate it using the /execute, (e.g. /execute @a[x=X,y=Y,z=Z,r=R] ~ ~ ~ <your_command>
replace X and Y and Z with the coords of the center area
and replace R with the block radius for the area, then the <your_command> with something like /say hello! or whatever thing you want like /gamemode adventure if it is a safe-zone!
2. Actually, it is really easy to make a dialogue for things like that! Use /tellraw [player] {"text":"your_text","color":"gold"}
I'm not sure if that works for the newest versions, because around 1.21 they changed commands.
Hope this helps!
1. you can activate it using the /execute, (e.g. /execute @a[x=X,y=Y,z=Z,r=R] ~ ~ ~ <your_command>
replace X and Y and Z with the coords of the center area
and replace R with the block radius for the area, then the <your_command> with something like /say hello! or whatever thing you want like /gamemode adventure if it is a safe-zone!
2. Actually, it is really easy to make a dialogue for things like that! Use /tellraw [player] {"text":"your_text","color":"gold"}
I'm not sure if that works for the newest versions, because around 1.21 they changed commands.
Hope this helps!

your execute syntax is for 1.12 and below...
You got the dialogue part down, but how would you interact with those entities in the first place?
You got the dialogue part down, but how would you interact with those entities in the first place?

Yess! That’ll definitely help me get started with both of these :D
Thank you
Thank you

glad I could help!