5

Java Edition Help! - Oscilllate

Oscilllate 6/16/25 6:30 pm
300
6/18/2025 5:14 am
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!
Posted by
Oscilllate
Level 44 : Master Button Pusher Demolitionist
248

  Have something to say?

JoinSign in

11

PingvoMC
06/16/2025 6:52 pm
He/Him • Level 58 : Grandmaster Architect Blob
Hi!

Do you know command block stuff too by any chance?
2
Oscilllate
06/16/2025 7:48 pm
He/Him • Level 44 : Master Button Pusher Demolitionist
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!
3
PingvoMC
06/16/2025 8:28 pm
He/Him • Level 58 : Grandmaster Architect Blob
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 :)
2
HoboMaggot
06/17/2025 7:49 am
Level 55 : Grandmaster Blob
1.
execute as @a[x=<x_coord>,y=<y_coord>,z=<z_coord>,r=<radius>] run <command>Alternatively
execute 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
2
PingvoMC
06/17/2025 12:48 pm
He/Him • Level 58 : Grandmaster Architect Blob
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
1
HoboMaggot
06/18/2025 4:12 am
Level 55 : Grandmaster Blob
history
Custom advancements inherently require a datapack, so you're not going to have a good time
2
Oscilllate
06/16/2025 8:39 pm
He/Him • Level 44 : Master Button Pusher Demolitionist
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!
3
HoboMaggot
06/17/2025 7:50 am
Level 55 : Grandmaster Blob
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?
3
PingvoMC
06/16/2025 8:50 pm
He/Him • Level 58 : Grandmaster Architect Blob
history
Yess! That’ll definitely help me get started with both of these :D
Thank you
2
Oscilllate
06/16/2025 9:01 pm
He/Him • Level 44 : Master Button Pusher Demolitionist
glad I could help!
2

Welcome