├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.yml │ └── feature_request.md └── workflows │ └── release.yml ├── .gitignore ├── .python-version ├── CHANGELOG.md ├── LICENSE.txt ├── README.md ├── assets ├── chlo │ └── models │ │ └── item │ │ └── chunk_loader.json └── minecraft │ └── models │ └── item │ └── dolphin_spawn_egg.json ├── beet.yaml ├── images └── crafting.jpg ├── pack.png ├── plugins ├── installation_advancement.py └── remove_empty_functions.py ├── pyproject.toml ├── requirements-dev.lock ├── requirements.lock └── src └── data ├── 2mal3 └── modules │ └── log.bolt ├── chlo ├── functions │ ├── core.mcfunction │ ├── loader.mcfunction │ └── place.mcfunction ├── loot_table │ └── chunk_loader.json └── recipe │ └── chunk_loader.json ├── load ├── functions │ └── _private │ │ └── init.mcfunction └── tags │ └── functions │ ├── _private │ ├── init.json │ └── load.json │ ├── load.json │ ├── post_load.json │ └── pre_load.json └── minecraft └── tags └── functions └── load.json /.github/ISSUE_TEMPLATE/bug_report.yml: -------------------------------------------------------------------------------- 1 | name: Bug report 2 | description: "Use this template if you're running into bugs or other issues" 3 | labels: 4 | - bug 5 | body: 6 | - type: input 7 | id: minecraft-version 8 | attributes: 9 | label: Minecraft version 10 | description: >- 11 | The version of Minecraft you are using this datapack with. 12 | placeholder: "Example: 1.19.4" 13 | validations: 14 | required: true 15 | - type: input 16 | id: datapack-version 17 | attributes: 18 | label: Datapack version 19 | description: >- 20 | The version of the datapack. The version can be found next 21 | to the datapack name in the `Installed Datapacks` advancement tab. 22 | placeholder: "Example: v3.1.3" 23 | validations: 24 | required: true 25 | - type: textarea 26 | id: expected 27 | attributes: 28 | label: Expected Behavior 29 | description: What did you expect to happen? 30 | placeholder: "Example: The Piston should extend." 31 | validations: 32 | required: true 33 | - type: textarea 34 | id: actual 35 | attributes: 36 | label: Actual Behavior 37 | description: What did actually happen? 38 | placeholder: "Example: The Piston does not extend." 39 | validations: 40 | required: true 41 | - type: textarea 42 | id: repro-steps 43 | attributes: 44 | label: Reproduction Steps 45 | description: >- 46 | Provide information on how to reproduce this bug. You can either 47 | fill this section in like the example below or do something else 48 | just make sure your instructions are minimal and clear, as I need 49 | to be able to replicate your issue. 50 | placeholder: | 51 | Example: 52 | 1. Place a Redstone Lamp in front of a Redstone Repeater 53 | 2. Use a Lever to activate the Redstone Repeater 54 | 3. Nothing happens 55 | validations: 56 | required: true 57 | - type: textarea 58 | id: additional 59 | attributes: 60 | label: Additional information 61 | description: >- 62 | Provide a list of any other datapacks you are using, along with their 63 | respective versions. If you have any screenshots, videos, or other 64 | information that you feel is necessary to explain the issue, feel free 65 | to attach them here. 66 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | labels: enhancement 5 | --- 6 | 7 | **Is your feature request related to a problem? Please describe.** 8 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 9 | 10 | **Describe the solution you'd like** 11 | A clear and concise description of what you want to happen. 12 | 13 | **Describe alternatives you've considered** 14 | A clear and concise description of any alternative solutions or features you've considered. 15 | 16 | **Additional context** 17 | Add any other context or screenshots about the feature request here. 18 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: Release 2 | 3 | on: 4 | push: 5 | tags: 6 | - "v*.*.*" 7 | 8 | permissions: 9 | contents: write 10 | 11 | env: 12 | NAME: 'Chunk-Loader' 13 | MODRINTH_ID: 'Eii02wjv' 14 | 15 | jobs: 16 | release: 17 | runs-on: ubuntu-latest 18 | 19 | steps: 20 | - name: Checkout 21 | uses: actions/checkout@v4 22 | with: 23 | fetch-depth: 0 24 | 25 | - name: Set up Python 26 | uses: actions/setup-python@v5 27 | with: 28 | cache: pip 29 | - name: Install dependencies 30 | run: pip install -r requirements.lock 31 | 32 | - name: Build 33 | run: beet 34 | 35 | - name: Pack Datapack 36 | run: | 37 | cp -r build/${{ env.NAME }}/* . 38 | zip -r ${{ env.NAME }} LICENSE.txt README.md CHANGELOG.md data pack.mcmeta pack.png 39 | 40 | - name: Pack Resourcepack 41 | run: | 42 | cp -r build/${{ env.NAME }}-Resourcepack/* . 43 | zip -r ${{ env.NAME }}-Resourcepack LICENSE.txt README.md CHANGELOG.md assets pack.mcmeta pack.png 44 | 45 | - name: Publish on Modrinth 46 | uses: Kir-Antipov/mc-publish@v3.3 47 | with: 48 | modrinth-id: ${{ env.MODRINTH_ID }} 49 | modrinth-token: ${{ secrets.MODRINTH_TOKEN }} 50 | modrinth-unfeature-mode: intersection 51 | 52 | github-token: ${{ secrets.GITHUB_TOKEN }} 53 | 54 | name: ${{ env.NAME }} ${{github.ref_name}} 55 | version: ${{github.ref_name}} 56 | version-type: release 57 | changelog-file: CHANGELOG.md 58 | files: | 59 | ${{ env.NAME }}.zip 60 | ${{ env.NAME }}-Resourcepack.zip 61 | 62 | loaders: datapack 63 | game-versions: | 64 | 1.21.0 65 | 1.21.1 66 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # editor files 2 | .vscode/ 3 | 4 | # generated files 5 | .beet_cache 6 | build/ 7 | plugins/__pycache__/ 8 | .venv/ 9 | -------------------------------------------------------------------------------- /.python-version: -------------------------------------------------------------------------------- 1 | 3.11.6 2 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | 2 | ### Changed 3 | 4 | - updated to Minecraft 1.21 5 | - improved performance 6 | - removed warning message if resourcepack is not installed 7 | 8 | ### Fixed 9 | 10 | - no real native Chunk Loader recipe (used the knowledge book method) 11 | - recipe would not be displayed in the recipe book 12 | - "unlock all recipes" datapacks could break the datapack 13 | - recipe mods like JEI would not show the Chunk Loader recipe (closes #22) 14 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | 2 | GNU LESSER GENERAL PUBLIC LICENSE 3 | Version 3, 29 June 2007 4 | 5 | Copyright (C) 2007 Free Software Foundation, Inc. 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | 10 | This version of the GNU Lesser General Public License incorporates 11 | the terms and conditions of version 3 of the GNU General Public 12 | License, supplemented by the additional permissions listed below. 13 | 14 | 0. Additional Definitions. 15 | 16 | As used herein, "this License" refers to version 3 of the GNU Lesser 17 | General Public License, and the "GNU GPL" refers to version 3 of the GNU 18 | General Public License. 19 | 20 | "The Library" refers to a covered work governed by this License, 21 | other than an Application or a Combined Work as defined below. 22 | 23 | An "Application" is any work that makes use of an interface provided 24 | by the Library, but which is not otherwise based on the Library. 25 | Defining a subclass of a class defined by the Library is deemed a mode 26 | of using an interface provided by the Library. 27 | 28 | A "Combined Work" is a work produced by combining or linking an 29 | Application with the Library. The particular version of the Library 30 | with which the Combined Work was made is also called the "Linked 31 | Version". 32 | 33 | The "Minimal Corresponding Source" for a Combined Work means the 34 | Corresponding Source for the Combined Work, excluding any source code 35 | for portions of the Combined Work that, considered in isolation, are 36 | based on the Application, and not on the Linked Version. 37 | 38 | The "Corresponding Application Code" for a Combined Work means the 39 | object code and/or source code for the Application, including any data 40 | and utility programs needed for reproducing the Combined Work from the 41 | Application, but excluding the System Libraries of the Combined Work. 42 | 43 | 1. Exception to Section 3 of the GNU GPL. 44 | 45 | You may convey a covered work under sections 3 and 4 of this License 46 | without being bound by section 3 of the GNU GPL. 47 | 48 | 2. Conveying Modified Versions. 49 | 50 | If you modify a copy of the Library, and, in your modifications, a 51 | facility refers to a function or data to be supplied by an Application 52 | that uses the facility (other than as an argument passed when the 53 | facility is invoked), then you may convey a copy of the modified 54 | version: 55 | 56 | a) under this License, provided that you make a good faith effort to 57 | ensure that, in the event an Application does not supply the 58 | function or data, the facility still operates, and performs 59 | whatever part of its purpose remains meaningful, or 60 | 61 | b) under the GNU GPL, with none of the additional permissions of 62 | this License applicable to that copy. 63 | 64 | 3. Object Code Incorporating Material from Library Header Files. 65 | 66 | The object code form of an Application may incorporate material from 67 | a header file that is part of the Library. You may convey such object 68 | code under terms of your choice, provided that, if the incorporated 69 | material is not limited to numerical parameters, data structure 70 | layouts and accessors, or small macros, inline functions and templates 71 | (ten or fewer lines in length), you do both of the following: 72 | 73 | a) Give prominent notice with each copy of the object code that the 74 | Library is used in it and that the Library and its use are 75 | covered by this License. 76 | 77 | b) Accompany the object code with a copy of the GNU GPL and this license 78 | document. 79 | 80 | 4. Combined Works. 81 | 82 | You may convey a Combined Work under terms of your choice that, 83 | taken together, effectively do not restrict modification of the 84 | portions of the Library contained in the Combined Work and reverse 85 | engineering for debugging such modifications, if you also do each of 86 | the following: 87 | 88 | a) Give prominent notice with each copy of the Combined Work that 89 | the Library is used in it and that the Library and its use are 90 | covered by this License. 91 | 92 | b) Accompany the Combined Work with a copy of the GNU GPL and this license 93 | document. 94 | 95 | c) For a Combined Work that displays copyright notices during 96 | execution, include the copyright notice for the Library among 97 | these notices, as well as a reference directing the user to the 98 | copies of the GNU GPL and this license document. 99 | 100 | d) Do one of the following: 101 | 102 | 0) Convey the Minimal Corresponding Source under the terms of this 103 | License, and the Corresponding Application Code in a form 104 | suitable for, and under terms that permit, the user to 105 | recombine or relink the Application with a modified version of 106 | the Linked Version to produce a modified Combined Work, in the 107 | manner specified by section 6 of the GNU GPL for conveying 108 | Corresponding Source. 109 | 110 | 1) Use a suitable shared library mechanism for linking with the 111 | Library. A suitable mechanism is one that (a) uses at run time 112 | a copy of the Library already present on the user's computer 113 | system, and (b) will operate properly with a modified version 114 | of the Library that is interface-compatible with the Linked 115 | Version. 116 | 117 | e) Provide Installation Information, but only if you would otherwise 118 | be required to provide such information under section 6 of the 119 | GNU GPL, and only to the extent that such information is 120 | necessary to install and execute a modified version of the 121 | Combined Work produced by recombining or relinking the 122 | Application with a modified version of the Linked Version. (If 123 | you use option 4d0, the Installation Information must accompany 124 | the Minimal Corresponding Source and Corresponding Application 125 | Code. If you use option 4d1, you must provide the Installation 126 | Information in the manner specified by section 6 of the GNU GPL 127 | for conveying Corresponding Source.) 128 | 129 | 5. Combined Libraries. 130 | 131 | You may place library facilities that are a work based on the 132 | Library side by side in a single library together with other library 133 | facilities that are not Applications and are not covered by this 134 | License, and convey such a combined library under terms of your 135 | choice, if you do both of the following: 136 | 137 | a) Accompany the combined library with a copy of the same work based 138 | on the Library, uncombined with any other library facilities, 139 | conveyed under the terms of this License. 140 | 141 | b) Give prominent notice with the combined library that part of it 142 | is a work based on the Library, and explaining where to find the 143 | accompanying uncombined form of the same work. 144 | 145 | 6. Revised Versions of the GNU Lesser General Public License. 146 | 147 | The Free Software Foundation may publish revised and/or new versions 148 | of the GNU Lesser General Public License from time to time. Such new 149 | versions will be similar in spirit to the present version, but may 150 | differ in detail to address new problems or concerns. 151 | 152 | Each version is given a distinguishing version number. If the 153 | Library as you received it specifies that a certain numbered version 154 | of the GNU Lesser General Public License "or any later version" 155 | applies to it, you have the option of following the terms and 156 | conditions either of that published version or of any later version 157 | published by the Free Software Foundation. If the Library as you 158 | received it does not specify a version number of the GNU Lesser 159 | General Public License, you may choose any version of the GNU Lesser 160 | General Public License ever published by the Free Software Foundation. 161 | 162 | If the Library as you received it specifies that a proxy can decide 163 | whether future versions of the GNU Lesser General Public License shall 164 | apply, that proxy's public statement of acceptance of any version is 165 | permanent authorization for you to choose that version for the 166 | Library. 167 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Chunk Loader 2 | 3 | ![GitHub release (latest by date)](https://img.shields.io/github/v/release/2mal3/Chunk-Loader?style=flat-square) ![GitHub all releases](https://img.shields.io/github/downloads/2mal3/Chunk-Loader/total?style=flat-square) ![Minecraft](https://img.shields.io/badge/Minecraft-1.21-orange?style=flat-square) 4 | 5 | With Chunk Loader Datapack the Chunk Loader is added to the game. With it - surprise - you can permanently load chunks. 6 | This means that you can be anywhere in the world, while the chunk in which the Chunk Loader is placed is still loaded. 7 | 8 | In order for the Chunk Loader to load the chunk, it needs 3 Redstone Dust per minute. To fill, simply right-click and place it inside. As soon as there is no more Redstone dust inside, the chunk loader stops working and the chunk will be unloaded until new Redstone dust is added. 9 | 10 | ### Crafting recipe 11 | 12 | ![Crafting Picture](https://github.com/2mal3/Chunk-Loader/blob/master/images/crafting.jpg) 13 | 14 | ### Settings 15 | 16 | - deactivate fuel consumption: `/scoreboard players set $require_fuel chlo.data 0` 17 | - deactivate ambient sound: `/scoreboard players set $sound chlo.data 0` 18 | - change fuel consumption speed: `/scoreboard players set $fuel_time chlo.data