Started by
007serialgamer
on
Topic category: Help with Minecraft modding (Java Edition)
Hello, im trying to do a proximity text chat (since i don't want a voice chat (might get added later)) for my backrooms mod that is only in a certain dimension and you need a radio to talk to other when you are far
Make a procedure that triggers when "player sent chat" and check if other players are nearby, if not then cancel event
thanks but how i do this in only a specific dimention please
oh and i can't find how to check if another player is nerby
use if provided dimension is equal to "your dimension name" and inside that put "for each entity in radius 4" and inside of that put "if entity is player" then increase a variable by 1. If it is 2, then another player is nearby, because there are 2 players: you and them. stuff all your code inside that.
If you can't figure it out, I can screenshot for you
I feel dumb but i can't do it i can't find how to add 1 to a variable , and my variable won't show up. I would like very much a screenshot please.
https://imgur.com/a/GNelZZp image here
replace "4" with your wanted chat distance
replace "nether" with your wanted dimension