├── .github
├── dependabot.yml
└── workflows
│ └── phpstan.yml
├── .gitignore
├── .php-cs-fixer.php
├── .poggit.yml
├── LICENSE
├── README.md
├── composer.json
├── composer.lock
├── icon.png
├── phpstan.neon.dist
├── plugin.yml
├── resources
├── NetherReactor Pack
│ ├── blocks.json
│ ├── entity
│ │ └── zombie_pigman.entity.json
│ ├── manifest.json
│ ├── models
│ │ └── entity
│ │ │ ├── zombie_pigman.geo.json
│ │ │ └── zombie_pigman_baby.geo.json
│ ├── pack_icon.png
│ ├── render_controllers
│ │ └── zombie_pigman.render_controllers.json
│ ├── sounds.json
│ ├── texts
│ │ ├── bg_BG.lang
│ │ ├── cs_CZ.lang
│ │ ├── da_DK.lang
│ │ ├── de_DE.lang
│ │ ├── el_GR.lang
│ │ ├── en_GB.lang
│ │ ├── en_US.lang
│ │ ├── es_ES.lang
│ │ ├── es_MX.lang
│ │ ├── fi_FI.lang
│ │ ├── fr_CA.lang
│ │ ├── fr_FR.lang
│ │ ├── hu_HU.lang
│ │ ├── id_ID.lang
│ │ ├── it_IT.lang
│ │ ├── ja_JP.lang
│ │ ├── ko_KR.lang
│ │ ├── nb_NO.lang
│ │ ├── nl_NL.lang
│ │ ├── pl_PL.lang
│ │ ├── pt_BR.lang
│ │ ├── pt_PT.lang
│ │ ├── ru_RU.lang
│ │ ├── sk_SK.lang
│ │ ├── sv_SE.lang
│ │ ├── tr_TR.lang
│ │ ├── uk_UA.lang
│ │ ├── zh_CN.lang
│ │ └── zh_TW.lang
│ └── textures
│ │ ├── blocks
│ │ ├── nether_reactor.png
│ │ ├── nether_reactor_active.png
│ │ └── nether_reactor_used.png
│ │ ├── entity
│ │ └── zombie_pigman.png
│ │ └── terrain_texture.json
└── structure
│ ├── nether_reactor_spire.json
│ ├── pattern.json
│ └── structure_config.yml
└── src
└── IvanCraft623
└── NetherReactor
├── NetherReactor.php
├── block
├── ExtraBlockRegisterHelper.php
├── ExtraBlockTypeIds.php
├── ExtraVanillaBlocks.php
├── NetherReactor.php
├── NetherReactorType.php
└── tile
│ └── NetherReactor.php
├── entity
├── ExtraEntityRegisterHelper.php
└── Pigman.php
├── lang
├── KnownTranslationFactory.php
└── KnownTranslationKeys.php
└── structure
├── NetherReactorRound.php
├── NetherReactorStructure.php
├── PatternLayer.php
├── PatternLayerTransformation.php
└── Platform.php
/.github/dependabot.yml:
--------------------------------------------------------------------------------
1 | version: 2
2 | updates:
3 | - package-ecosystem: "composer"
4 | directory: "/"
5 | schedule:
6 | interval: "daily"
7 |
--------------------------------------------------------------------------------
/.github/workflows/phpstan.yml:
--------------------------------------------------------------------------------
1 | name: PHPStan CI
2 |
3 | on: push
4 |
5 | jobs:
6 | phpstan:
7 | name: PHPStan Analysis
8 | runs-on: ubuntu-latest
9 | if: "!contains(github.event.head_commit.message, '[ci skip]')"
10 |
11 | steps:
12 | - name: Startup
13 | uses: actions/checkout@v3
14 |
15 | - name: Download PHP Release
16 | uses: dsaltares/fetch-gh-release-asset@1.1.0
17 | with:
18 | file: PHP-Linux-x86_64-PM5.tar.gz
19 | repo: pmmp/PHP-Binaries
20 | version: "tags/php-8.2-latest"
21 |
22 | - name: Unpack PHP Release
23 | run: tar -xzvf PHP-Linux-x86_64-PM5.tar.gz
24 |
25 | - name: Download Composer
26 | run: curl -o composer.phar "https://getcomposer.org/composer-stable.phar"
27 |
28 | - name: Install Composer dependencies
29 | run: ./bin/php7/bin/php composer.phar install --prefer-dist --no-interaction
30 |
31 | - name: Run PHPStan
32 | run: ./bin/php7/bin/php vendor/bin/phpstan.phar analyze --no-progress
33 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Composer
2 | vendor/*
3 |
4 | # php-cs-fixer
5 | /.php_cs.cache
6 | /.php-cs-fixer.cache
7 |
--------------------------------------------------------------------------------
/.php-cs-fixer.php:
--------------------------------------------------------------------------------
1 | in(__DIR__ . '/src');
5 |
6 | return (new PhpCsFixer\Config)
7 | ->setRiskyAllowed(true)
8 | ->setRules([
9 | 'align_multiline_comment' => [
10 | 'comment_type' => 'phpdocs_only'
11 | ],
12 | 'array_indentation' => true,
13 | 'array_syntax' => [
14 | 'syntax' => 'short'
15 | ],
16 | 'binary_operator_spaces' => [
17 | 'default' => 'single_space'
18 | ],
19 | 'blank_line_after_namespace' => true,
20 | 'blank_line_after_opening_tag' => true,
21 | 'blank_line_before_statement' => [
22 | 'statements' => [
23 | 'declare'
24 | ]
25 | ],
26 | 'cast_spaces' => [
27 | 'space' => 'single'
28 | ],
29 | 'concat_space' => [
30 | 'spacing' => 'one'
31 | ],
32 | 'declare_strict_types' => true,
33 | 'elseif' => true,
34 | 'fully_qualified_strict_types' => true,
35 | 'global_namespace_import' => [
36 | 'import_constants' => true,
37 | 'import_functions' => true,
38 | 'import_classes' => null,
39 | ],
40 | 'header_comment' => [
41 | 'comment_type' => 'comment',
42 | 'header' => <<
'after_open'
60 | ],
61 | 'indentation_type' => true,
62 | 'logical_operators' => true,
63 | 'native_constant_invocation' => [
64 | 'scope' => 'namespaced'
65 | ],
66 | 'native_function_invocation' => [
67 | 'scope' => 'namespaced',
68 | 'include' => ['@all'],
69 | ],
70 | 'new_with_braces' => [
71 | 'named_class' => true,
72 | 'anonymous_class' => false,
73 | ],
74 | 'no_closing_tag' => true,
75 | 'no_empty_phpdoc' => true,
76 | 'no_extra_blank_lines' => true,
77 | 'no_superfluous_phpdoc_tags' => [
78 | 'allow_mixed' => true,
79 | ],
80 | 'no_trailing_whitespace' => true,
81 | 'no_trailing_whitespace_in_comment' => true,
82 | 'no_whitespace_in_blank_line' => true,
83 | 'no_unused_imports' => true,
84 | 'ordered_imports' => [
85 | 'imports_order' => [
86 | 'class',
87 | 'function',
88 | 'const',
89 | ],
90 | 'sort_algorithm' => 'alpha'
91 | ],
92 | 'phpdoc_align' => [
93 | 'align' => 'vertical',
94 | 'tags' => [
95 | 'param',
96 | ]
97 | ],
98 | 'phpdoc_line_span' => [
99 | 'property' => 'single',
100 | 'method' => null,
101 | 'const' => null
102 | ],
103 | 'phpdoc_trim' => true,
104 | 'phpdoc_trim_consecutive_blank_line_separation' => true,
105 | 'return_type_declaration' => [
106 | 'space_before' => 'one'
107 | ],
108 | 'single_blank_line_at_eof' => true,
109 | 'single_import_per_statement' => true,
110 | 'strict_param' => true,
111 | 'unary_operator_spaces' => true,
112 | ])
113 | ->setFinder($finder)
114 | ->setIndent("\t")
115 | ->setLineEnding("\n");
116 |
--------------------------------------------------------------------------------
/.poggit.yml:
--------------------------------------------------------------------------------
1 | --- # Poggit-CI Manifest. Open the CI at https://poggit.pmmp.io/ci/IvanCraft623/NetherReactor
2 | build-by-default: true
3 | projects:
4 | NetherReactor:
5 | path: ""
6 | icon: "icon.png"
7 | excludeDirs:
8 | - .github
9 | excludeFiles:
10 | - .gitignore
11 | - .php-cs-fixer.php
12 | - phpstan.neon.dist
13 | libs:
14 | - src: LatamPMDevs/libCustomPack/libCustomPack
15 | version: ^1.0.1
16 | ...
17 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU LESSER GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 |
9 | This version of the GNU Lesser General Public License incorporates
10 | the terms and conditions of version 3 of the GNU General Public
11 | License, supplemented by the additional permissions listed below.
12 |
13 | 0. Additional Definitions.
14 |
15 | As used herein, "this License" refers to version 3 of the GNU Lesser
16 | General Public License, and the "GNU GPL" refers to version 3 of the GNU
17 | General Public License.
18 |
19 | "The Library" refers to a covered work governed by this License,
20 | other than an Application or a Combined Work as defined below.
21 |
22 | An "Application" is any work that makes use of an interface provided
23 | by the Library, but which is not otherwise based on the Library.
24 | Defining a subclass of a class defined by the Library is deemed a mode
25 | of using an interface provided by the Library.
26 |
27 | A "Combined Work" is a work produced by combining or linking an
28 | Application with the Library. The particular version of the Library
29 | with which the Combined Work was made is also called the "Linked
30 | Version".
31 |
32 | The "Minimal Corresponding Source" for a Combined Work means the
33 | Corresponding Source for the Combined Work, excluding any source code
34 | for portions of the Combined Work that, considered in isolation, are
35 | based on the Application, and not on the Linked Version.
36 |
37 | The "Corresponding Application Code" for a Combined Work means the
38 | object code and/or source code for the Application, including any data
39 | and utility programs needed for reproducing the Combined Work from the
40 | Application, but excluding the System Libraries of the Combined Work.
41 |
42 | 1. Exception to Section 3 of the GNU GPL.
43 |
44 | You may convey a covered work under sections 3 and 4 of this License
45 | without being bound by section 3 of the GNU GPL.
46 |
47 | 2. Conveying Modified Versions.
48 |
49 | If you modify a copy of the Library, and, in your modifications, a
50 | facility refers to a function or data to be supplied by an Application
51 | that uses the facility (other than as an argument passed when the
52 | facility is invoked), then you may convey a copy of the modified
53 | version:
54 |
55 | a) under this License, provided that you make a good faith effort to
56 | ensure that, in the event an Application does not supply the
57 | function or data, the facility still operates, and performs
58 | whatever part of its purpose remains meaningful, or
59 |
60 | b) under the GNU GPL, with none of the additional permissions of
61 | this License applicable to that copy.
62 |
63 | 3. Object Code Incorporating Material from Library Header Files.
64 |
65 | The object code form of an Application may incorporate material from
66 | a header file that is part of the Library. You may convey such object
67 | code under terms of your choice, provided that, if the incorporated
68 | material is not limited to numerical parameters, data structure
69 | layouts and accessors, or small macros, inline functions and templates
70 | (ten or fewer lines in length), you do both of the following:
71 |
72 | a) Give prominent notice with each copy of the object code that the
73 | Library is used in it and that the Library and its use are
74 | covered by this License.
75 |
76 | b) Accompany the object code with a copy of the GNU GPL and this license
77 | document.
78 |
79 | 4. Combined Works.
80 |
81 | You may convey a Combined Work under terms of your choice that,
82 | taken together, effectively do not restrict modification of the
83 | portions of the Library contained in the Combined Work and reverse
84 | engineering for debugging such modifications, if you also do each of
85 | the following:
86 |
87 | a) Give prominent notice with each copy of the Combined Work that
88 | the Library is used in it and that the Library and its use are
89 | covered by this License.
90 |
91 | b) Accompany the Combined Work with a copy of the GNU GPL and this license
92 | document.
93 |
94 | c) For a Combined Work that displays copyright notices during
95 | execution, include the copyright notice for the Library among
96 | these notices, as well as a reference directing the user to the
97 | copies of the GNU GPL and this license document.
98 |
99 | d) Do one of the following:
100 |
101 | 0) Convey the Minimal Corresponding Source under the terms of this
102 | License, and the Corresponding Application Code in a form
103 | suitable for, and under terms that permit, the user to
104 | recombine or relink the Application with a modified version of
105 | the Linked Version to produce a modified Combined Work, in the
106 | manner specified by section 6 of the GNU GPL for conveying
107 | Corresponding Source.
108 |
109 | 1) Use a suitable shared library mechanism for linking with the
110 | Library. A suitable mechanism is one that (a) uses at run time
111 | a copy of the Library already present on the user's computer
112 | system, and (b) will operate properly with a modified version
113 | of the Library that is interface-compatible with the Linked
114 | Version.
115 |
116 | e) Provide Installation Information, but only if you would otherwise
117 | be required to provide such information under section 6 of the
118 | GNU GPL, and only to the extent that such information is
119 | necessary to install and execute a modified version of the
120 | Combined Work produced by recombining or relinking the
121 | Application with a modified version of the Linked Version. (If
122 | you use option 4d0, the Installation Information must accompany
123 | the Minimal Corresponding Source and Corresponding Application
124 | Code. If you use option 4d1, you must provide the Installation
125 | Information in the manner specified by section 6 of the GNU GPL
126 | for conveying Corresponding Source.)
127 |
128 | 5. Combined Libraries.
129 |
130 | You may place library facilities that are a work based on the
131 | Library side by side in a single library together with other library
132 | facilities that are not Applications and are not covered by this
133 | License, and convey such a combined library under terms of your
134 | choice, if you do both of the following:
135 |
136 | a) Accompany the combined library with a copy of the same work based
137 | on the Library, uncombined with any other library facilities,
138 | conveyed under the terms of this License.
139 |
140 | b) Give prominent notice with the combined library that part of it
141 | is a work based on the Library, and explaining where to find the
142 | accompanying uncombined form of the same work.
143 |
144 | 6. Revised Versions of the GNU Lesser General Public License.
145 |
146 | The Free Software Foundation may publish revised and/or new versions
147 | of the GNU Lesser General Public License from time to time. Such new
148 | versions will be similar in spirit to the present version, but may
149 | differ in detail to address new problems or concerns.
150 |
151 | Each version is given a distinguishing version number. If the
152 | Library as you received it specifies that a certain numbered version
153 | of the GNU Lesser General Public License "or any later version"
154 | applies to it, you have the option of following the terms and
155 | conditions either of that published version or of any later version
156 | published by the Free Software Foundation. If the Library as you
157 | received it does not specify a version number of the GNU Lesser
158 | General Public License, you may choose any version of the GNU Lesser
159 | General Public License ever published by the Free Software Foundation.
160 |
161 | If the Library as you received it specifies that a proxy can decide
162 | whether future versions of the GNU Lesser General Public License shall
163 | apply, that proxy's public statement of acceptance of any version is
164 | permanent authorization for you to choose that version for the
165 | Library.
166 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
🔥 NetherReactor 🔮
3 |
Brings back the legacy nether reactor!
4 |
5 |
6 | ## 📃 Description
7 |
8 | Step back into a realm of cherished memories, crafting an ode to the legendary Nether Reactor. Rekindle the magic of that pulsating core, the anticipation as cobblestones and gold blocks took shape, and the rush as a miniature Nether dimension materialized before your very eyes.
9 |
10 |
11 |

12 |

13 |
14 |
15 | Transport yourself and your players to an era where activating the Nether Reactor wasn't just a game mechanic, it was an adventure woven with excitement, danger, and the promise of unparalleled rewards. Remember the thrill of facing fiery challenges, encountering unique mobs, and reaping precious resources within this pocket-sized Nether domain.
16 |
17 |
18 |

19 |
20 |
21 | This plugin isn't just about code; it's a vessel for nostalgia, a bridge connecting the present to the cherished moments of the past. Embrace the essence of Minecraft's history, allowing your server to echo with the echoes of those exhilarating Nether Reactor activations.
22 |
23 |
24 |

25 |

26 |
27 |
28 | Come, reignite the flames of nostalgia, and relive the enchantment of Minecraft's iconic past with our Nether Reactor plugin for PocketMine.
29 |
30 | # 🧩 Dependencies
31 | - Customies: Allows the creation of custom entities and blocks. Download ([Poggit](https://poggit.pmmp.io/p/Customies), [GitHub](https://github.com/CustomiesDevs/Customies))
32 | - MobPlugin: Used for entities and their AI. Download ([GitHub](https://github.com/IvanCraft623/MobPlugin))
33 |
34 | # 💡 Features
35 |
36 | - Enable the Nether Reactor functionality on your PocketMine server
37 | - Customize settings for pattern, rewards, and the nether reactor structure
38 | - Allows players to require permission to activate the reactor
39 | - Trigger a condensed version of the Nether within your world
40 | - Re-encounter the forgotten pigman
41 | - Create an immersive experience akin to the classic Nether but on a smaller scale
42 | - And more...!
43 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ivancraft623/netherreactor",
3 | "description": "Plugin for PocketMine-MP that implements the nether reactor",
4 | "type": "project",
5 | "license": "LGPL-3.0",
6 | "repositories": [
7 | {
8 | "type": "package",
9 | "package": {
10 | "name": "customiesdevs/customies",
11 | "version": "1.3.2",
12 | "source": {
13 | "url": "https://github.com/CustomiesDevs/Customies.git",
14 | "type": "git",
15 | "reference": "master"
16 | },
17 | "autoload": {
18 | "psr-4": {
19 | "customiesdevs\\customies\\": "src/"
20 | }
21 | }
22 | }
23 | },
24 | {
25 | "type": "vcs",
26 | "url": "https://github.com/IvanCraft623/MobPlugin.git"
27 | }
28 | ],
29 | "require-dev": {
30 | "php": "^8.0",
31 | "pocketmine/pocketmine-mp": "^5.0.0",
32 | "phpstan/phpstan": "1.10.21",
33 | "customiesdevs/customies": "*",
34 | "jasonw4331/libcustompack": "dev-master",
35 | "ivancraft623/mobplugin": "*"
36 | },
37 | "minimum-stability": "dev"
38 | }
39 |
--------------------------------------------------------------------------------
/composer.lock:
--------------------------------------------------------------------------------
1 | {
2 | "_readme": [
3 | "This file locks the dependencies of your project to a known state",
4 | "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5 | "This file is @generated automatically"
6 | ],
7 | "content-hash": "2429b32411cae5561d58c516e7f21755",
8 | "packages": [],
9 | "packages-dev": [
10 | {
11 | "name": "adhocore/json-comment",
12 | "version": "1.2.1",
13 | "source": {
14 | "type": "git",
15 | "url": "https://github.com/adhocore/php-json-comment.git",
16 | "reference": "651023f9fe52e9efa2198cbaf6e481d1968e2377"
17 | },
18 | "dist": {
19 | "type": "zip",
20 | "url": "https://api.github.com/repos/adhocore/php-json-comment/zipball/651023f9fe52e9efa2198cbaf6e481d1968e2377",
21 | "reference": "651023f9fe52e9efa2198cbaf6e481d1968e2377",
22 | "shasum": ""
23 | },
24 | "require": {
25 | "ext-ctype": "*",
26 | "php": ">=7.0"
27 | },
28 | "require-dev": {
29 | "phpunit/phpunit": "^6.5 || ^7.5 || ^8.5"
30 | },
31 | "type": "library",
32 | "autoload": {
33 | "psr-4": {
34 | "Ahc\\Json\\": "src/"
35 | }
36 | },
37 | "notification-url": "https://packagist.org/downloads/",
38 | "license": [
39 | "MIT"
40 | ],
41 | "authors": [
42 | {
43 | "name": "Jitendra Adhikari",
44 | "email": "jiten.adhikary@gmail.com"
45 | }
46 | ],
47 | "description": "Lightweight JSON comment stripper library for PHP",
48 | "keywords": [
49 | "comment",
50 | "json",
51 | "strip-comment"
52 | ],
53 | "support": {
54 | "issues": "https://github.com/adhocore/php-json-comment/issues",
55 | "source": "https://github.com/adhocore/php-json-comment/tree/1.2.1"
56 | },
57 | "funding": [
58 | {
59 | "url": "https://paypal.me/ji10",
60 | "type": "custom"
61 | },
62 | {
63 | "url": "https://github.com/adhocore",
64 | "type": "github"
65 | }
66 | ],
67 | "time": "2022-10-02T11:22:07+00:00"
68 | },
69 | {
70 | "name": "brick/math",
71 | "version": "0.11.0",
72 | "source": {
73 | "type": "git",
74 | "url": "https://github.com/brick/math.git",
75 | "reference": "0ad82ce168c82ba30d1c01ec86116ab52f589478"
76 | },
77 | "dist": {
78 | "type": "zip",
79 | "url": "https://api.github.com/repos/brick/math/zipball/0ad82ce168c82ba30d1c01ec86116ab52f589478",
80 | "reference": "0ad82ce168c82ba30d1c01ec86116ab52f589478",
81 | "shasum": ""
82 | },
83 | "require": {
84 | "php": "^8.0"
85 | },
86 | "require-dev": {
87 | "php-coveralls/php-coveralls": "^2.2",
88 | "phpunit/phpunit": "^9.0",
89 | "vimeo/psalm": "5.0.0"
90 | },
91 | "type": "library",
92 | "autoload": {
93 | "psr-4": {
94 | "Brick\\Math\\": "src/"
95 | }
96 | },
97 | "notification-url": "https://packagist.org/downloads/",
98 | "license": [
99 | "MIT"
100 | ],
101 | "description": "Arbitrary-precision arithmetic library",
102 | "keywords": [
103 | "Arbitrary-precision",
104 | "BigInteger",
105 | "BigRational",
106 | "arithmetic",
107 | "bigdecimal",
108 | "bignum",
109 | "brick",
110 | "math"
111 | ],
112 | "support": {
113 | "issues": "https://github.com/brick/math/issues",
114 | "source": "https://github.com/brick/math/tree/0.11.0"
115 | },
116 | "funding": [
117 | {
118 | "url": "https://github.com/BenMorel",
119 | "type": "github"
120 | }
121 | ],
122 | "time": "2023-01-15T23:15:59+00:00"
123 | },
124 | {
125 | "name": "customiesdevs/customies",
126 | "version": "1.3.2",
127 | "source": {
128 | "type": "git",
129 | "url": "https://github.com/CustomiesDevs/Customies.git",
130 | "reference": "master"
131 | },
132 | "type": "library",
133 | "autoload": {
134 | "psr-4": {
135 | "customiesdevs\\customies\\": "src/"
136 | }
137 | }
138 | },
139 | {
140 | "name": "ivancraft623/mobplugin",
141 | "version": "dev-main",
142 | "source": {
143 | "type": "git",
144 | "url": "https://github.com/IvanCraft623/MobPlugin.git",
145 | "reference": "181c4e9cafae0e7020a4385139907250e3c01381"
146 | },
147 | "dist": {
148 | "type": "zip",
149 | "url": "https://api.github.com/repos/IvanCraft623/MobPlugin/zipball/181c4e9cafae0e7020a4385139907250e3c01381",
150 | "reference": "181c4e9cafae0e7020a4385139907250e3c01381",
151 | "shasum": ""
152 | },
153 | "require-dev": {
154 | "php": "^8.0",
155 | "phpstan/phpstan": "1.10.21",
156 | "pocketmine/pocketmine-mp": "^5.0.0"
157 | },
158 | "default-branch": true,
159 | "type": "project",
160 | "autoload": {
161 | "psr-0": {
162 | "IvanCraft623\\MobPlugin\\": "src"
163 | }
164 | },
165 | "license": [
166 | "Apache-2.0"
167 | ],
168 | "description": "Plugin for PocketMine-MP that implements mobs AI.",
169 | "support": {
170 | "source": "https://github.com/IvanCraft623/MobPlugin/tree/main",
171 | "issues": "https://github.com/IvanCraft623/MobPlugin/issues"
172 | },
173 | "time": "2023-12-29T18:48:54+00:00"
174 | },
175 | {
176 | "name": "jasonw4331/libcustompack",
177 | "version": "dev-master",
178 | "source": {
179 | "type": "git",
180 | "url": "https://github.com/jasonw4331/libCustomPack.git",
181 | "reference": "d939a1c79bd4e50a862f04298c75a1f2f92c35d7"
182 | },
183 | "dist": {
184 | "type": "zip",
185 | "url": "https://api.github.com/repos/jasonw4331/libCustomPack/zipball/d939a1c79bd4e50a862f04298c75a1f2f92c35d7",
186 | "reference": "d939a1c79bd4e50a862f04298c75a1f2f92c35d7",
187 | "shasum": ""
188 | },
189 | "require": {
190 | "php": "^8.0"
191 | },
192 | "require-dev": {
193 | "friendsofphp/php-cs-fixer": "^3.11",
194 | "phpstan/extension-installer": "^1.0",
195 | "phpstan/phpstan": "^1.4.6",
196 | "phpstan/phpstan-strict-rules": "^1.0",
197 | "pocketmine/pocketmine-mp": "^4.12.3|^5.0.0",
198 | "symfony/filesystem": "^5.4"
199 | },
200 | "default-branch": true,
201 | "type": "library",
202 | "extra": {
203 | "virion": {
204 | "spec": "3.0",
205 | "namespace-root": "libCustomPack"
206 | }
207 | },
208 | "autoload": {
209 | "classmap": [
210 | "src"
211 | ]
212 | },
213 | "notification-url": "https://packagist.org/downloads/",
214 | "license": [
215 | "lgpl-3.0-or-later"
216 | ],
217 | "authors": [
218 | {
219 | "name": "jasonw4331",
220 | "email": "jasonwynn10@gmail.com"
221 | }
222 | ],
223 | "description": "A library for compiling and registering resource packs with PocketMine",
224 | "support": {
225 | "issues": "https://github.com/jasonw4331/libCustomPack/issues",
226 | "source": "https://github.com/jasonw4331/libCustomPack/tree/master"
227 | },
228 | "funding": [
229 | {
230 | "url": "https://www.buymeacoffee.com/jasonwynn10",
231 | "type": "custom"
232 | },
233 | {
234 | "url": "https://github.com/[user1",
235 | "type": "github"
236 | },
237 | {
238 | "url": "https://github.com/jasonw4331 ] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g.",
239 | "type": "github"
240 | },
241 | {
242 | "url": "https://github.com/user2",
243 | "type": "github"
244 | },
245 | {
246 | "url": "https://www.patreon.com/jasonwynn10",
247 | "type": "patreon"
248 | }
249 | ],
250 | "time": "2023-09-09T05:17:29+00:00"
251 | },
252 | {
253 | "name": "phpstan/phpstan",
254 | "version": "1.10.21",
255 | "source": {
256 | "type": "git",
257 | "url": "https://github.com/phpstan/phpstan.git",
258 | "reference": "b2a30186be2e4d97dce754ae4e65eb0ec2f04eb5"
259 | },
260 | "dist": {
261 | "type": "zip",
262 | "url": "https://api.github.com/repos/phpstan/phpstan/zipball/b2a30186be2e4d97dce754ae4e65eb0ec2f04eb5",
263 | "reference": "b2a30186be2e4d97dce754ae4e65eb0ec2f04eb5",
264 | "shasum": ""
265 | },
266 | "require": {
267 | "php": "^7.2|^8.0"
268 | },
269 | "conflict": {
270 | "phpstan/phpstan-shim": "*"
271 | },
272 | "bin": [
273 | "phpstan",
274 | "phpstan.phar"
275 | ],
276 | "type": "library",
277 | "autoload": {
278 | "files": [
279 | "bootstrap.php"
280 | ]
281 | },
282 | "notification-url": "https://packagist.org/downloads/",
283 | "license": [
284 | "MIT"
285 | ],
286 | "description": "PHPStan - PHP Static Analysis Tool",
287 | "keywords": [
288 | "dev",
289 | "static analysis"
290 | ],
291 | "support": {
292 | "docs": "https://phpstan.org/user-guide/getting-started",
293 | "forum": "https://github.com/phpstan/phpstan/discussions",
294 | "issues": "https://github.com/phpstan/phpstan/issues",
295 | "security": "https://github.com/phpstan/phpstan/security/policy",
296 | "source": "https://github.com/phpstan/phpstan-src"
297 | },
298 | "funding": [
299 | {
300 | "url": "https://github.com/ondrejmirtes",
301 | "type": "github"
302 | },
303 | {
304 | "url": "https://github.com/phpstan",
305 | "type": "github"
306 | },
307 | {
308 | "url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan",
309 | "type": "tidelift"
310 | }
311 | ],
312 | "time": "2023-06-21T20:07:58+00:00"
313 | },
314 | {
315 | "name": "pocketmine/bedrock-block-upgrade-schema",
316 | "version": "3.4.0",
317 | "source": {
318 | "type": "git",
319 | "url": "https://github.com/pmmp/BedrockBlockUpgradeSchema.git",
320 | "reference": "9872eb37f15080b19c2b7861085e549c48dda92d"
321 | },
322 | "dist": {
323 | "type": "zip",
324 | "url": "https://api.github.com/repos/pmmp/BedrockBlockUpgradeSchema/zipball/9872eb37f15080b19c2b7861085e549c48dda92d",
325 | "reference": "9872eb37f15080b19c2b7861085e549c48dda92d",
326 | "shasum": ""
327 | },
328 | "type": "library",
329 | "notification-url": "https://packagist.org/downloads/",
330 | "license": [
331 | "CC0-1.0"
332 | ],
333 | "description": "Schemas describing how to upgrade saved block data in older Minecraft: Bedrock Edition world saves",
334 | "support": {
335 | "issues": "https://github.com/pmmp/BedrockBlockUpgradeSchema/issues",
336 | "source": "https://github.com/pmmp/BedrockBlockUpgradeSchema/tree/3.4.0"
337 | },
338 | "time": "2023-11-08T15:22:06+00:00"
339 | },
340 | {
341 | "name": "pocketmine/bedrock-data",
342 | "version": "2.7.0+bedrock-1.20.50",
343 | "source": {
344 | "type": "git",
345 | "url": "https://github.com/pmmp/BedrockData.git",
346 | "reference": "36f975dfca7520b7d36b0b39429f274464c9bc13"
347 | },
348 | "dist": {
349 | "type": "zip",
350 | "url": "https://api.github.com/repos/pmmp/BedrockData/zipball/36f975dfca7520b7d36b0b39429f274464c9bc13",
351 | "reference": "36f975dfca7520b7d36b0b39429f274464c9bc13",
352 | "shasum": ""
353 | },
354 | "type": "library",
355 | "notification-url": "https://packagist.org/downloads/",
356 | "license": [
357 | "CC0-1.0"
358 | ],
359 | "description": "Blobs of data generated from Minecraft: Bedrock Edition, used by PocketMine-MP",
360 | "support": {
361 | "issues": "https://github.com/pmmp/BedrockData/issues",
362 | "source": "https://github.com/pmmp/BedrockData/tree/bedrock-1.20.50"
363 | },
364 | "time": "2023-12-06T13:59:08+00:00"
365 | },
366 | {
367 | "name": "pocketmine/bedrock-item-upgrade-schema",
368 | "version": "1.6.0",
369 | "source": {
370 | "type": "git",
371 | "url": "https://github.com/pmmp/BedrockItemUpgradeSchema.git",
372 | "reference": "d374e5fd8302977675dcd2a42733abd3ee476ca1"
373 | },
374 | "dist": {
375 | "type": "zip",
376 | "url": "https://api.github.com/repos/pmmp/BedrockItemUpgradeSchema/zipball/d374e5fd8302977675dcd2a42733abd3ee476ca1",
377 | "reference": "d374e5fd8302977675dcd2a42733abd3ee476ca1",
378 | "shasum": ""
379 | },
380 | "type": "library",
381 | "notification-url": "https://packagist.org/downloads/",
382 | "license": [
383 | "CC0-1.0"
384 | ],
385 | "description": "JSON schemas for upgrading items found in older Minecraft: Bedrock world saves",
386 | "support": {
387 | "issues": "https://github.com/pmmp/BedrockItemUpgradeSchema/issues",
388 | "source": "https://github.com/pmmp/BedrockItemUpgradeSchema/tree/1.6.0"
389 | },
390 | "time": "2023-11-08T18:12:14+00:00"
391 | },
392 | {
393 | "name": "pocketmine/bedrock-protocol",
394 | "version": "26.0.0+bedrock-1.20.50",
395 | "source": {
396 | "type": "git",
397 | "url": "https://github.com/pmmp/BedrockProtocol.git",
398 | "reference": "f278a0b6d4fa1e2e0408a125f323a3118b1968df"
399 | },
400 | "dist": {
401 | "type": "zip",
402 | "url": "https://api.github.com/repos/pmmp/BedrockProtocol/zipball/f278a0b6d4fa1e2e0408a125f323a3118b1968df",
403 | "reference": "f278a0b6d4fa1e2e0408a125f323a3118b1968df",
404 | "shasum": ""
405 | },
406 | "require": {
407 | "ext-json": "*",
408 | "netresearch/jsonmapper": "^4.0",
409 | "php": "^8.1",
410 | "pocketmine/binaryutils": "^0.2.0",
411 | "pocketmine/color": "^0.2.0 || ^0.3.0",
412 | "pocketmine/math": "^0.3.0 || ^0.4.0 || ^1.0.0",
413 | "pocketmine/nbt": "^1.0.0",
414 | "ramsey/uuid": "^4.1"
415 | },
416 | "require-dev": {
417 | "phpstan/phpstan": "1.10.39",
418 | "phpstan/phpstan-phpunit": "^1.0.0",
419 | "phpstan/phpstan-strict-rules": "^1.0.0",
420 | "phpunit/phpunit": "^9.5 || ^10.0"
421 | },
422 | "type": "library",
423 | "autoload": {
424 | "psr-4": {
425 | "pocketmine\\network\\mcpe\\protocol\\": "src/"
426 | }
427 | },
428 | "notification-url": "https://packagist.org/downloads/",
429 | "license": [
430 | "LGPL-3.0"
431 | ],
432 | "description": "An implementation of the Minecraft: Bedrock Edition protocol in PHP",
433 | "support": {
434 | "issues": "https://github.com/pmmp/BedrockProtocol/issues",
435 | "source": "https://github.com/pmmp/BedrockProtocol/tree/26.0.0+bedrock-1.20.50"
436 | },
437 | "time": "2023-12-06T14:08:37+00:00"
438 | },
439 | {
440 | "name": "pocketmine/binaryutils",
441 | "version": "0.2.4",
442 | "source": {
443 | "type": "git",
444 | "url": "https://github.com/pmmp/BinaryUtils.git",
445 | "reference": "5ac7eea91afbad8dc498f5ce34ce6297d5e6ea9a"
446 | },
447 | "dist": {
448 | "type": "zip",
449 | "url": "https://api.github.com/repos/pmmp/BinaryUtils/zipball/5ac7eea91afbad8dc498f5ce34ce6297d5e6ea9a",
450 | "reference": "5ac7eea91afbad8dc498f5ce34ce6297d5e6ea9a",
451 | "shasum": ""
452 | },
453 | "require": {
454 | "php": "^7.4 || ^8.0",
455 | "php-64bit": "*"
456 | },
457 | "require-dev": {
458 | "phpstan/extension-installer": "^1.0",
459 | "phpstan/phpstan": "1.3.0",
460 | "phpstan/phpstan-phpunit": "^1.0",
461 | "phpstan/phpstan-strict-rules": "^1.0.0",
462 | "phpunit/phpunit": "^9.5"
463 | },
464 | "type": "library",
465 | "autoload": {
466 | "psr-4": {
467 | "pocketmine\\utils\\": "src/"
468 | }
469 | },
470 | "notification-url": "https://packagist.org/downloads/",
471 | "license": [
472 | "LGPL-3.0"
473 | ],
474 | "description": "Classes and methods for conveniently handling binary data",
475 | "support": {
476 | "issues": "https://github.com/pmmp/BinaryUtils/issues",
477 | "source": "https://github.com/pmmp/BinaryUtils/tree/0.2.4"
478 | },
479 | "time": "2022-01-12T18:06:33+00:00"
480 | },
481 | {
482 | "name": "pocketmine/callback-validator",
483 | "version": "1.0.3",
484 | "source": {
485 | "type": "git",
486 | "url": "https://github.com/pmmp/CallbackValidator.git",
487 | "reference": "64787469766bcaa7e5885242e85c23c25e8c55a2"
488 | },
489 | "dist": {
490 | "type": "zip",
491 | "url": "https://api.github.com/repos/pmmp/CallbackValidator/zipball/64787469766bcaa7e5885242e85c23c25e8c55a2",
492 | "reference": "64787469766bcaa7e5885242e85c23c25e8c55a2",
493 | "shasum": ""
494 | },
495 | "require": {
496 | "ext-reflection": "*",
497 | "php": "^7.1 || ^8.0"
498 | },
499 | "replace": {
500 | "daverandom/callback-validator": "*"
501 | },
502 | "require-dev": {
503 | "phpstan/extension-installer": "^1.0",
504 | "phpstan/phpstan": "0.12.59",
505 | "phpstan/phpstan-strict-rules": "^0.12.4",
506 | "phpunit/phpunit": "^7.5 || ^8.5 || ^9.0"
507 | },
508 | "type": "library",
509 | "autoload": {
510 | "psr-4": {
511 | "DaveRandom\\CallbackValidator\\": "src/"
512 | }
513 | },
514 | "notification-url": "https://packagist.org/downloads/",
515 | "license": [
516 | "MIT"
517 | ],
518 | "authors": [
519 | {
520 | "name": "Chris Wright",
521 | "email": "cw@daverandom.com"
522 | }
523 | ],
524 | "description": "Fork of daverandom/callback-validator - Tools for validating callback signatures",
525 | "support": {
526 | "issues": "https://github.com/pmmp/CallbackValidator/issues",
527 | "source": "https://github.com/pmmp/CallbackValidator/tree/1.0.3"
528 | },
529 | "time": "2020-12-11T01:45:37+00:00"
530 | },
531 | {
532 | "name": "pocketmine/color",
533 | "version": "0.3.1",
534 | "source": {
535 | "type": "git",
536 | "url": "https://github.com/pmmp/Color.git",
537 | "reference": "a0421f1e9e0b0c619300fb92d593283378f6a5e1"
538 | },
539 | "dist": {
540 | "type": "zip",
541 | "url": "https://api.github.com/repos/pmmp/Color/zipball/a0421f1e9e0b0c619300fb92d593283378f6a5e1",
542 | "reference": "a0421f1e9e0b0c619300fb92d593283378f6a5e1",
543 | "shasum": ""
544 | },
545 | "require": {
546 | "php": "^8.0"
547 | },
548 | "require-dev": {
549 | "phpstan/phpstan": "1.10.3",
550 | "phpstan/phpstan-strict-rules": "^1.2.0"
551 | },
552 | "type": "library",
553 | "autoload": {
554 | "psr-4": {
555 | "pocketmine\\color\\": "src/"
556 | }
557 | },
558 | "notification-url": "https://packagist.org/downloads/",
559 | "license": [
560 | "LGPL-3.0"
561 | ],
562 | "description": "Color handling library used by PocketMine-MP and related projects",
563 | "support": {
564 | "issues": "https://github.com/pmmp/Color/issues",
565 | "source": "https://github.com/pmmp/Color/tree/0.3.1"
566 | },
567 | "time": "2023-04-10T11:38:05+00:00"
568 | },
569 | {
570 | "name": "pocketmine/errorhandler",
571 | "version": "0.6.0",
572 | "source": {
573 | "type": "git",
574 | "url": "https://github.com/pmmp/ErrorHandler.git",
575 | "reference": "dae214a04348b911e8219ebf125ff1c5589cc878"
576 | },
577 | "dist": {
578 | "type": "zip",
579 | "url": "https://api.github.com/repos/pmmp/ErrorHandler/zipball/dae214a04348b911e8219ebf125ff1c5589cc878",
580 | "reference": "dae214a04348b911e8219ebf125ff1c5589cc878",
581 | "shasum": ""
582 | },
583 | "require": {
584 | "php": "^8.0"
585 | },
586 | "require-dev": {
587 | "phpstan/phpstan": "0.12.99",
588 | "phpstan/phpstan-strict-rules": "^0.12.2",
589 | "phpunit/phpunit": "^9.5"
590 | },
591 | "type": "library",
592 | "autoload": {
593 | "psr-4": {
594 | "pocketmine\\errorhandler\\": "src/"
595 | }
596 | },
597 | "notification-url": "https://packagist.org/downloads/",
598 | "license": [
599 | "LGPL-3.0"
600 | ],
601 | "description": "Utilities to handle nasty PHP E_* errors in a usable way",
602 | "support": {
603 | "issues": "https://github.com/pmmp/ErrorHandler/issues",
604 | "source": "https://github.com/pmmp/ErrorHandler/tree/0.6.0"
605 | },
606 | "time": "2022-01-08T21:05:46+00:00"
607 | },
608 | {
609 | "name": "pocketmine/locale-data",
610 | "version": "2.19.6",
611 | "source": {
612 | "type": "git",
613 | "url": "https://github.com/pmmp/Language.git",
614 | "reference": "93e473e20e7f4515ecf45c5ef0f9155b9247a86e"
615 | },
616 | "dist": {
617 | "type": "zip",
618 | "url": "https://api.github.com/repos/pmmp/Language/zipball/93e473e20e7f4515ecf45c5ef0f9155b9247a86e",
619 | "reference": "93e473e20e7f4515ecf45c5ef0f9155b9247a86e",
620 | "shasum": ""
621 | },
622 | "type": "library",
623 | "notification-url": "https://packagist.org/downloads/",
624 | "description": "Language resources used by PocketMine-MP",
625 | "support": {
626 | "issues": "https://github.com/pmmp/Language/issues",
627 | "source": "https://github.com/pmmp/Language/tree/2.19.6"
628 | },
629 | "time": "2023-08-08T16:53:23+00:00"
630 | },
631 | {
632 | "name": "pocketmine/log",
633 | "version": "0.4.0",
634 | "source": {
635 | "type": "git",
636 | "url": "https://github.com/pmmp/Log.git",
637 | "reference": "e6c912c0f9055c81d23108ec2d179b96f404c043"
638 | },
639 | "dist": {
640 | "type": "zip",
641 | "url": "https://api.github.com/repos/pmmp/Log/zipball/e6c912c0f9055c81d23108ec2d179b96f404c043",
642 | "reference": "e6c912c0f9055c81d23108ec2d179b96f404c043",
643 | "shasum": ""
644 | },
645 | "require": {
646 | "php": "^7.4 || ^8.0"
647 | },
648 | "conflict": {
649 | "pocketmine/spl": "<0.4"
650 | },
651 | "require-dev": {
652 | "phpstan/phpstan": "0.12.88",
653 | "phpstan/phpstan-strict-rules": "^0.12.2"
654 | },
655 | "type": "library",
656 | "autoload": {
657 | "classmap": [
658 | "./src"
659 | ]
660 | },
661 | "notification-url": "https://packagist.org/downloads/",
662 | "license": [
663 | "LGPL-3.0"
664 | ],
665 | "description": "Logging components used by PocketMine-MP and related projects",
666 | "support": {
667 | "issues": "https://github.com/pmmp/Log/issues",
668 | "source": "https://github.com/pmmp/Log/tree/0.4.0"
669 | },
670 | "time": "2021-06-18T19:08:09+00:00"
671 | },
672 | {
673 | "name": "pocketmine/math",
674 | "version": "1.0.0",
675 | "source": {
676 | "type": "git",
677 | "url": "https://github.com/pmmp/Math.git",
678 | "reference": "dc132d93595b32e9f210d78b3c8d43c662a5edbf"
679 | },
680 | "dist": {
681 | "type": "zip",
682 | "url": "https://api.github.com/repos/pmmp/Math/zipball/dc132d93595b32e9f210d78b3c8d43c662a5edbf",
683 | "reference": "dc132d93595b32e9f210d78b3c8d43c662a5edbf",
684 | "shasum": ""
685 | },
686 | "require": {
687 | "php": "^8.0",
688 | "php-64bit": "*"
689 | },
690 | "require-dev": {
691 | "phpstan/extension-installer": "^1.0",
692 | "phpstan/phpstan": "~1.10.3",
693 | "phpstan/phpstan-strict-rules": "^1.0",
694 | "phpunit/phpunit": "^8.5 || ^9.5"
695 | },
696 | "type": "library",
697 | "autoload": {
698 | "psr-4": {
699 | "pocketmine\\math\\": "src/"
700 | }
701 | },
702 | "notification-url": "https://packagist.org/downloads/",
703 | "license": [
704 | "LGPL-3.0"
705 | ],
706 | "description": "PHP library containing math related code used in PocketMine-MP",
707 | "support": {
708 | "issues": "https://github.com/pmmp/Math/issues",
709 | "source": "https://github.com/pmmp/Math/tree/1.0.0"
710 | },
711 | "time": "2023-08-03T12:56:33+00:00"
712 | },
713 | {
714 | "name": "pocketmine/nbt",
715 | "version": "1.0.0",
716 | "source": {
717 | "type": "git",
718 | "url": "https://github.com/pmmp/NBT.git",
719 | "reference": "20540271cb59e04672cb163dca73366f207974f1"
720 | },
721 | "dist": {
722 | "type": "zip",
723 | "url": "https://api.github.com/repos/pmmp/NBT/zipball/20540271cb59e04672cb163dca73366f207974f1",
724 | "reference": "20540271cb59e04672cb163dca73366f207974f1",
725 | "shasum": ""
726 | },
727 | "require": {
728 | "php": "^7.4 || ^8.0",
729 | "php-64bit": "*",
730 | "pocketmine/binaryutils": "^0.2.0"
731 | },
732 | "require-dev": {
733 | "phpstan/extension-installer": "^1.0",
734 | "phpstan/phpstan": "1.10.25",
735 | "phpstan/phpstan-strict-rules": "^1.0",
736 | "phpunit/phpunit": "^9.5"
737 | },
738 | "type": "library",
739 | "autoload": {
740 | "psr-4": {
741 | "pocketmine\\nbt\\": "src/"
742 | }
743 | },
744 | "notification-url": "https://packagist.org/downloads/",
745 | "license": [
746 | "LGPL-3.0"
747 | ],
748 | "description": "PHP library for working with Named Binary Tags",
749 | "support": {
750 | "issues": "https://github.com/pmmp/NBT/issues",
751 | "source": "https://github.com/pmmp/NBT/tree/1.0.0"
752 | },
753 | "time": "2023-07-14T13:01:49+00:00"
754 | },
755 | {
756 | "name": "pocketmine/netresearch-jsonmapper",
757 | "version": "v4.2.1000",
758 | "source": {
759 | "type": "git",
760 | "url": "https://github.com/pmmp/netresearch-jsonmapper.git",
761 | "reference": "078764e869e9b732f97206ec9363480a77c35532"
762 | },
763 | "dist": {
764 | "type": "zip",
765 | "url": "https://api.github.com/repos/pmmp/netresearch-jsonmapper/zipball/078764e869e9b732f97206ec9363480a77c35532",
766 | "reference": "078764e869e9b732f97206ec9363480a77c35532",
767 | "shasum": ""
768 | },
769 | "require": {
770 | "ext-json": "*",
771 | "ext-pcre": "*",
772 | "ext-reflection": "*",
773 | "ext-spl": "*",
774 | "php": ">=7.1"
775 | },
776 | "replace": {
777 | "netresearch/jsonmapper": "~4.2.0"
778 | },
779 | "require-dev": {
780 | "phpunit/phpunit": "~7.5 || ~8.0 || ~9.0",
781 | "squizlabs/php_codesniffer": "~3.5"
782 | },
783 | "type": "library",
784 | "autoload": {
785 | "psr-0": {
786 | "JsonMapper": "src/"
787 | }
788 | },
789 | "notification-url": "https://packagist.org/downloads/",
790 | "license": [
791 | "OSL-3.0"
792 | ],
793 | "authors": [
794 | {
795 | "name": "Christian Weiske",
796 | "email": "cweiske@cweiske.de",
797 | "homepage": "http://github.com/cweiske/jsonmapper/",
798 | "role": "Developer"
799 | }
800 | ],
801 | "description": "Fork of netresearch/jsonmapper with security fixes needed by pocketmine/pocketmine-mp",
802 | "support": {
803 | "email": "cweiske@cweiske.de",
804 | "issues": "https://github.com/cweiske/jsonmapper/issues",
805 | "source": "https://github.com/pmmp/netresearch-jsonmapper/tree/v4.2.1000"
806 | },
807 | "time": "2023-07-14T10:44:14+00:00"
808 | },
809 | {
810 | "name": "pocketmine/pocketmine-mp",
811 | "version": "5.10.0",
812 | "source": {
813 | "type": "git",
814 | "url": "https://github.com/pmmp/PocketMine-MP.git",
815 | "reference": "daeba95101e6278d1f2552397043d29d29d272f8"
816 | },
817 | "dist": {
818 | "type": "zip",
819 | "url": "https://api.github.com/repos/pmmp/PocketMine-MP/zipball/daeba95101e6278d1f2552397043d29d29d272f8",
820 | "reference": "daeba95101e6278d1f2552397043d29d29d272f8",
821 | "shasum": ""
822 | },
823 | "require": {
824 | "adhocore/json-comment": "~1.2.0",
825 | "composer-runtime-api": "^2.0",
826 | "ext-chunkutils2": "^0.3.1",
827 | "ext-crypto": "^0.3.1",
828 | "ext-ctype": "*",
829 | "ext-curl": "*",
830 | "ext-date": "*",
831 | "ext-gmp": "*",
832 | "ext-hash": "*",
833 | "ext-igbinary": "^3.0.1",
834 | "ext-json": "*",
835 | "ext-leveldb": "^0.2.1 || ^0.3.0",
836 | "ext-mbstring": "*",
837 | "ext-morton": "^0.1.0",
838 | "ext-openssl": "*",
839 | "ext-pcre": "*",
840 | "ext-phar": "*",
841 | "ext-pmmpthread": "^6.0.7",
842 | "ext-reflection": "*",
843 | "ext-simplexml": "*",
844 | "ext-sockets": "*",
845 | "ext-spl": "*",
846 | "ext-yaml": ">=2.0.0",
847 | "ext-zip": "*",
848 | "ext-zlib": ">=1.2.11",
849 | "php": "^8.1",
850 | "php-64bit": "*",
851 | "pocketmine/bedrock-block-upgrade-schema": "~3.4.0+bedrock-1.20.50",
852 | "pocketmine/bedrock-data": "~2.7.0+bedrock-1.20.50",
853 | "pocketmine/bedrock-item-upgrade-schema": "~1.6.0+bedrock-1.20.50",
854 | "pocketmine/bedrock-protocol": "~26.0.0+bedrock-1.20.50",
855 | "pocketmine/binaryutils": "^0.2.1",
856 | "pocketmine/callback-validator": "^1.0.2",
857 | "pocketmine/color": "^0.3.0",
858 | "pocketmine/errorhandler": "^0.6.0",
859 | "pocketmine/locale-data": "~2.19.0",
860 | "pocketmine/log": "^0.4.0",
861 | "pocketmine/math": "~1.0.0",
862 | "pocketmine/nbt": "~1.0.0",
863 | "pocketmine/netresearch-jsonmapper": "~v4.2.1000",
864 | "pocketmine/raklib": "^0.15.0",
865 | "pocketmine/raklib-ipc": "^0.2.0",
866 | "pocketmine/snooze": "^0.5.0",
867 | "ramsey/uuid": "~4.7.0",
868 | "symfony/filesystem": "~6.3.0"
869 | },
870 | "require-dev": {
871 | "phpstan/phpstan": "1.10.47",
872 | "phpstan/phpstan-phpunit": "^1.1.0",
873 | "phpstan/phpstan-strict-rules": "^1.2.0",
874 | "phpunit/phpunit": "~10.3.0 || ~10.2.0 || ~10.1.0"
875 | },
876 | "type": "project",
877 | "autoload": {
878 | "files": [
879 | "src/CoreConstants.php"
880 | ],
881 | "psr-4": {
882 | "pocketmine\\": "src/"
883 | }
884 | },
885 | "notification-url": "https://packagist.org/downloads/",
886 | "license": [
887 | "LGPL-3.0"
888 | ],
889 | "description": "A server software for Minecraft: Bedrock Edition written in PHP",
890 | "homepage": "https://pmmp.io",
891 | "support": {
892 | "issues": "https://github.com/pmmp/PocketMine-MP/issues",
893 | "source": "https://github.com/pmmp/PocketMine-MP/tree/5.10.0"
894 | },
895 | "funding": [
896 | {
897 | "url": "https://github.com/pmmp/PocketMine-MP#donate",
898 | "type": "custom"
899 | },
900 | {
901 | "url": "https://www.patreon.com/pocketminemp",
902 | "type": "patreon"
903 | }
904 | ],
905 | "time": "2023-12-14T16:54:38+00:00"
906 | },
907 | {
908 | "name": "pocketmine/raklib",
909 | "version": "0.15.1",
910 | "source": {
911 | "type": "git",
912 | "url": "https://github.com/pmmp/RakLib.git",
913 | "reference": "79b7b4d1d7516dc6e322514453645ad9452b20ca"
914 | },
915 | "dist": {
916 | "type": "zip",
917 | "url": "https://api.github.com/repos/pmmp/RakLib/zipball/79b7b4d1d7516dc6e322514453645ad9452b20ca",
918 | "reference": "79b7b4d1d7516dc6e322514453645ad9452b20ca",
919 | "shasum": ""
920 | },
921 | "require": {
922 | "ext-sockets": "*",
923 | "php": "^8.0",
924 | "php-64bit": "*",
925 | "php-ipv6": "*",
926 | "pocketmine/binaryutils": "^0.2.0",
927 | "pocketmine/log": "^0.3.0 || ^0.4.0"
928 | },
929 | "require-dev": {
930 | "phpstan/phpstan": "1.9.17",
931 | "phpstan/phpstan-strict-rules": "^1.0"
932 | },
933 | "type": "library",
934 | "autoload": {
935 | "psr-4": {
936 | "raklib\\": "src/"
937 | }
938 | },
939 | "notification-url": "https://packagist.org/downloads/",
940 | "license": [
941 | "GPL-3.0"
942 | ],
943 | "description": "A RakNet server implementation written in PHP",
944 | "support": {
945 | "issues": "https://github.com/pmmp/RakLib/issues",
946 | "source": "https://github.com/pmmp/RakLib/tree/0.15.1"
947 | },
948 | "time": "2023-03-07T15:10:34+00:00"
949 | },
950 | {
951 | "name": "pocketmine/raklib-ipc",
952 | "version": "0.2.0",
953 | "source": {
954 | "type": "git",
955 | "url": "https://github.com/pmmp/RakLibIpc.git",
956 | "reference": "26ed56fa9db06e4ca6e8920c0ede2e01e219bb9c"
957 | },
958 | "dist": {
959 | "type": "zip",
960 | "url": "https://api.github.com/repos/pmmp/RakLibIpc/zipball/26ed56fa9db06e4ca6e8920c0ede2e01e219bb9c",
961 | "reference": "26ed56fa9db06e4ca6e8920c0ede2e01e219bb9c",
962 | "shasum": ""
963 | },
964 | "require": {
965 | "php": "^8.0",
966 | "php-64bit": "*",
967 | "pocketmine/binaryutils": "^0.2.0",
968 | "pocketmine/raklib": "^0.15.0"
969 | },
970 | "require-dev": {
971 | "phpstan/phpstan": "1.9.17",
972 | "phpstan/phpstan-strict-rules": "^1.0.0"
973 | },
974 | "type": "library",
975 | "autoload": {
976 | "psr-4": {
977 | "raklib\\server\\ipc\\": "src/"
978 | }
979 | },
980 | "notification-url": "https://packagist.org/downloads/",
981 | "license": [
982 | "GPL-3.0"
983 | ],
984 | "description": "Channel-based protocols for inter-thread/inter-process communication with RakLib",
985 | "support": {
986 | "issues": "https://github.com/pmmp/RakLibIpc/issues",
987 | "source": "https://github.com/pmmp/RakLibIpc/tree/0.2.0"
988 | },
989 | "time": "2023-02-13T13:40:40+00:00"
990 | },
991 | {
992 | "name": "pocketmine/snooze",
993 | "version": "0.5.0",
994 | "source": {
995 | "type": "git",
996 | "url": "https://github.com/pmmp/Snooze.git",
997 | "reference": "a86d9ee60ce44755d166d3c7ba4b8b8be8360915"
998 | },
999 | "dist": {
1000 | "type": "zip",
1001 | "url": "https://api.github.com/repos/pmmp/Snooze/zipball/a86d9ee60ce44755d166d3c7ba4b8b8be8360915",
1002 | "reference": "a86d9ee60ce44755d166d3c7ba4b8b8be8360915",
1003 | "shasum": ""
1004 | },
1005 | "require": {
1006 | "ext-pmmpthread": "^6.0",
1007 | "php-64bit": "^8.1"
1008 | },
1009 | "require-dev": {
1010 | "phpstan/extension-installer": "^1.0",
1011 | "phpstan/phpstan": "1.10.3",
1012 | "phpstan/phpstan-strict-rules": "^1.0"
1013 | },
1014 | "type": "library",
1015 | "autoload": {
1016 | "psr-4": {
1017 | "pocketmine\\snooze\\": "src/"
1018 | }
1019 | },
1020 | "notification-url": "https://packagist.org/downloads/",
1021 | "license": [
1022 | "LGPL-3.0"
1023 | ],
1024 | "description": "Thread notification management library for code using the pthreads extension",
1025 | "support": {
1026 | "issues": "https://github.com/pmmp/Snooze/issues",
1027 | "source": "https://github.com/pmmp/Snooze/tree/0.5.0"
1028 | },
1029 | "time": "2023-05-22T23:43:01+00:00"
1030 | },
1031 | {
1032 | "name": "ramsey/collection",
1033 | "version": "2.0.0",
1034 | "source": {
1035 | "type": "git",
1036 | "url": "https://github.com/ramsey/collection.git",
1037 | "reference": "a4b48764bfbb8f3a6a4d1aeb1a35bb5e9ecac4a5"
1038 | },
1039 | "dist": {
1040 | "type": "zip",
1041 | "url": "https://api.github.com/repos/ramsey/collection/zipball/a4b48764bfbb8f3a6a4d1aeb1a35bb5e9ecac4a5",
1042 | "reference": "a4b48764bfbb8f3a6a4d1aeb1a35bb5e9ecac4a5",
1043 | "shasum": ""
1044 | },
1045 | "require": {
1046 | "php": "^8.1"
1047 | },
1048 | "require-dev": {
1049 | "captainhook/plugin-composer": "^5.3",
1050 | "ergebnis/composer-normalize": "^2.28.3",
1051 | "fakerphp/faker": "^1.21",
1052 | "hamcrest/hamcrest-php": "^2.0",
1053 | "jangregor/phpstan-prophecy": "^1.0",
1054 | "mockery/mockery": "^1.5",
1055 | "php-parallel-lint/php-console-highlighter": "^1.0",
1056 | "php-parallel-lint/php-parallel-lint": "^1.3",
1057 | "phpcsstandards/phpcsutils": "^1.0.0-rc1",
1058 | "phpspec/prophecy-phpunit": "^2.0",
1059 | "phpstan/extension-installer": "^1.2",
1060 | "phpstan/phpstan": "^1.9",
1061 | "phpstan/phpstan-mockery": "^1.1",
1062 | "phpstan/phpstan-phpunit": "^1.3",
1063 | "phpunit/phpunit": "^9.5",
1064 | "psalm/plugin-mockery": "^1.1",
1065 | "psalm/plugin-phpunit": "^0.18.4",
1066 | "ramsey/coding-standard": "^2.0.3",
1067 | "ramsey/conventional-commits": "^1.3",
1068 | "vimeo/psalm": "^5.4"
1069 | },
1070 | "type": "library",
1071 | "extra": {
1072 | "captainhook": {
1073 | "force-install": true
1074 | },
1075 | "ramsey/conventional-commits": {
1076 | "configFile": "conventional-commits.json"
1077 | }
1078 | },
1079 | "autoload": {
1080 | "psr-4": {
1081 | "Ramsey\\Collection\\": "src/"
1082 | }
1083 | },
1084 | "notification-url": "https://packagist.org/downloads/",
1085 | "license": [
1086 | "MIT"
1087 | ],
1088 | "authors": [
1089 | {
1090 | "name": "Ben Ramsey",
1091 | "email": "ben@benramsey.com",
1092 | "homepage": "https://benramsey.com"
1093 | }
1094 | ],
1095 | "description": "A PHP library for representing and manipulating collections.",
1096 | "keywords": [
1097 | "array",
1098 | "collection",
1099 | "hash",
1100 | "map",
1101 | "queue",
1102 | "set"
1103 | ],
1104 | "support": {
1105 | "issues": "https://github.com/ramsey/collection/issues",
1106 | "source": "https://github.com/ramsey/collection/tree/2.0.0"
1107 | },
1108 | "funding": [
1109 | {
1110 | "url": "https://github.com/ramsey",
1111 | "type": "github"
1112 | },
1113 | {
1114 | "url": "https://tidelift.com/funding/github/packagist/ramsey/collection",
1115 | "type": "tidelift"
1116 | }
1117 | ],
1118 | "time": "2022-12-31T21:50:55+00:00"
1119 | },
1120 | {
1121 | "name": "ramsey/uuid",
1122 | "version": "4.7.5",
1123 | "source": {
1124 | "type": "git",
1125 | "url": "https://github.com/ramsey/uuid.git",
1126 | "reference": "5f0df49ae5ad6efb7afa69e6bfab4e5b1e080d8e"
1127 | },
1128 | "dist": {
1129 | "type": "zip",
1130 | "url": "https://api.github.com/repos/ramsey/uuid/zipball/5f0df49ae5ad6efb7afa69e6bfab4e5b1e080d8e",
1131 | "reference": "5f0df49ae5ad6efb7afa69e6bfab4e5b1e080d8e",
1132 | "shasum": ""
1133 | },
1134 | "require": {
1135 | "brick/math": "^0.8.8 || ^0.9 || ^0.10 || ^0.11",
1136 | "ext-json": "*",
1137 | "php": "^8.0",
1138 | "ramsey/collection": "^1.2 || ^2.0"
1139 | },
1140 | "replace": {
1141 | "rhumsaa/uuid": "self.version"
1142 | },
1143 | "require-dev": {
1144 | "captainhook/captainhook": "^5.10",
1145 | "captainhook/plugin-composer": "^5.3",
1146 | "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
1147 | "doctrine/annotations": "^1.8",
1148 | "ergebnis/composer-normalize": "^2.15",
1149 | "mockery/mockery": "^1.3",
1150 | "paragonie/random-lib": "^2",
1151 | "php-mock/php-mock": "^2.2",
1152 | "php-mock/php-mock-mockery": "^1.3",
1153 | "php-parallel-lint/php-parallel-lint": "^1.1",
1154 | "phpbench/phpbench": "^1.0",
1155 | "phpstan/extension-installer": "^1.1",
1156 | "phpstan/phpstan": "^1.8",
1157 | "phpstan/phpstan-mockery": "^1.1",
1158 | "phpstan/phpstan-phpunit": "^1.1",
1159 | "phpunit/phpunit": "^8.5 || ^9",
1160 | "ramsey/composer-repl": "^1.4",
1161 | "slevomat/coding-standard": "^8.4",
1162 | "squizlabs/php_codesniffer": "^3.5",
1163 | "vimeo/psalm": "^4.9"
1164 | },
1165 | "suggest": {
1166 | "ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.",
1167 | "ext-gmp": "Enables faster math with arbitrary-precision integers using GMP.",
1168 | "ext-uuid": "Enables the use of PeclUuidTimeGenerator and PeclUuidRandomGenerator.",
1169 | "paragonie/random-lib": "Provides RandomLib for use with the RandomLibAdapter",
1170 | "ramsey/uuid-doctrine": "Allows the use of Ramsey\\Uuid\\Uuid as Doctrine field type."
1171 | },
1172 | "type": "library",
1173 | "extra": {
1174 | "captainhook": {
1175 | "force-install": true
1176 | }
1177 | },
1178 | "autoload": {
1179 | "files": [
1180 | "src/functions.php"
1181 | ],
1182 | "psr-4": {
1183 | "Ramsey\\Uuid\\": "src/"
1184 | }
1185 | },
1186 | "notification-url": "https://packagist.org/downloads/",
1187 | "license": [
1188 | "MIT"
1189 | ],
1190 | "description": "A PHP library for generating and working with universally unique identifiers (UUIDs).",
1191 | "keywords": [
1192 | "guid",
1193 | "identifier",
1194 | "uuid"
1195 | ],
1196 | "support": {
1197 | "issues": "https://github.com/ramsey/uuid/issues",
1198 | "source": "https://github.com/ramsey/uuid/tree/4.7.5"
1199 | },
1200 | "funding": [
1201 | {
1202 | "url": "https://github.com/ramsey",
1203 | "type": "github"
1204 | },
1205 | {
1206 | "url": "https://tidelift.com/funding/github/packagist/ramsey/uuid",
1207 | "type": "tidelift"
1208 | }
1209 | ],
1210 | "time": "2023-11-08T05:53:05+00:00"
1211 | },
1212 | {
1213 | "name": "symfony/filesystem",
1214 | "version": "6.3.x-dev",
1215 | "source": {
1216 | "type": "git",
1217 | "url": "https://github.com/symfony/filesystem.git",
1218 | "reference": "edd36776956f2a6fcf577edb5b05eb0e3bdc52ae"
1219 | },
1220 | "dist": {
1221 | "type": "zip",
1222 | "url": "https://api.github.com/repos/symfony/filesystem/zipball/edd36776956f2a6fcf577edb5b05eb0e3bdc52ae",
1223 | "reference": "edd36776956f2a6fcf577edb5b05eb0e3bdc52ae",
1224 | "shasum": ""
1225 | },
1226 | "require": {
1227 | "php": ">=8.1",
1228 | "symfony/polyfill-ctype": "~1.8",
1229 | "symfony/polyfill-mbstring": "~1.8"
1230 | },
1231 | "default-branch": true,
1232 | "type": "library",
1233 | "autoload": {
1234 | "psr-4": {
1235 | "Symfony\\Component\\Filesystem\\": ""
1236 | },
1237 | "exclude-from-classmap": [
1238 | "/Tests/"
1239 | ]
1240 | },
1241 | "notification-url": "https://packagist.org/downloads/",
1242 | "license": [
1243 | "MIT"
1244 | ],
1245 | "authors": [
1246 | {
1247 | "name": "Fabien Potencier",
1248 | "email": "fabien@symfony.com"
1249 | },
1250 | {
1251 | "name": "Symfony Community",
1252 | "homepage": "https://symfony.com/contributors"
1253 | }
1254 | ],
1255 | "description": "Provides basic utilities for the filesystem",
1256 | "homepage": "https://symfony.com",
1257 | "support": {
1258 | "source": "https://github.com/symfony/filesystem/tree/v6.3.1"
1259 | },
1260 | "funding": [
1261 | {
1262 | "url": "https://symfony.com/sponsor",
1263 | "type": "custom"
1264 | },
1265 | {
1266 | "url": "https://github.com/fabpot",
1267 | "type": "github"
1268 | },
1269 | {
1270 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
1271 | "type": "tidelift"
1272 | }
1273 | ],
1274 | "time": "2023-06-01T08:30:39+00:00"
1275 | },
1276 | {
1277 | "name": "symfony/polyfill-ctype",
1278 | "version": "1.x-dev",
1279 | "source": {
1280 | "type": "git",
1281 | "url": "https://github.com/symfony/polyfill-ctype.git",
1282 | "reference": "ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb"
1283 | },
1284 | "dist": {
1285 | "type": "zip",
1286 | "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb",
1287 | "reference": "ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb",
1288 | "shasum": ""
1289 | },
1290 | "require": {
1291 | "php": ">=7.1"
1292 | },
1293 | "provide": {
1294 | "ext-ctype": "*"
1295 | },
1296 | "suggest": {
1297 | "ext-ctype": "For best performance"
1298 | },
1299 | "default-branch": true,
1300 | "type": "library",
1301 | "extra": {
1302 | "branch-alias": {
1303 | "dev-main": "1.28-dev"
1304 | },
1305 | "thanks": {
1306 | "name": "symfony/polyfill",
1307 | "url": "https://github.com/symfony/polyfill"
1308 | }
1309 | },
1310 | "autoload": {
1311 | "files": [
1312 | "bootstrap.php"
1313 | ],
1314 | "psr-4": {
1315 | "Symfony\\Polyfill\\Ctype\\": ""
1316 | }
1317 | },
1318 | "notification-url": "https://packagist.org/downloads/",
1319 | "license": [
1320 | "MIT"
1321 | ],
1322 | "authors": [
1323 | {
1324 | "name": "Gert de Pagter",
1325 | "email": "BackEndTea@gmail.com"
1326 | },
1327 | {
1328 | "name": "Symfony Community",
1329 | "homepage": "https://symfony.com/contributors"
1330 | }
1331 | ],
1332 | "description": "Symfony polyfill for ctype functions",
1333 | "homepage": "https://symfony.com",
1334 | "keywords": [
1335 | "compatibility",
1336 | "ctype",
1337 | "polyfill",
1338 | "portable"
1339 | ],
1340 | "support": {
1341 | "source": "https://github.com/symfony/polyfill-ctype/tree/v1.28.0"
1342 | },
1343 | "funding": [
1344 | {
1345 | "url": "https://symfony.com/sponsor",
1346 | "type": "custom"
1347 | },
1348 | {
1349 | "url": "https://github.com/fabpot",
1350 | "type": "github"
1351 | },
1352 | {
1353 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
1354 | "type": "tidelift"
1355 | }
1356 | ],
1357 | "time": "2023-01-26T09:26:14+00:00"
1358 | },
1359 | {
1360 | "name": "symfony/polyfill-mbstring",
1361 | "version": "1.x-dev",
1362 | "source": {
1363 | "type": "git",
1364 | "url": "https://github.com/symfony/polyfill-mbstring.git",
1365 | "reference": "42292d99c55abe617799667f454222c54c60e229"
1366 | },
1367 | "dist": {
1368 | "type": "zip",
1369 | "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/42292d99c55abe617799667f454222c54c60e229",
1370 | "reference": "42292d99c55abe617799667f454222c54c60e229",
1371 | "shasum": ""
1372 | },
1373 | "require": {
1374 | "php": ">=7.1"
1375 | },
1376 | "provide": {
1377 | "ext-mbstring": "*"
1378 | },
1379 | "suggest": {
1380 | "ext-mbstring": "For best performance"
1381 | },
1382 | "default-branch": true,
1383 | "type": "library",
1384 | "extra": {
1385 | "branch-alias": {
1386 | "dev-main": "1.28-dev"
1387 | },
1388 | "thanks": {
1389 | "name": "symfony/polyfill",
1390 | "url": "https://github.com/symfony/polyfill"
1391 | }
1392 | },
1393 | "autoload": {
1394 | "files": [
1395 | "bootstrap.php"
1396 | ],
1397 | "psr-4": {
1398 | "Symfony\\Polyfill\\Mbstring\\": ""
1399 | }
1400 | },
1401 | "notification-url": "https://packagist.org/downloads/",
1402 | "license": [
1403 | "MIT"
1404 | ],
1405 | "authors": [
1406 | {
1407 | "name": "Nicolas Grekas",
1408 | "email": "p@tchwork.com"
1409 | },
1410 | {
1411 | "name": "Symfony Community",
1412 | "homepage": "https://symfony.com/contributors"
1413 | }
1414 | ],
1415 | "description": "Symfony polyfill for the Mbstring extension",
1416 | "homepage": "https://symfony.com",
1417 | "keywords": [
1418 | "compatibility",
1419 | "mbstring",
1420 | "polyfill",
1421 | "portable",
1422 | "shim"
1423 | ],
1424 | "support": {
1425 | "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.28.0"
1426 | },
1427 | "funding": [
1428 | {
1429 | "url": "https://symfony.com/sponsor",
1430 | "type": "custom"
1431 | },
1432 | {
1433 | "url": "https://github.com/fabpot",
1434 | "type": "github"
1435 | },
1436 | {
1437 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
1438 | "type": "tidelift"
1439 | }
1440 | ],
1441 | "time": "2023-07-28T09:04:16+00:00"
1442 | }
1443 | ],
1444 | "aliases": [],
1445 | "minimum-stability": "dev",
1446 | "stability-flags": {
1447 | "jasonw4331/libcustompack": 20
1448 | },
1449 | "prefer-stable": false,
1450 | "prefer-lowest": false,
1451 | "platform": [],
1452 | "platform-dev": {
1453 | "php": "^8.0"
1454 | },
1455 | "plugin-api-version": "2.3.0"
1456 | }
1457 |
--------------------------------------------------------------------------------
/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IvanCraft623/NetherReactor/146d73e3864604cae8717b53ac465d40156538a9/icon.png
--------------------------------------------------------------------------------
/phpstan.neon.dist:
--------------------------------------------------------------------------------
1 | parameters:
2 | level: 9
3 | checkMissingIterableValueType: false
4 | paths:
5 | - src
6 |
--------------------------------------------------------------------------------
/plugin.yml:
--------------------------------------------------------------------------------
1 | ---
2 | name: NetherReactor
3 | author: IvanCraft623
4 | main: IvanCraft623\NetherReactor\NetherReactor
5 | version: 0.0.1
6 | api: 5.0.0
7 | description: "Implements legacy nether reactor!"
8 | depend:
9 | - Customies
10 | softdepend:
11 | - MobPlugin
12 |
13 | permissions:
14 | netherreactor.core.activation:
15 | default: true
16 | ...
17 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/blocks.json:
--------------------------------------------------------------------------------
1 | {
2 | "format_version": "1.19.30",
3 | "ivancraft623:nether_reactor_core": {
4 | "sound": "stone"
5 | }
6 | }
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/entity/zombie_pigman.entity.json:
--------------------------------------------------------------------------------
1 | {
2 | "format_version": "1.8.0",
3 | "minecraft:client_entity": {
4 | "description": {
5 | "identifier": "netherreactor:zombie_pigman",
6 | "min_engine_version": "1.8.0",
7 | "materials": { "default": "zombie" },
8 | "textures": {
9 | "default": "textures/entity/zombie_pigman"
10 | },
11 | "geometry": {
12 | "default": "geometry.pigzombie.v1.8",
13 | "baby": "geometry.pigzombie.baby.v1.8"
14 | },
15 | "scripts": {
16 | "pre_animation": [
17 | "variable.tcos0 = (Math.cos(query.modified_distance_moved * 38.17) * query.modified_move_speed / variable.gliding_speed_value) * 57.3;"
18 | ]
19 | },
20 | "animations": {
21 | "humanoid_big_head": "animation.humanoid.big_head",
22 | "humanoid_base_pose": "animation.humanoid.base_pose",
23 | "look_at_target_default": "animation.humanoid.look_at_target.default",
24 | "look_at_target_gliding": "animation.humanoid.look_at_target.gliding",
25 | "look_at_target_swimming": "animation.humanoid.look_at_target.swimming",
26 | "move": "animation.humanoid.move",
27 | "riding.arms": "animation.humanoid.riding.arms",
28 | "riding.legs": "animation.humanoid.riding.legs",
29 | "holding": "animation.humanoid.holding",
30 | "brandish_spear": "animation.humanoid.brandish_spear",
31 | "charging": "animation.humanoid.charging",
32 | "attack.rotations": "animation.humanoid.attack.rotations",
33 | "sneaking": "animation.humanoid.sneaking",
34 | "bob": "animation.humanoid.bob",
35 | "damage_nearby_mobs": "animation.humanoid.damage_nearby_mobs",
36 | "bow_and_arrow": "animation.humanoid.bow_and_arrow",
37 | "swimming": "animation.humanoid.swimming",
38 | "use_item_progress": "animation.humanoid.use_item_progress",
39 | "zombie_attack_bare_hand": "animation.zombie.attack_bare_hand"
40 | },
41 | "animation_controllers": [
42 | { "humanoid_baby_big_head": "controller.animation.humanoid.baby_big_head" },
43 | { "humanoid_base_pose": "controller.animation.humanoid.base_pose" },
44 | { "look_at_target": "controller.animation.humanoid.look_at_target" },
45 | { "move": "controller.animation.humanoid.move" },
46 | { "riding": "controller.animation.humanoid.riding" },
47 | { "holding": "controller.animation.humanoid.holding" },
48 | { "brandish_spear": "controller.animation.humanoid.brandish_spear" },
49 | { "charging": "controller.animation.humanoid.charging" },
50 | { "attack": "controller.animation.humanoid.attack" },
51 | { "sneaking": "controller.animation.humanoid.sneaking" },
52 | { "bob": "controller.animation.humanoid.bob" },
53 | { "damage_nearby_mobs": "controller.animation.humanoid.damage_nearby_mobs" },
54 | { "bow_and_arrow": "controller.animation.humanoid.bow_and_arrow" },
55 | { "swimming": "controller.animation.humanoid.swimming" },
56 | { "use_item_progress": "controller.animation.humanoid.use_item_progress" },
57 | { "zombie_attack_bare_hand": "controller.animation.zombie.attack_bare_hand" }
58 | ],
59 | "render_controllers": [ "controller.render.zombie_pigman" ],
60 | "enable_attachables": true
61 | }
62 | }
63 | }
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "format_version": 2,
3 | "header": {
4 | "description": "Nether Reactor Pack",
5 | "name": "NetherReactor",
6 | "uuid": "ca9d9458-1973-4669-a7cb-9e6c2d4852b2",
7 | "version": [0, 0, 2],
8 | "min_engine_version": [1, 16, 0]
9 | },
10 | "modules": [
11 | {
12 | "description": "Nether Reactor Resource Pack",
13 | "type": "resources",
14 | "uuid": "16c40476-87dd-4f16-a84c-8adc695d8d10",
15 | "version": [1, 0, 0]
16 | }
17 | ],
18 | "metadata": {
19 | "authors": [
20 | "IvanCraft623"
21 | ],
22 | "license": "LGPL-3.0",
23 | "url": "https://github.com/IvanCraft623/NetherReactor"
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/models/entity/zombie_pigman.geo.json:
--------------------------------------------------------------------------------
1 | {
2 | "format_version": "1.8.0",
3 | "geometry.pigzombie.v1.8": {
4 | "visible_bounds_width": 2,
5 | "visible_bounds_height": 2.5,
6 | "visible_bounds_offset": [ 0, 1.25, 0 ],
7 | "texturewidth": 64,
8 | "textureheight": 32,
9 | "bones": [
10 | {
11 | "name": "body",
12 | "parent": "waist",
13 | "pivot": [ 0.0, 24.0, 0.0 ],
14 | "cubes": [
15 | {
16 | "origin": [ -4.0, 12.0, -2.0 ],
17 | "size": [ 8, 12, 4 ],
18 | "uv": [ 16, 16 ]
19 | }
20 | ]
21 | },
22 |
23 | {
24 | "name": "waist",
25 | "neverRender": true,
26 | "pivot": [ 0.0, 12.0, 0.0 ]
27 | },
28 |
29 | {
30 | "name": "head",
31 | "parent": "body",
32 | "pivot": [ 0.0, 24.0, 0.0 ],
33 | "cubes": [
34 | {
35 | "origin": [ -4.0, 24.0, -4.0 ],
36 | "size": [ 8, 8, 8 ],
37 | "uv": [ 0, 0 ]
38 | }
39 | ]
40 | },
41 |
42 | {
43 | "name": "hat",
44 | "parent": "head",
45 | "pivot": [ 0.0, 24.0, 0.0 ],
46 | "cubes": [
47 | {
48 | "origin": [ -4.0, 24.0, -4.0 ],
49 | "size": [ 8, 8, 8 ],
50 | "uv": [ 32, 0 ],
51 | "inflate": 0.5
52 | }
53 | ],
54 | "neverRender": false
55 | },
56 |
57 | {
58 | "name": "rightArm",
59 | "parent": "body",
60 | "pivot": [ -5.0, 22.0, 0.0 ],
61 | "cubes": [
62 | {
63 | "origin": [ -8.0, 12.0, -2.0 ],
64 | "size": [ 4, 12, 4 ],
65 | "uv": [ 40, 16 ]
66 | }
67 | ]
68 | },
69 |
70 | {
71 | "name": "rightItem",
72 | "pivot": [ -6, 15, 1 ],
73 | "neverRender": true,
74 | "parent": "rightArm"
75 | },
76 |
77 | {
78 | "name": "leftArm",
79 | "parent": "body",
80 | "pivot": [ 5.0, 22.0, 0.0 ],
81 | "cubes": [
82 | {
83 | "origin": [ 4.0, 12.0, -2.0 ],
84 | "size": [ 4, 12, 4 ],
85 | "uv": [ 40, 16 ]
86 | }
87 | ],
88 | "mirror": true
89 | },
90 |
91 | {
92 | "name": "rightLeg",
93 | "parent": "body",
94 | "pivot": [ -1.9, 12.0, 0.0 ],
95 | "cubes": [
96 | {
97 | "origin": [ -3.9, 0.0, -2.0 ],
98 | "size": [ 4, 12, 4 ],
99 | "uv": [ 0, 16 ]
100 | }
101 | ]
102 | },
103 |
104 | {
105 | "name": "leftLeg",
106 | "parent": "body",
107 | "pivot": [ 1.9, 12.0, 0.0 ],
108 | "cubes": [
109 | {
110 | "origin": [ -0.1, 0.0, -2.0 ],
111 | "size": [ 4, 12, 4 ],
112 | "uv": [ 0, 16 ]
113 | }
114 | ],
115 | "mirror": true
116 | }
117 | ]
118 | }
119 | }
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/models/entity/zombie_pigman_baby.geo.json:
--------------------------------------------------------------------------------
1 | {
2 | "format_version": "1.8.0",
3 | "geometry.pigzombie.baby.v1.8": {
4 | "visible_bounds_width": 1.5,
5 | "visible_bounds_height": 1.5,
6 | "visible_bounds_offset": [ 0, 0.75, 0 ],
7 | "texturewidth": 64,
8 | "textureheight": 32,
9 | "bones": [
10 | {
11 | "name": "body",
12 | "parent": "waist",
13 | "pivot": [ 0.0, 24.0, 0.0 ],
14 | "cubes": [
15 | {
16 | "origin": [ -4.0, 12.0, -2.0 ],
17 | "size": [ 8, 12, 4 ],
18 | "uv": [ 16, 16 ]
19 | }
20 | ]
21 | },
22 | {
23 | "name": "waist",
24 | "neverRender": true,
25 | "pivot": [ 0.0, 12.0, 0.0 ]
26 | },
27 | {
28 | "name": "head",
29 | "parent": "body",
30 | "pivot": [ 0.0, 24.0, 0.0 ],
31 | "cubes": [
32 | {
33 | "origin": [ -4.0, 24.0, -4.0 ],
34 | "size": [ 8, 8, 8 ],
35 | "uv": [ 0, 0 ]
36 | }
37 | ]
38 | },
39 | {
40 | "name": "hat",
41 | "parent": "head",
42 | "pivot": [ 0.0, 24.0, 0.0 ],
43 | "cubes": [
44 | {
45 | "origin": [ -4.0, 24.0, -4.0 ],
46 | "size": [ 8, 8, 8 ],
47 | "uv": [ 32, 0 ],
48 | "inflate": 0.5
49 | }
50 | ],
51 | "neverRender": true
52 | },
53 | {
54 | "name": "rightArm",
55 | "parent": "body",
56 | "pivot": [ -5.0, 22.0, 0.0 ],
57 | "cubes": [
58 | {
59 | "origin": [ -8.0, 12.0, -2.0 ],
60 | "size": [ 4, 12, 4 ],
61 | "uv": [ 40, 16 ]
62 | }
63 | ]
64 | },
65 | {
66 | "name": "rightItem",
67 | "pivot": [ -6, 16, 1 ],
68 | "neverRender": true,
69 | "parent": "rightArm"
70 | },
71 | {
72 | "name": "leftArm",
73 | "parent": "body",
74 | "pivot": [ 5.0, 22.0, 0.0 ],
75 | "cubes": [
76 | {
77 | "origin": [ 4.0, 12.0, -2.0 ],
78 | "size": [ 4, 12, 4 ],
79 | "uv": [ 40, 16 ]
80 | }
81 | ],
82 | "mirror": true
83 | },
84 | {
85 | "name": "rightLeg",
86 | "parent": "body",
87 | "pivot": [ -1.9, 12.0, 0.0 ],
88 | "cubes": [
89 | {
90 | "origin": [ -3.9, 0.0, -2.0 ],
91 | "size": [ 4, 12, 4 ],
92 | "uv": [ 0, 16 ]
93 | }
94 | ]
95 | },
96 | {
97 | "name": "leftLeg",
98 | "parent": "body",
99 | "pivot": [ 1.9, 12.0, 0.0 ],
100 | "cubes": [
101 | {
102 | "origin": [ -0.1, 0.0, -2.0 ],
103 | "size": [ 4, 12, 4 ],
104 | "uv": [ 0, 16 ]
105 | }
106 | ],
107 | "mirror": true
108 | }
109 | ]
110 | }
111 | }
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/pack_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IvanCraft623/NetherReactor/146d73e3864604cae8717b53ac465d40156538a9/resources/NetherReactor Pack/pack_icon.png
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/render_controllers/zombie_pigman.render_controllers.json:
--------------------------------------------------------------------------------
1 | {
2 | "format_version": "1.8.0",
3 | "render_controllers": {
4 | "controller.render.zombie_pigman": {
5 | "arrays": {
6 | "geometries": {
7 | "Array.geos": [ "Geometry.default", "Geometry.baby" ]
8 | }
9 | },
10 | "geometry": "Array.geos[query.is_baby]",
11 | "materials": [ { "*": "Material.default" } ],
12 | "textures": [ "Texture.default" ]
13 | }
14 | }
15 | }
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/sounds.json:
--------------------------------------------------------------------------------
1 | {
2 | "entity_sounds" : {
3 | "entities" : {
4 | "netherreactor:zombie_pigman" : {
5 | "pitch" : [
6 | 0.8,
7 | 1.2
8 | ],
9 | "volume" : 1,
10 | "events" : {
11 | "ambient" : "mob.zombiepig.zpig",
12 | "hurt" : "mob.zombiepig.zpighurt",
13 | "death" : "mob.zombiepig.zpigdeath",
14 | "mad" : {
15 | "pitch" : [
16 | 1.44,
17 | 2.16
18 | ],
19 | "sound" : "mob.zombiepig.zpigangry",
20 | "volume" : 2
21 | }
22 | }
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/texts/bg_BG.lang:
--------------------------------------------------------------------------------
1 | tile.ivancraft623:nether_reactor_core.name=Пъклено реакторно ядро
2 | tile.netherreactor.noPermission=Нямате право да активирате ада реактора
3 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/texts/cs_CZ.lang:
--------------------------------------------------------------------------------
1 | tile.ivancraft623:nether_reactor_core.name=Jádro netheritového reaktoru
2 | tile.netherreactor.noPermission=Nemáte oprávnění aktivovat reaktor Netheru
3 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/texts/da_DK.lang:
--------------------------------------------------------------------------------
1 | tile.ivancraft623:nether_reactor_core.name=Nether-reaktorkerne
2 | tile.netherreactor.noPermission=Du har ikke tilladelse til at aktivere Nether-reaktor
3 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/texts/de_DE.lang:
--------------------------------------------------------------------------------
1 | tile.ivancraft623:nether_reactor_core.name=Netherreaktorkern
2 | tile.netherreactor.noPermission=Du hast keine Berechtigung, den Netherreaktor zu aktivieren
3 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/texts/el_GR.lang:
--------------------------------------------------------------------------------
1 | tile.ivancraft623:nether_reactor_core.name=Πυρήνας αντιδραστήρα Nether
2 | tile.netherreactor.noPermission=Δεν έχετε άδεια να ενεργοποιήσετε τον αντιδραστήρα Nether
3 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/texts/en_GB.lang:
--------------------------------------------------------------------------------
1 | tile.ivancraft623:nether_reactor_core.name=Nether Reactor Core
2 | tile.netherreactor.noPermission=You don't have permission to activate the Nether Reactor
3 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/texts/en_US.lang:
--------------------------------------------------------------------------------
1 | tile.ivancraft623:nether_reactor_core.name=Nether Reactor Core
2 | tile.netherreactor.noPermission=You don't have permission to activate the Nether Reactor
3 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/texts/es_ES.lang:
--------------------------------------------------------------------------------
1 | tile.ivancraft623:nether_reactor_core.name=Núcleo del reactor de inframundo
2 | tile.netherreactor.noPermission=No tienes permiso para activar el reactor de inframundo
3 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/texts/es_MX.lang:
--------------------------------------------------------------------------------
1 | tile.ivancraft623:nether_reactor_core.name=Núcleo del reactor del inframundo
2 | tile.netherreactor.noPermission=No tienes permiso para activar el reactor del inframundo
3 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/texts/fi_FI.lang:
--------------------------------------------------------------------------------
1 | tile.ivancraft623:nether_reactor_core.name=Hornareaktoriydin
2 | tile.netherreactor.noPermission=Sinulla ei ole lupaa aktivoida hornareaktoriydin
3 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/texts/fr_CA.lang:
--------------------------------------------------------------------------------
1 | tile.ivancraft623:nether_reactor_core.name=Cœur du réacteur du Nether
2 | tile.netherreactor.noPermission=Vous n'avez pas la permission d'activer le réacteur du Nether
3 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/texts/fr_FR.lang:
--------------------------------------------------------------------------------
1 | tile.ivancraft623:nether_reactor_core.name=Cœur du réacteur du Nether
2 | tile.netherreactor.noPermission=Vous n'avez pas la permission d'activer le réacteur du Nether
3 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/texts/hu_HU.lang:
--------------------------------------------------------------------------------
1 | tile.ivancraft623:nether_reactor_core.name=Alvilági reaktormag
2 | tile.netherreactor.noPermission=Nincs jogosultsága a alvilági reaktor aktiválásához
3 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/texts/id_ID.lang:
--------------------------------------------------------------------------------
1 | tile.ivancraft623:nether_reactor_core.name=Inti Reaktor Nether
2 | tile.netherreactor.noPermission=Anda tidak memiliki izin untuk mengaktifkan Reaktor Nether
3 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/texts/it_IT.lang:
--------------------------------------------------------------------------------
1 | tile.ivancraft623:nether_reactor_core.name=Nucleo del reattore Nether
2 | tile.netherreactor.noPermission=Non hai il permesso di attivare il reattore del Nether
3 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/texts/ja_JP.lang:
--------------------------------------------------------------------------------
1 | tile.ivancraft623:nether_reactor_core.name=ネザーリアクター コア
2 | tile.netherreactor.noPermission=ネザーリアクターを起動する権限がありません
3 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/texts/ko_KR.lang:
--------------------------------------------------------------------------------
1 | tile.ivancraft623:nether_reactor_core.name=네더 반응기 코어
2 | tile.netherreactor.noPermission=네더 반응기를 활성화할 권한이 없습니다
3 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/texts/nb_NO.lang:
--------------------------------------------------------------------------------
1 | tile.ivancraft623:nether_reactor_core.name=Underverdenreaktorkjerne
2 | tile.netherreactor.noPermission=Du har ikke tillatelse til å aktivere underverdenreaktoren
3 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/texts/nl_NL.lang:
--------------------------------------------------------------------------------
1 | tile.ivancraft623:nether_reactor_core.name=Nether-reactorkern
2 | tile.netherreactor.noPermission=Je hebt geen toestemming om de Nether-reactor te activeren
3 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/texts/pl_PL.lang:
--------------------------------------------------------------------------------
1 | tile.ivancraft623:nether_reactor_core.name=Rdzeń reaktora Netheru
2 | tile.netherreactor.noPermission=Nie masz uprawnień do aktywacji reaktora Netheru
3 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/texts/pt_BR.lang:
--------------------------------------------------------------------------------
1 | tile.ivancraft623:nether_reactor_core.name=Núcleo do Reator do Nether
2 | tile.netherreactor.noPermission=Você não tem permissão para ativar o Reator do Nether
3 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/texts/pt_PT.lang:
--------------------------------------------------------------------------------
1 | tile.ivancraft623:nether_reactor_core.name=Núcleo do Reator do Nether
2 | tile.netherreactor.noPermission=Não tem permissão para ativar o Reator do Nether
3 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/texts/ru_RU.lang:
--------------------------------------------------------------------------------
1 | tile.ivancraft623:nether_reactor_core.name=Ядро реактора Нижнего мира
2 | tile.netherreactor.noPermission=У вас нет разрешения на активацию нижнего реактора
3 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/texts/sk_SK.lang:
--------------------------------------------------------------------------------
1 | tile.ivancraft623:nether_reactor_core.name=Jadro netheritového reaktora
2 | tile.netherreactor.noPermission=Nemáte povolenie aktivovať netheritového reaktora
3 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/texts/sv_SE.lang:
--------------------------------------------------------------------------------
1 | tile.ivancraft623:nether_reactor_core.name=Nether-reaktorkärna
2 | tile.netherreactor.noPermission=Du har inte behörighet att aktivera Nether-reaktorn
3 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/texts/tr_TR.lang:
--------------------------------------------------------------------------------
1 | tile.ivancraft623:nether_reactor_core.name=Nether Reaktör Çekirdeği
2 | tile.netherreactor.noPermission=Nether reaktörünü etkinleştirme izniniz yok
3 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/texts/uk_UA.lang:
--------------------------------------------------------------------------------
1 | tile.ivancraft623:nether_reactor_core.name=Ядро незерського реактора
2 | tile.netherreactor.noPermission=У вас немає дозволу на активацію реактор незеру
3 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/texts/zh_CN.lang:
--------------------------------------------------------------------------------
1 | tile.ivancraft623:nether_reactor_core.name=下界反应核
2 | tile.netherreactor.noPermission=您没有权限激活下界反应器
3 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/texts/zh_TW.lang:
--------------------------------------------------------------------------------
1 | tile.ivancraft623:nether_reactor_core.name=地獄反應核
2 | tile.netherreactor.noPermission=您沒有權限啟動地獄反應器
3 |
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/textures/blocks/nether_reactor.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IvanCraft623/NetherReactor/146d73e3864604cae8717b53ac465d40156538a9/resources/NetherReactor Pack/textures/blocks/nether_reactor.png
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/textures/blocks/nether_reactor_active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IvanCraft623/NetherReactor/146d73e3864604cae8717b53ac465d40156538a9/resources/NetherReactor Pack/textures/blocks/nether_reactor_active.png
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/textures/blocks/nether_reactor_used.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IvanCraft623/NetherReactor/146d73e3864604cae8717b53ac465d40156538a9/resources/NetherReactor Pack/textures/blocks/nether_reactor_used.png
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/textures/entity/zombie_pigman.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IvanCraft623/NetherReactor/146d73e3864604cae8717b53ac465d40156538a9/resources/NetherReactor Pack/textures/entity/zombie_pigman.png
--------------------------------------------------------------------------------
/resources/NetherReactor Pack/textures/terrain_texture.json:
--------------------------------------------------------------------------------
1 | {
2 | "num_mip_levels": 8,
3 | "padding": 4,
4 | "resource_pack_name": "netherreactor",
5 | "texture_name": "atlas.terrain",
6 | "texture_data": {
7 | "nether_reactor_inactive": {
8 | "textures": "textures/blocks/nether_reactor"
9 | },
10 | "nether_reactor_active": {
11 | "textures": "textures/blocks/nether_reactor_active"
12 | },
13 | "nether_reactor_used": {
14 | "textures": "textures/blocks/nether_reactor_used"
15 | }
16 | }
17 | }
--------------------------------------------------------------------------------
/resources/structure/pattern.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "material": "cobblestone",
4 | "transformations": [
5 | {
6 | "material": "glowing_obsidian",
7 | "tick": 40
8 | },
9 | {
10 | "material": "obsidian",
11 | "tick": 900
12 | }
13 | ],
14 | "blocks": [
15 | {
16 | "x": 0,
17 | "y": -1,
18 | "z": 0
19 | },
20 | {
21 | "x": 0,
22 | "y": -1,
23 | "z": -1
24 | },
25 | {
26 | "x": 0,
27 | "y": -1,
28 | "z": 1
29 | },
30 | {
31 | "x": -1,
32 | "y": -1,
33 | "z": 0
34 | },
35 | {
36 | "x": 1,
37 | "y": -1,
38 | "z": 0
39 | }
40 | ]
41 | },
42 | {
43 | "material": "cobblestone",
44 | "transformations": [
45 | {
46 | "material": "glowing_obsidian",
47 | "tick": 60
48 | },
49 | {
50 | "material": "obsidian",
51 | "tick": 880
52 | }
53 | ],
54 | "blocks": [
55 | {
56 | "x": -1,
57 | "y": 0,
58 | "z": -1
59 | },
60 | {
61 | "x": 1,
62 | "y": 0,
63 | "z": -1
64 | },
65 | {
66 | "x": -1,
67 | "y": 0,
68 | "z": 1
69 | },
70 | {
71 | "x": 1,
72 | "y": 0,
73 | "z": 1
74 | }
75 | ]
76 | },
77 | {
78 | "material": "cobblestone",
79 | "transformations": [
80 | {
81 | "material": "glowing_obsidian",
82 | "tick": 80
83 | },
84 | {
85 | "material": "obsidian",
86 | "tick": 860
87 | }
88 | ],
89 | "blocks": [
90 | {
91 | "x": 0,
92 | "y": 1,
93 | "z": 0
94 | },
95 | {
96 | "x": 0,
97 | "y": 1,
98 | "z": -1
99 | },
100 | {
101 | "x": 0,
102 | "y": 1,
103 | "z": 1
104 | },
105 | {
106 | "x": -1,
107 | "y": 1,
108 | "z": 0
109 | },
110 | {
111 | "x": 1,
112 | "y": 1,
113 | "z": 0
114 | }
115 | ]
116 | },
117 | {
118 | "material": "gold",
119 | "transformations": [
120 | {
121 | "material": "glowing_obsidian",
122 | "tick": 140
123 | },
124 | {
125 | "material": "obsidian",
126 | "tick": 900
127 | }
128 | ],
129 | "blocks": [
130 | {
131 | "x": -1,
132 | "y": -1,
133 | "z": -1
134 | },
135 | {
136 | "x": 1,
137 | "y": -1,
138 | "z": -1
139 | },
140 | {
141 | "x": -1,
142 | "y": -1,
143 | "z": 1
144 | },
145 | {
146 | "x": 1,
147 | "y": -1,
148 | "z": 1
149 | }
150 | ]
151 | },
152 | {
153 | "material": "air",
154 | "transformations": [
155 | {
156 | "material": "obsidian",
157 | "tick": 880
158 | }
159 | ],
160 | "blocks": [
161 | {
162 | "x": 0,
163 | "y": 0,
164 | "z": -1
165 | },
166 | {
167 | "x": 0,
168 | "y": 0,
169 | "z": 1
170 | },
171 | {
172 | "x": -1,
173 | "y": 0,
174 | "z": 0
175 | },
176 | {
177 | "x": 1,
178 | "y": 0,
179 | "z": 0
180 | }
181 | ]
182 | },
183 | {
184 | "material": "air",
185 | "transformations": [
186 | {
187 | "material": "obsidian",
188 | "tick": 860
189 | }
190 | ],
191 | "blocks": [
192 | {
193 | "x": -1,
194 | "y": 1,
195 | "z": -1
196 | },
197 | {
198 | "x": 1,
199 | "y": 1,
200 | "z": -1
201 | },
202 | {
203 | "x": -1,
204 | "y": 1,
205 | "z": 1
206 | },
207 | {
208 | "x": 1,
209 | "y": 1,
210 | "z": 1
211 | }
212 | ]
213 | }
214 | ]
--------------------------------------------------------------------------------
/resources/structure/structure_config.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # Block from which the spire will be made
3 | nether_reactor_spire_material: netherrack
4 |
5 | # All coordinates are referenced from the nether reactor core position
6 |
7 | # Bounds determinate nether reactor dimensions
8 | # We only use Y to determinate if the whole structure can be build at the current height.
9 | bounds:
10 | maxY: 30
11 | minY: -3
12 |
13 | # These sections are not considered part of the spire, so they will not corrupt after the reactor is used.
14 | platforms:
15 | - material: netherrack
16 | from:
17 | x: -8
18 | "y": -3
19 | z: -8
20 | to:
21 | x: 8
22 | "y": -2
23 | z: 8
24 | - material: netherrack
25 | from:
26 | x: -7
27 | "y": 3
28 | z: -7
29 | to:
30 | x: 7
31 | "y": 3
32 | z: 7
33 |
34 | # This is the area where items will be dropped and pigmans will spawn,
35 | # all non-pattern blocks in this area will be replaced by air.
36 | room:
37 | from:
38 | x: -7
39 | "y": -1
40 | z: -7
41 | to:
42 | x: 7
43 | "y": 2
44 | z: 7
45 | ...
46 |
--------------------------------------------------------------------------------
/src/IvanCraft623/NetherReactor/NetherReactor.php:
--------------------------------------------------------------------------------
1 | getLogger()->debug('Resource pack installed');
59 |
60 | self::$mobPluginDetected = class_exists(MobPlugin::class);
61 | if (!self::$mobPluginDetected) {
62 | $this->getLogger()->error('Missing dependency: IvanCraft623/MobPlugin, some features will not be available');
63 | }
64 | }
65 |
66 | public function onEnable() : void {
67 | ExtraBlockRegisterHelper::init();
68 | NetherReactorStructure::getInstance();
69 |
70 | if (self::$mobPluginDetected) {
71 | ExtraEntityRegisterHelper::init();
72 | }
73 | }
74 |
75 | public function onDisable() : void{
76 | libCustomPack::unregisterResourcePack(self::$pack);
77 | $this->getLogger()->debug('Resource pack uninstalled');
78 |
79 | unlink(Path::join($this->getDataFolder(), self::$pack->getPackName() . '.mcpack'));
80 | $this->getLogger()->debug('Resource pack file deleted');
81 | }
82 | }
83 |
--------------------------------------------------------------------------------
/src/IvanCraft623/NetherReactor/block/ExtraBlockRegisterHelper.php:
--------------------------------------------------------------------------------
1 | registerBlock(static fn() => ExtraVanillaBlocks::NETHER_REACTOR_CORE(), "ivancraft623:nether_reactor_core", creativeInfo: new CreativeInventoryInfo(CreativeInventoryInfo::CATEGORY_ITEMS));
50 | }
51 |
52 | private static function registerTiles() : void{
53 | $tileFactory = TileFactory::getInstance();
54 |
55 | $tileFactory->register(TileNetherReactor::class, ["NetherReactor", "minecraft:netherreactor"]);
56 | }
57 |
58 | private static function registerStringToItemParserNames() : void{
59 | $parser = StringToItemParser::getInstance();
60 |
61 | $parser->registerBlock("inactive_netherreactor", fn() => ExtraVanillaBlocks::NETHER_REACTOR_CORE());
62 | $parser->registerBlock("active_netherreactor", fn() => ExtraVanillaBlocks::NETHER_REACTOR_CORE()->setType(NetherReactorType::ACTIVE()));
63 | $parser->registerBlock("used_netherreactor", fn() => ExtraVanillaBlocks::NETHER_REACTOR_CORE()->setType(NetherReactorType::USED()));
64 | }
65 |
66 | private static function registerCraftingRecipes() : void{
67 | Server::getInstance()->getCraftingManager()->registerShapedRecipe(new ShapedRecipe(
68 | [
69 | "ABA",
70 | "ABA",
71 | "ABA"
72 | ],
73 | [
74 | "A" => new ExactRecipeIngredient(VanillaItems::IRON_INGOT()),
75 | "B" => new ExactRecipeIngredient(VanillaItems::DIAMOND())
76 | ],
77 | [ExtraVanillaBlocks::NETHER_REACTOR_CORE()->asItem()]
78 | ));
79 | }
80 | }
81 |
--------------------------------------------------------------------------------
/src/IvanCraft623/NetherReactor/block/ExtraBlockTypeIds.php:
--------------------------------------------------------------------------------
1 |
41 | */
42 | private static $members = null;
43 |
44 | protected static function setup() : void {
45 | self::register("nether_reactor_core");
46 | }
47 |
48 | private static function verifyName(string $name) : void{
49 | if(preg_match('/^(?!\d)[A-Za-z\d_]+$/u', $name) === 0){
50 | throw new \InvalidArgumentException("Invalid member name \"$name\", should only contain letters, numbers and underscores, and must not start with a number");
51 | }
52 | }
53 |
54 | /**
55 | * Adds the given typeId to the registry.
56 | *
57 | * @throws \InvalidArgumentException
58 | */
59 | private static function register(string $name) : void{
60 | self::verifyName($name);
61 | $upperName = mb_strtoupper($name);
62 | if(isset(self::$members[$upperName])){
63 | throw new \InvalidArgumentException("\"$upperName\" is already reserved");
64 | }
65 | self::$members[$upperName] = BlockTypeIds::newId();
66 | }
67 |
68 | /**
69 | * @internal Lazy-inits the enum if necessary.
70 | *
71 | * @throws \InvalidArgumentException
72 | */
73 | protected static function checkInit() : void{
74 | if(self::$members === null){
75 | self::$members = [];
76 | self::setup();
77 | }
78 | }
79 |
80 | /**
81 | * @throws \InvalidArgumentException
82 | */
83 | private static function _registryFromString(string $name) : int{
84 | self::checkInit();
85 | $upperName = mb_strtoupper($name);
86 | if(!isset(self::$members[$upperName])){
87 | throw new \InvalidArgumentException("No such registry member: " . self::class . "::" . $upperName);
88 | }
89 | return self::$members[$upperName];
90 | }
91 |
92 | /**
93 | * @param string $name
94 | * @param mixed[] $arguments
95 | * @phpstan-param list $arguments
96 | *
97 | * @return int
98 | */
99 | public static function __callStatic($name, $arguments){
100 | if(count($arguments) > 0){
101 | throw new \ArgumentCountError("Expected exactly 0 arguments, " . count($arguments) . " passed");
102 | }
103 | try{
104 | return self::_registryFromString($name);
105 | }catch(\InvalidArgumentException $e){
106 | throw new \Error($e->getMessage(), 0, $e);
107 | }
108 | }
109 | }
110 |
--------------------------------------------------------------------------------
/src/IvanCraft623/NetherReactor/block/ExtraVanillaBlocks.php:
--------------------------------------------------------------------------------
1 |
57 | */
58 | public static function getAll() : array{
59 | //phpstan doesn't support generic traits yet :(
60 | /** @var Block[] $result */
61 | $result = self::_registryGetAll();
62 | return $result;
63 | }
64 |
65 | protected static function setup() : void{
66 | self::register("nether_reactor_core", new NetherReactor(new BID(Ids::NETHER_REACTOR_CORE(), TileNetherReactor::class), "Nether Reactor Core", new Info(BreakInfo::pickaxe(3.0, ToolTier::WOOD()))));
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/src/IvanCraft623/NetherReactor/block/NetherReactor.php:
--------------------------------------------------------------------------------
1 | type = NetherReactorType::INACTIVE();
61 |
62 | parent::__construct($idInfo, $name, $typeInfo);
63 | }
64 |
65 | public function describeBlockItemState(RuntimeDataDescriber $describer) : void{
66 | if ($describer instanceof RuntimeDataReader) {
67 | $this->type = match($describer->readInt(2)){
68 | 0 => NetherReactorType::INACTIVE(),
69 | 1 => NetherReactorType::ACTIVE(),
70 | 2 => NetherReactorType::USED(),
71 | default => throw new InvalidSerializedRuntimeDataException("Invalid serialized value for NetherReactorType")
72 | };
73 | } elseif ($describer instanceof RuntimeDataWriter) {
74 | $describer->writeInt(2, match($this->type){
75 | NetherReactorType::INACTIVE() => 0,
76 | NetherReactorType::ACTIVE() => 1,
77 | NetherReactorType::USED() => 2,
78 | default => throw new AssumptionFailedError("All NetherReactorType cases should be covered")
79 | });
80 | } else {
81 | $unused = 0;
82 | $describer->int(2, $unused);
83 |
84 | if (!$describer instanceof RuntimeDataSizeCalculator) {
85 | Plugin::getInstance()->getLogger()->warning("Unhandled runtime data describer: " . get_class($describer));
86 | }
87 | }
88 | }
89 |
90 | public function getType() : NetherReactorType{
91 | return $this->type;
92 | }
93 |
94 | /** @return $this */
95 | public function setType(NetherReactorType $type) : self{
96 | $this->type = $type;
97 |
98 | return $this;
99 | }
100 |
101 | public function getDropsForCompatibleTool(Item $item) : array{
102 | return [$this->asItem()];
103 | }
104 |
105 | public function getBlockProperties() : array{
106 | return [
107 | new BlockProperty(self::NETHERREACTOR_STATE_NAME, array_map(function(NetherReactorType $type) : string {
108 | return $type->name();
109 | }, NetherReactorType::getAll())),
110 | ];
111 | }
112 |
113 | public function getPermutations() : array{
114 | $permutations = [];
115 | foreach (NetherReactorType::getAll() as $state) {
116 | $permutations[] = (
117 | new Permutation("query.block_property('" . self::NETHERREACTOR_STATE_NAME . "') == '" . $state->name() . "'")
118 | )
119 | ->withComponent("minecraft:material_instances", CompoundTag::create()
120 | ->setTag("mappings", CompoundTag::create())
121 | ->setTag("materials", CompoundTag::create()
122 | ->setTag("*", CompoundTag::create()
123 | ->setByte("ambient_occlusion", 1)
124 | ->setByte("face_dimming", 1)
125 | ->setString("render_method", "opaque")
126 | ->setString("texture", "nether_reactor_" . $state->name())
127 | )
128 | )
129 | )
130 | ->withComponent("minecraft:unit_cube", CompoundTag::create());
131 | }
132 |
133 | return $permutations;
134 | }
135 |
136 | public function getCurrentBlockProperties() : array {
137 | return [$this->type->name()];
138 | }
139 |
140 | public function serializeState(BlockStateWriter $blockStateOut) : void {
141 | $blockStateOut->writeString(self::NETHERREACTOR_STATE_NAME, $this->type->name());
142 | }
143 |
144 | public function deserializeState(BlockStateReader $blockStateIn) : void {
145 | $this->type = match($blockStateIn->readString(self::NETHERREACTOR_STATE_NAME)){
146 | "active" => NetherReactorType::ACTIVE(),
147 | "used" => NetherReactorType::USED(),
148 | default => NetherReactorType::INACTIVE()
149 | };
150 | }
151 |
152 | public function onInteract(Item $item, int $face, Vector3 $clickVector, ?Player $player = null, array &$returnedItems = []) : bool{
153 | if (!$this->type->equals(NetherReactorType::INACTIVE())) {
154 | //TODO: allow toggling this check off, in vanilla an inifinite nether reactor was able to be made
155 | //because they didn't check the reactor core state for reactor activation. :P
156 | return false;
157 | }
158 | if ($player === null || !$player->hasFiniteResources()) {
159 | return false;
160 | }
161 |
162 | if (!$player->hasPermission("netherreactor.core.activation")) {
163 | $player->sendMessage(KnownTranslationFactory::netherreactor_no_permission()->prefix(TextFormat::RED));
164 | return false;
165 | }
166 |
167 | $structure = NetherReactorStructure::getInstance();
168 | if (!$structure->isValidPattern($this->position)) {
169 | $player->sendMessage(KnownTranslationFactory::netherreactor_wrong_pattern()->prefix(TextFormat::GRAY));
170 | return false;
171 | }
172 |
173 | $world = $this->position->getWorld();
174 | if ($this->position->y + $structure->getMaxBoundY() >= $world->getMaxY()) {
175 | $player->sendMessage(KnownTranslationFactory::netherreactor_build_too_high()->prefix(TextFormat::GRAY));
176 | return false;
177 | }
178 | if ($this->position->y + $structure->getMinBoundY() < $world->getMinY()) {
179 | $player->sendMessage(KnownTranslationFactory::netherreactor_build_too_low()->prefix(TextFormat::GRAY));
180 | return false;
181 | }
182 |
183 | //TODO: player position check
184 |
185 | //Only if the nether reactor is inactive all the process is done.
186 | if (($tile = $world->getTile($this->position)) instanceof NRTile) {
187 | $tile->initialize();
188 | }
189 |
190 | NetherReactorStructure::getInstance()->build($this->position);
191 | $world->setBlock($this->position, $this->setType(NetherReactorType::ACTIVE()));
192 | $player->sendMessage(KnownTranslationFactory::netherreactor_active()->prefix(TextFormat::YELLOW));
193 |
194 | return true;
195 | }
196 |
197 | public function onScheduledUpdate() : void{
198 | $world = $this->position->getWorld();
199 | $netherreactor = $world->getTile($this->position);
200 | if($netherreactor instanceof NRTile && $netherreactor->onUpdate()){
201 | $world->scheduleDelayedBlockUpdate($this->position, 1);
202 | }
203 | }
204 | }
205 |
--------------------------------------------------------------------------------
/src/IvanCraft623/NetherReactor/block/NetherReactorType.php:
--------------------------------------------------------------------------------
1 | initialized;
55 | }
56 |
57 | /** @return $this */
58 | public function setInitialized(bool $initialized) : self{
59 | $this->initialized = $initialized;
60 |
61 | return $this;
62 | }
63 |
64 | public function isFinished() : bool{
65 | return $this->finished;
66 | }
67 |
68 | /** @return $this */
69 | public function setFinished(bool $finished) : self{
70 | $this->finished = $finished;
71 |
72 | return $this;
73 | }
74 |
75 | public function isRunning() : bool{
76 | return $this->initialized && !$this->finished;
77 | }
78 |
79 | public function getRoomBoundingBox() : AxisAlignedBB{
80 | if (!isset($this->roomBB)) {
81 | $structure = NetherReactorStructure::getInstance();
82 | $min = $structure->getMinRoomPosition();
83 | $max = $structure->getMaxRoomPosition();
84 | $this->roomBB = new AxisAlignedBB(
85 | $min->x + $this->position->x,
86 | $min->y + $this->position->y,
87 | $min->z + $this->position->z,
88 | $max->x + $this->position->x,
89 | $max->y + $this->position->y,
90 | $max->z + $this->position->z
91 | );
92 | }
93 | return $this->roomBB;
94 | }
95 |
96 | public function readSaveData(CompoundTag $nbt) : void{
97 | $this->initialized = $nbt->getByte(self::TAG_INITIALIZED, 0) !== 0;
98 | $this->finished = $nbt->getByte(self::TAG_FINISHED, 0) !== 0;
99 | $this->progress = $nbt->getShort(self::TAG_PROGRESS, 0);
100 |
101 | if ($this->isRunning()) {
102 | $this->position->getWorld()->scheduleDelayedBlockUpdate($this->position, 1);
103 | }
104 | }
105 |
106 | protected function writeSaveData(CompoundTag $nbt) : void{
107 | $nbt->setByte(self::TAG_INITIALIZED, $this->initialized ? 1 : 0);
108 | $nbt->setByte(self::TAG_FINISHED, $this->finished ? 1 : 0);
109 | $nbt->getShort(self::TAG_PROGRESS, Binary::signShort($this->progress));
110 | }
111 |
112 | public function initialize() : void{
113 | $this->initialized = true;
114 | $this->turnedNight = false;
115 |
116 | $this->position->getWorld()->scheduleDelayedBlockUpdate($this->position, 1);
117 | }
118 |
119 | public function finish() : void{
120 | $this->finished = true;
121 |
122 | $this->position->getWorld()->setBlock($this->position, ExtraVanillaBlocks::NETHER_REACTOR_CORE()->setType(NetherReactorType::USED()));
123 | NetherReactorStructure::getInstance()->corruptSpire($this->position);
124 | }
125 |
126 | public function onUpdate() : bool{
127 | $hasUpdate = false;
128 | if ($this->isRunning()) {
129 | //Advance time until is night
130 | if (!$this->turnedNight) {
131 | $world = $this->position->getWorld();
132 | $time = $world->getTimeOfDay();
133 |
134 | $timeAddition = self::TIME_STEP_PER_TICK;
135 | if ($time < self::TIME_NIGHT && ($diff = (self::TIME_NIGHT - $time)) < $timeAddition) {
136 | $timeAddition = $diff;
137 | $this->turnedNight = true;
138 | }
139 |
140 | $world->setTime($world->getTime() + $timeAddition);
141 | }
142 |
143 | $structure = NetherReactorStructure::getInstance();
144 |
145 | foreach ($structure->getPatternLayers() as $layer) {
146 | foreach ($layer->getTransformations() as $transform) {
147 | if ($transform->getTick() === $this->progress) {
148 | $layer->transform($this->position, $transform);
149 | }
150 | }
151 | }
152 |
153 | foreach ($structure->getRounds() as $round) {
154 | if ($round->canStart($this->progress)) {
155 | $round->start($this->getPosition(), $this->getRoomBoundingBox());
156 | }
157 | }
158 |
159 | if ($this->progress >= self::NETHER_REACTOR_DURATION) {
160 | $this->finish();
161 | }
162 |
163 | $this->progress++;
164 | $hasUpdate = true;
165 | }
166 | return $hasUpdate;
167 | }
168 | }
169 |
--------------------------------------------------------------------------------
/src/IvanCraft623/NetherReactor/entity/ExtraEntityRegisterHelper.php:
--------------------------------------------------------------------------------
1 | registerEntity(Pigman::class, "netherreactor:zombie_pigman");
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/IvanCraft623/NetherReactor/entity/Pigman.php:
--------------------------------------------------------------------------------
1 | isBaby;
69 | }
70 |
71 | public function setBaby(bool $value = true) : void{
72 | if ($value !== $this->isBaby) {
73 | $this->setScale($value ? $this->getBabyScale() : 1);
74 |
75 | $this->isBaby = $value;
76 | $this->networkPropertiesDirty = true;
77 | }
78 | }
79 |
80 | public function getBabyScale() : float{
81 | return 0.5;
82 | }
83 |
84 | public function isFireProof() : bool{
85 | return true;
86 | }
87 |
88 | public function getDefaultMovementSpeed() : float{
89 | return 0.23;
90 | }
91 |
92 | protected function registerGoals() : void{
93 | $this->goalSelector->addGoal(1, new FloatGoal($this));
94 | $this->goalSelector->addGoal(2, new MeleeAttackGoal($this, 1, false));
95 | $this->goalSelector->addGoal(3, new WaterAvoidingRandomStrollGoal($this, 1));
96 | $this->goalSelector->addGoal(7, new LookAtEntityGoal($this, Player::class, 8));
97 | $this->goalSelector->addGoal(8, new RandomLookAroundGoal($this));
98 |
99 | $this->targetSelector->addGoal(1, (new HurtByTargetGoal($this))->setAlertOthers());
100 | }
101 |
102 | protected function initProperties() : void{
103 | parent::initProperties();
104 |
105 | $this->setMaxHealth(20);
106 | $this->setAttackDamage(5);
107 | }
108 |
109 | protected function initEntity(CompoundTag $nbt) : void{
110 | parent::initEntity($nbt);
111 |
112 | $isBabyByte = $nbt->getByte(self::TAG_IS_BABY, -1);
113 | if ($isBabyByte === 1 || ($isBabyByte === -1 && AgeableMob::getRandomStartAge() !== AgeableMob::ADULT_AGE)) {
114 | $this->setBaby();
115 | }
116 | }
117 |
118 | public function saveNBT() : CompoundTag{
119 | $nbt = parent::saveNBT();
120 |
121 | $nbt->setByte(self::TAG_IS_BABY, $this->isBaby ? 1 : 0);
122 |
123 | return $nbt;
124 | }
125 |
126 | protected function syncNetworkData(EntityMetadataCollection $properties) : void{
127 | parent::syncNetworkData($properties);
128 | $properties->setGenericFlag(EntityMetadataFlags::BABY, $this->isBaby);
129 | }
130 |
131 | public function getXpDropAmount() : int{
132 | if ($this->hasBeenDamagedByPlayer()) {
133 | return ($this->isBaby ? 12 : 5) + (count($this->armorInventory->getContents()) * mt_rand(1, 3));
134 | }
135 |
136 | return 0;
137 | }
138 |
139 | public function generateEquipment() : void{
140 | $this->inventory->setItemInHand(VanillaItems::GOLDEN_SWORD()); //TODO: random enchantments
141 | }
142 |
143 | public function getDrops() : array {
144 | $drops = $this->getEquipmentDrops();
145 |
146 | //TODO: looting enchantment probability increase :P
147 | $drops[] = VanillaItems::ROTTEN_FLESH()->setCount(mt_rand(0, 1));
148 | $drops[] = VanillaItems::GOLD_NUGGET()->setCount(mt_rand(0, 1));
149 |
150 | //TODO: Each looting enchantment level should increse by 10(0.01%) this value
151 | $dropGoldIngotChance = 25; // 0.025%
152 | if (mt_rand(0, 1000) <= $dropGoldIngotChance) {
153 | $drops[] = VanillaItems::GOLD_INGOT();
154 | }
155 |
156 | return $drops;
157 | }
158 | }
159 |
--------------------------------------------------------------------------------
/src/IvanCraft623/NetherReactor/lang/KnownTranslationFactory.php:
--------------------------------------------------------------------------------
1 | VanillaBlocks::CACTUS()->asItem(),
61 | 2 => VanillaBlocks::BROWN_MUSHROOM()->asItem(),
62 | 3 => VanillaBlocks::RED_MUSHROOM()->asItem(),
63 | 4 => VanillaBlocks::SUGARCANE()->asItem(),
64 | 5 => VanillaItems::MELON_SEEDS(),
65 | 6 => VanillaItems::PUMPKIN_SEEDS()
66 | };
67 | } elseif ($probability <= 35) { //22% probability
68 | return VanillaItems::GLOWSTONE_DUST();
69 | }
70 |
71 | //30% probability
72 | return VanillaItems::NETHER_QUARTZ();
73 | }
74 |
75 | public static function getRandomPosition(Vector3 $center, ?int $radius = null) : Vector3{
76 | $radius = $radius ?? self::getRandomRadius();
77 | $randomDegree = deg2rad(lcg_value() * 360);
78 | return new Vector3(
79 | $center->x + floor($radius * cos($randomDegree)) + 0.5,
80 | $center->y,
81 | $center->z + floor($radius * sin($randomDegree)) + 0.5,
82 | );
83 | }
84 |
85 | public static function getRandomRadius() : int{
86 | return mt_rand(
87 | 3, //Pattern radius, maybe we shouldn't be hardcoding it
88 | abs((int) NetherReactorStructure::getInstance()->getMaxRoomPosition()->x) //Room radius
89 | );
90 | }
91 |
92 | public function __construct(
93 | private int $tick,
94 | private int $minLootAmount,
95 | private int $maxLootAmount,
96 | private bool $spawnPigmen = false
97 | ) {
98 | if ($tick < 1) {
99 | throw new \InvalidArgumentException("Round tick cannot be less than 1");
100 | }
101 | if ($minLootAmount > $maxLootAmount) {
102 | throw new \InvalidArgumentException("Min loot amount is greater than max loot amound");
103 | }
104 | }
105 |
106 | public function getTick() : int{
107 | return $this->tick;
108 | }
109 |
110 | public function getMinLootAmount() : int{
111 | return $this->minLootAmount;
112 | }
113 |
114 | public function getMaxLootAmount() : int{
115 | return $this->maxLootAmount;
116 | }
117 |
118 | public function willSpawnPigmen() : bool{
119 | return $this->spawnPigmen;
120 | }
121 |
122 | public function canStart(int $currentTick) : bool{
123 | return $this->tick === $currentTick;
124 | }
125 |
126 | public function start(Position $position, AxisAlignedBB $roomBB) : void{
127 | $world = $position->getWorld();
128 | $itemSpawnAmount = mt_rand($this->minLootAmount, $this->maxLootAmount);
129 |
130 | $center = $position->withComponents(null, $roomBB->minY, null);
131 | for ($i = 0; $i < $itemSpawnAmount; $i++) {
132 | $itemEntity = $world->dropItem(self::getRandomPosition($center), self::getRandomLoot());
133 | if ($itemEntity !== null) {
134 | $itemEntity->setDespawnDelay(self::LOOT_DESPAWN_DELAY);
135 | }
136 | }
137 |
138 | if ($this->spawnPigmen) {
139 | $this->tryToSpawnPigmen($position, $roomBB);
140 | }
141 | }
142 |
143 | public function tryToSpawnPigmen(Position $position, AxisAlignedBB $roomBB) : void{
144 | if (!Main::isMobPluginDetected()) {
145 | return;
146 | }
147 |
148 | $world = $position->getWorld();
149 | if ($world->getDifficulty() === World::DIFFICULTY_PEACEFUL) {
150 | return;
151 | }
152 |
153 | $pigmenCount = 0;
154 | foreach ($world->getNearbyEntities($roomBB) as $entity) {
155 | if ($entity instanceof Pigman && ++$pigmenCount >= self::MAX_PIGMEN_COUNT) {
156 | return;
157 | }
158 | }
159 |
160 | $pigmenToSpawn = min(self::MAX_PIGMEN_SPAWN_PER_ROUND, self::MAX_PIGMEN_COUNT - $pigmenCount);
161 |
162 | $center = $position->withComponents(null, $roomBB->minY, null);
163 | for ($i = 0; $i < $pigmenToSpawn; $i++) {
164 | $entity = new Pigman(Location::fromObject(self::getRandomPosition($center), $world, lcg_value() * 360, 0));
165 | $entity->spawnToAll();
166 |
167 | break;
168 | }
169 | }
170 | }
171 |
--------------------------------------------------------------------------------
/src/IvanCraft623/NetherReactor/structure/NetherReactorStructure.php:
--------------------------------------------------------------------------------
1 | saveResource($spireFileName);
86 | $plugin->saveResource($patternFileName);
87 | $plugin->saveResource("structure" . DIRECTORY_SEPARATOR . "structure_config.yml");
88 |
89 | if (($spireContent = file_get_contents($plugin->getDataFolder() . $spireFileName)) === false ||
90 | !is_array($spirePositions = json_decode($spireContent, true, JSON_THROW_ON_ERROR))) {
91 | throw new AssumptionFailedError("Invalid pattern file");
92 | }
93 | foreach ($spirePositions as $pos) {
94 | $this->spireBlocks[] = $this->getVector3($pos);
95 | }
96 |
97 | if (($patternContent = file_get_contents($plugin->getDataFolder() . $patternFileName)) === false ||
98 | !is_array($patternLayers = json_decode($patternContent, true, JSON_THROW_ON_ERROR))) {
99 | throw new AssumptionFailedError("Invalid pattern file");
100 | }
101 | foreach ($patternLayers as $layer) {
102 | $layerBlocks = [];
103 | foreach ($layer["blocks"] as $posData) {
104 | $pos = $this->getVector3($posData);
105 | $layerBlocks[World::blockHash((int) $pos->x, (int) $pos->y, (int) $pos->z)] = $pos;
106 | }
107 |
108 | $transformations = [];
109 |
110 | $transformData = $layer["transformations"] ?? [];
111 | foreach ($transformData as $tData) {
112 | $transformations[] = new PatternLayerTransformation($this->getMaterial($tData["material"]), (int) $tData["tick"]);
113 | }
114 |
115 | $this->patternLayers[] = new PatternLayer(
116 | $this->getMaterial($layer["material"]),
117 | $layerBlocks,
118 | $transformations
119 | );
120 | }
121 |
122 | $config = new Config($plugin->getDataFolder() . "structure" . DIRECTORY_SEPARATOR . "structure_config.yml", Config::YAML);
123 |
124 | $this->maxY = $this->getInt($config->getNested("bounds.maxY", self::DEFAULT_MAX_BOUND_Y));
125 | $this->minY = $this->getInt($config->getNested("bounds.minY", self::DEFAULT_MIN_BOUND_Y));
126 |
127 | $spireMaterial = $config->getNested("nether_reactor_spire_material", "netherrack");
128 | if (!is_string($spireMaterial)) {
129 | throw new AssumptionFailedError("Nether reactor spire matherial should be a block name");
130 | }
131 | $this->spireMaterial = $this->getMaterial($spireMaterial);
132 |
133 | $platformsData = $config->get("platforms", []);
134 | if (!is_array($platformsData)) {
135 | throw new AssumptionFailedError("Invalid structure platforms data");
136 | }
137 | foreach ($platformsData as $pData) {
138 | $this->platforms[] = new Platform(
139 | $this->getVector3($pData["from"]),
140 | $this->getVector3($pData["to"]),
141 | $this->getMaterial($pData["material"])
142 | );
143 | }
144 |
145 | $roomX1 = $this->getInt($config->getNested("room.from.x"));
146 | $roomY1 = $this->getInt($config->getNested("room.from.y"));
147 | $roomZ1 = $this->getInt($config->getNested("room.from.z"));
148 |
149 | $roomX2 = $this->getInt($config->getNested("room.to.x"));
150 | $roomY2 = $this->getInt($config->getNested("room.to.y"));
151 | $roomZ2 = $this->getInt($config->getNested("room.to.z"));
152 |
153 | $this->minRoomPosition = new Vector3(min($roomX1, $roomX2), min($roomY1, $roomY2), min($roomZ1, $roomZ2));
154 | $this->maxRoomPosition = new Vector3(max($roomX1, $roomX2), max($roomY1, $roomY2), max($roomZ1, $roomZ2));
155 | }
156 |
157 | public function getVector3(array $data) : Vector3{
158 | return new Vector3(
159 | (int) ($data["x"] ?? throw new AssumptionFailedError("Expected \"x\" on position entry")),
160 | (int) ($data["y"] ?? throw new AssumptionFailedError("Expected \"y\" on position entry")),
161 | (int) ($data["z"] ?? throw new AssumptionFailedError("Expected \"z\" on position entry"))
162 | );
163 | }
164 |
165 | private function getMaterial(string $input) : Block{
166 | return StringToItemParser::getInstance()->parse($input)?->getBlock() ?? throw new AssumptionFailedError("Invalid structure config material input");
167 | }
168 |
169 | private function getInt(mixed $input) : int{
170 | if (!is_float($input) && !is_int($input)) {
171 | throw new AssumptionFailedError("Structire config input is not int");
172 | }
173 |
174 | return (int) $input;
175 | }
176 |
177 | /**
178 | * @return NetherReactorRound[]
179 | */
180 | public function getRounds() : array{
181 | if (!isset($this->rounds)) {
182 | //TODO: not sure about loot amount values, but seem to be at least close to vanilla :P
183 | $this->rounds = [
184 | new NetherReactorRound(tick: 200, minLootAmount: 20, maxLootAmount: 20, spawnPigmen: true),
185 | new NetherReactorRound(tick: 260, minLootAmount: 20, maxLootAmount: 20, spawnPigmen: true),
186 | new NetherReactorRound(tick: 400, minLootAmount: 20, maxLootAmount: 20, spawnPigmen: true),
187 | new NetherReactorRound(tick: 440, minLootAmount: 16, maxLootAmount: 28),
188 | new NetherReactorRound(tick: 500, minLootAmount: 0, maxLootAmount: 16, spawnPigmen: true),
189 | new NetherReactorRound(tick: 600, minLootAmount: 24, maxLootAmount: 48),
190 | new NetherReactorRound(tick: 680, minLootAmount: 24, maxLootAmount: 48),
191 | new NetherReactorRound(tick: 720, minLootAmount: 1, maxLootAmount: 48),
192 | new NetherReactorRound(tick: 760, minLootAmount: 1, maxLootAmount: 48),
193 | new NetherReactorRound(tick: 800, minLootAmount: 1, maxLootAmount: 48)
194 | ];
195 | }
196 |
197 | return $this->rounds;
198 | }
199 |
200 | public function getMinRoomPosition() : Vector3{
201 | return $this->minRoomPosition;
202 | }
203 |
204 | public function getMaxRoomPosition() : Vector3{
205 | return $this->maxRoomPosition;
206 | }
207 |
208 | public function getMaxBoundY() : int{
209 | return $this->maxY;
210 | }
211 |
212 | public function getMinBoundY() : int{
213 | return $this->minY;
214 | }
215 |
216 | /**
217 | * @return PatternLayer[]
218 | */
219 | public function getPatternLayers() : array{
220 | return $this->patternLayers;
221 | }
222 |
223 | public function isValidPattern(Position $corePosition) : bool{
224 | foreach ($this->patternLayers as $layer) {
225 | if (!$layer->isValid($corePosition)) {
226 | return false;
227 | }
228 | }
229 |
230 | return true;
231 | }
232 |
233 | /**
234 | * @return Vector3[]
235 | */
236 | public function getSpireBlocks() : array{
237 | return $this->spireBlocks;
238 | }
239 |
240 | public function getSpireMaterial() : Block{
241 | return $this->spireMaterial;
242 | }
243 |
244 | public function build(Position $corePosition) : void{
245 | $world = $corePosition->getWorld();
246 |
247 | // Generate spire
248 | foreach ($this->spireBlocks as $pos) {
249 | $world->setBlock($corePosition->addVector($pos), $this->spireMaterial);
250 | }
251 |
252 | // Generate platforms
253 | foreach ($this->platforms as $platform) {
254 | $platform->build($corePosition);
255 | }
256 |
257 | // Clear room
258 | $ignoredBlocks = [
259 | World::blockHash(0, 0, 0) => true //Core relative posision
260 | ];
261 | foreach ($this->patternLayers as $layer) {
262 | $ignoredBlocks = $ignoredBlocks + $layer->getBlocks();
263 | }
264 |
265 | for ($relX = $this->minRoomPosition->x; $relX <= $this->maxRoomPosition->x; ++$relX) {
266 | /** @var int $relX */
267 | for ($relZ = $this->minRoomPosition->z; $relZ <= $this->maxRoomPosition->z; ++$relZ) {
268 | /** @var int $relZ */
269 | for ($relY = $this->minRoomPosition->y; $relY <= $this->maxRoomPosition->y; ++$relY) {
270 | /** @var int $relY */
271 | if (isset($ignoredBlocks[World::blockHash($relX, $relY, $relZ)])) {
272 | continue;
273 | }
274 | $world->setBlock($corePosition->add($relX, $relY, $relZ), VanillaBlocks::AIR());
275 | }
276 | }
277 | }
278 | }
279 |
280 | public function corruptSpire(Position $corePosition) : void{
281 | $blocksCount = count($this->spireBlocks);
282 | $amount = mt_rand(intdiv($blocksCount, 5), intdiv($blocksCount, 4));
283 |
284 | if ($amount > 1) {
285 | $world = $corePosition->getWorld();
286 |
287 | /** @var array $$randomBlocks */
288 | $randomBlocks = array_rand($this->spireBlocks, $amount);
289 | foreach ($randomBlocks as $randomKey) {
290 | $world->setBlock($corePosition->addVector($this->spireBlocks[$randomKey]), VanillaBlocks::AIR());
291 | }
292 | }
293 | }
294 | }
295 |
--------------------------------------------------------------------------------
/src/IvanCraft623/NetherReactor/structure/PatternLayer.php:
--------------------------------------------------------------------------------
1 | $blocks
43 | */
44 | public function __construct(
45 | private Block $material,
46 | private array $blocks,
47 | private array $transformations = []
48 | ) {
49 | $this->materialItem = $material->asItem();
50 | }
51 |
52 | public function getMaterial() : Block{
53 | return $this->material;
54 | }
55 |
56 | /**
57 | * @return Vector3[]
58 | * @phpstan-return array
59 | */
60 | public function getBlocks() : array{
61 | return $this->blocks;
62 | }
63 |
64 | /**
65 | * @return PatternLayerTransformation[]
66 | */
67 | public function getTransformations() : array{
68 | return $this->transformations;
69 | }
70 |
71 | public function isValid(Position $corePosition) : bool{
72 | $world = $corePosition->getWorld();
73 | foreach ($this->blocks as $pos) {
74 | //TODO: this is a hack for only compare item state
75 | if (!$world->getBlock($corePosition->addVector($pos))->asItem()->equalsExact($this->materialItem)) {
76 | return false;
77 | }
78 | }
79 |
80 | return true;
81 | }
82 |
83 | public function transform(Position $corePosition, PatternLayerTransformation $transformation) : void{
84 | $world = $corePosition->getWorld();
85 | foreach ($this->blocks as $pos) {
86 | $world->setBlock($corePosition->addVector($pos), $transformation->getMaterial());
87 | }
88 | }
89 | }
90 |
--------------------------------------------------------------------------------
/src/IvanCraft623/NetherReactor/structure/PatternLayerTransformation.php:
--------------------------------------------------------------------------------
1 | material;
37 | }
38 |
39 | public function getTick() : int{
40 | return $this->tick;
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/src/IvanCraft623/NetherReactor/structure/Platform.php:
--------------------------------------------------------------------------------
1 | getWorld();
43 |
44 | $minX = min($this->from->x, $this->to->x);
45 | $minY = max($world->getMinY(), min($this->from->y, $this->to->y));
46 | $minZ = min($this->from->z, $this->to->z);
47 |
48 | $maxX = max($this->from->x, $this->to->x);
49 | $maxY = min($world->getMaxY(), max($this->from->y, $this->to->y));
50 | $maxZ = max($this->from->z, $this->to->z);
51 |
52 | for ($x = $minX; $x <= $maxX; ++$x) {
53 | for ($z = $minZ; $z <= $maxZ; ++$z) {
54 | $world->loadChunk($x >> Chunk::COORD_BIT_SIZE, $z >> Chunk::COORD_BIT_SIZE);
55 | for ($y = $minY; $y <= $maxY; ++$y) {
56 | $world->setBlock($corePosition->add($x, $y, $z), $this->material);
57 | }
58 | }
59 | }
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------