Dynamically define json files of cuboid regions that control the voice groups that players are in.
Important Simple Voice Mod v2.4.25+ and Enchanced Groups v1.4.0+ must be installed on the server for this pack.
- Grab the data pack from here and load it into your world.
- Run
/function auto_voice_regions:main/create_groups
- You may need to restart your game or server for the groups to work w/ the data pack
- Run
/trigger auto_voice_regions
to turn on the data pack - Regions defined in the
src/config.json
file will now dynamically control the voice groups of players.
/trigger auto_voice_regions
will toggle the data pack on and off- This will clean any region displays as well
/trigger toggle_region_displays
will toggle the region displays on and off- This provides the visuals to the cuboid regions defined for each voice group
/trigger toggle_region_displays
will toggle a visual display of the regions defined incoords.json
/function auto_voice_regions:main/debug/corner_displays
will add displays for the corners of the regions defined incoords.json
- The red block is the origin and the white one is the corner
/function auto_voice_regions:main/debug/remove_corner_displays
will remove the displays
/function auto_voice_regions:main/create_groups
will create persistent voice groups for each region/function auto_voice_regions:main/remove_groups
will remove them.
This project uses beet
, a python-based build tool to help create data and resource packs. The repo holds uncompiled code that is transformed to vanilla commands. To build the pack:
- Have a working Python 3.10+ environment (many systems come w/ this pre-installed)
- Install the requirements via
pip
, a python package manager
pip install -r requirements.lock
orpython -m pip install -r requirements.lock
- Clone this repo
git clone https://github.com/rx-modules/hermit-tools
- Navigate to this subfolder and run
beet
-
cd hermit-tools/auto-voice-regions beet # or python -m beet
This repo auto-builds and attaches the built pack to a release when a version is bumped. To publish a new version:
- Make changes within
auto-voice-regions
- Bump version in
beet.yaml
- Commit and push changes