-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,168 changed files
with
27,503 additions
and
3,087 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
mc_version: "1.20.6" | ||
assets_path: "./assets" | ||
generated_path: "./generated" | ||
build_path: "./build" | ||
datapacks_path: "./datapacks" | ||
world_path: "." | ||
bookshelf_libs: | ||
- "Bookshelf" | ||
- "Bookshelf Dev" | ||
metadata_folder: "metadata" | ||
doc_url: "https://bookshelf.docs.gunivers.net/" | ||
feature_tag_namespace: "__bookshelf__" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
name: "🐛 Bug report" | ||
about: Report a reproducible bug. | ||
labels: '🐛 Bug' | ||
|
||
--- | ||
|
||
<!-- | ||
Please provide a clear and concise description of what the bug is. Includes creenshots if needed. | ||
Please test using the latest Bookshelf version to make sure your issue has not already been fixed. | ||
--> | ||
|
||
Bookshelf version: | ||
Feature path: | ||
|
||
## Steps To Reproduce | ||
|
||
1. | ||
2. | ||
|
||
<!-- | ||
It is much easier for us to understand and fix a bug if we have a way to reproduce it. | ||
If the bug is cause by the succession of several features call, please indicate the different steps. | ||
--> | ||
|
||
Code example: | ||
|
||
<!-- | ||
Please provide a minimal example to reproduce the bug. | ||
--> | ||
|
||
## The current behavior | ||
|
||
|
||
## The expected behavior |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: ❓ Question | ||
url: https://github.com/Gunivers/Bookshelf/discussions | ||
about: Please ask questions here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
name: ✨ Feature request | ||
about: Suggest a new feature and/or a new module. | ||
--- | ||
<!-- Please search existing issues to avoid creating duplicates. --> | ||
<!-- Describe the feature you'd like. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
name: 📝 Other | ||
about: For other suggestions such as asking to add new related tools into the documentation, etc. | ||
--- | ||
<!-- Please search existing issues to avoid creating duplicates. --> | ||
<!-- Describe the feature you'd like. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# Tasks to do before merging | ||
- [ ] I accept to publish my contribution under [MPL v2](http://mozilla.org/MPL/2.0/) License | ||
- [ ] My pull request is linked to an existing issue | ||
- [ ] I have added my contribution to the [changelog](https://github.com/Gunivers/Bookshelf/blob/master/docs/CHANGELOG.md) | ||
- If my pull request is a new or modify an existing feature: | ||
- [ ] I have documented my contribution (`/docs`) | ||
- [ ] I added or updated the [header](https://bookshelf.docs.gunivers.net/en/latest/contribute/file-format.html) of the features' root function I contribute | ||
- [ ] I [tested](https://bookshelf.docs.gunivers.net/en/latest/contribute/debug.html#unit-tests) my contribution | ||
- [ ] I have added or updated the [header](https://bookshelf.docs.gunivers.net/en/latest/contribute/file-format.html) of the features' root function I contribute | ||
- [ ] I have [tested](https://bookshelf.docs.gunivers.net/en/latest/contribute/debug.html#unit-tests) my contribution |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: 🔍 Pull Request Checks | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "datapacks/**" | ||
types: | ||
[ | ||
opened, | ||
synchronize, | ||
reopened, | ||
labeled, | ||
unlabeled | ||
] | ||
|
||
env: | ||
GITHUB_EVENT: ${{ toJSON(github.event) }} | ||
|
||
jobs: | ||
review-metadata: | ||
name: 🔍 Metadata Review | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
|
||
- name: Install dependencies | ||
run: pip install -e ./scripts | ||
|
||
- name: Check installation | ||
run: python -m pip list | ||
|
||
- name: Check function headers | ||
run: python scripts/ci/check_function_headers_wf.py | ||
|
||
- name: Check feature tag metadata | ||
run: python scripts/ci/check_feature_tag_metadata_wf.py | ||
|
||
- name: Check generated metadata | ||
run: python scripts/ci/check_generated_metadata_wf.py | ||
|
||
- name: Check module metadata files | ||
run: python scripts/ci/check_metadata_files_wf.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
datapacks/Bookshelf Dev/data/bs.dump/.metadata/generated/features.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
[ | ||
{ | ||
"name": "help", | ||
"documentation": "https://bookshelf.docs.gunivers.net/en/latest/modules/dump.html", | ||
"authors": [ | ||
"Aksiome" | ||
], | ||
"created": { | ||
"date": "2024/03/05", | ||
"version": "1.20.4" | ||
}, | ||
"updated": { | ||
"date": "2024/03/05", | ||
"version": "1.20.4" | ||
} | ||
}, | ||
{ | ||
"name": "load", | ||
"documentation": "https://bookshelf.docs.gunivers.net/en/latest/modules/dump.html", | ||
"authors": [ | ||
"Aksiome" | ||
], | ||
"created": { | ||
"date": "2024/03/05", | ||
"version": "1.20.4" | ||
}, | ||
"updated": { | ||
"date": "2024/03/05", | ||
"version": "1.20.4" | ||
} | ||
}, | ||
{ | ||
"name": "unload", | ||
"documentation": "https://bookshelf.docs.gunivers.net/en/latest/modules/dump.html", | ||
"authors": [ | ||
"Aksiome" | ||
], | ||
"created": { | ||
"date": "2024/03/05", | ||
"version": "1.20.4" | ||
}, | ||
"updated": { | ||
"date": "2024/03/05", | ||
"version": "1.20.4" | ||
} | ||
}, | ||
{ | ||
"name": "var", | ||
"documentation": "https://bookshelf.docs.gunivers.net/en/latest/modules/dump.html#dump-var", | ||
"authors": [ | ||
"Aksiome" | ||
], | ||
"created": { | ||
"date": "2024/03/02", | ||
"version": "1.20.4" | ||
}, | ||
"updated": { | ||
"date": "2024/03/02", | ||
"version": "1.20.4" | ||
} | ||
} | ||
] |
15 changes: 15 additions & 0 deletions
15
datapacks/Bookshelf Dev/data/bs.dump/.metadata/generated/module.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "bs.dump", | ||
"display_name": "Dump", | ||
"description": "Dump the content of given variables to the chat.", | ||
"documentation": "https://bookshelf.docs.gunivers.net/en/latest/modules/dump.html", | ||
"authors": [ | ||
"Aksiome" | ||
], | ||
"features": [ | ||
"bs.dump:help", | ||
"bs.dump:load", | ||
"bs.dump:unload", | ||
"bs.dump:var" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "bs.dump", | ||
"display_name": "Dump", | ||
"description": "Dump the content of given variables to the chat.", | ||
"documentation": "https://bookshelf.docs.gunivers.net/en/latest/modules/dump.html" | ||
} |
20 changes: 16 additions & 4 deletions
20
datapacks/Bookshelf Dev/data/bs.dump/function/__help__.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
# INFO ------------------------------------------------------------------------ | ||
# Copyright © 2024 Gunivers Community. | ||
|
||
# CODE ------------------------------------------------------------------------ | ||
# ------------------------------------------------------------------------------------------------------------ | ||
# Copyright (c) 2024 Gunivers | ||
# | ||
# This file is part of the Bookshelf project (https://github.com/Gunivers/Bookshelf). | ||
# | ||
# This source code is subject to the terms of the Mozilla Public License, v. 2.0. | ||
# If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
# | ||
# Conditions: | ||
# - You may use this file in compliance with the MPL v2.0 | ||
# - Any modifications must be documented and disclosed under the same license | ||
# | ||
# For more details, refer to the MPL v2.0. | ||
# | ||
# Documentation of the feature: https://bookshelf.docs.gunivers.net/en/latest/modules/dump.html | ||
# ------------------------------------------------------------------------------------------------------------ | ||
|
||
tellraw @s [{"text": "[bs.dump documentation]", "color": "dark_aqua", "clickEvent": {"action": "open_url", "value": "https://bookshelf.docs.gunivers.net/en/latest/modules/dump.html"}, "hoverEvent": {"action": "show_text", "contents": "Click to open URL"}}] |
20 changes: 16 additions & 4 deletions
20
datapacks/Bookshelf Dev/data/bs.dump/function/__load__.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 16 additions & 4 deletions
20
datapacks/Bookshelf Dev/data/bs.dump/function/__unload__.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
datapacks/Bookshelf Dev/data/bs.dump/function/expand.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.