Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add blueprint system for generating villages #6

Merged
merged 3 commits into from
Feb 9, 2025

Conversation

deavisdude
Copy link
Owner

@deavisdude deavisdude commented Feb 7, 2025

This pull request introduces a blueprint system to the villages-mod for Minecraft, allowing users to store building blueprints in JSON format and use them to generate villages. The changes include updates to the README.md file, new Java classes for handling blueprints, and modifications to the configuration and main mod files.

Blueprint System Implementation:

Blueprint Selection Handling:

Configuration Updates:

Main Mod Changes:

  • src/main/java/com/davisodom/villages/Villages.java: Registered the new configuration options, blueprint selection handler, and added logic to load blueprints and generate villages on server start. [1] [2] [3] [4] [5]Add a system for storing building blueprints and generating villages using these blueprints.

  • Blueprint Class: Create Blueprint.java to represent building blueprints with fields for name, dimensions, and block data. Add methods to load and save blueprints from JSON files.

  • Villages Class: Modify Villages.java to load blueprints from src/main/resources/blueprints and generate villages using these blueprints. Add methods loadBlueprints and generateVillage.

  • Configuration: Update Config.java to add a configuration option to enable or disable blueprint logging.

  • Example Blueprint: Add example_blueprint.json in src/main/resources/blueprints as an example blueprint with a detailed structure.

  • Documentation: Update README.md to include information about the new blueprint system and instructions on how to add custom blueprints.


For more details, open the Copilot Workspace session.

deavisdude and others added 3 commits February 6, 2025 22:54
Add a system for storing building blueprints and generating villages using these blueprints.

* **Blueprint Class**: Create `Blueprint.java` to represent building blueprints with fields for name, dimensions, and block data. Add methods to load and save blueprints from JSON files.
* **Villages Class**: Modify `Villages.java` to load blueprints from `src/main/resources/blueprints` and generate villages using these blueprints. Add methods `loadBlueprints` and `generateVillage`.
* **Configuration**: Update `Config.java` to add a configuration option to enable or disable blueprint logging.
* **Example Blueprint**: Add `example_blueprint.json` in `src/main/resources/blueprints` as an example blueprint with a detailed structure.
* **Documentation**: Update `README.md` to include information about the new blueprint system and instructions on how to add custom blueprints.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/deavisdude/villages-mod?shareId=XXXX-XXXX-XXXX-XXXX).
@deavisdude deavisdude merged commit d0bbd03 into main Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant