diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f3b4983..97df077 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,21 +2,34 @@ name: build on: push: - tags: '*' + tags: + - '*' + +env: + OUTPUT_FILE: ${{ github.event.repository.name }}_v${{ github.ref_name }}.phar jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Build plugin - run: | - curl -sLo .php https://raw.githubusercontent.com/pmmp/DevTools/master/src/ConsoleScript.php - php -dphar.readonly=0 .php --make ./ --out ${{ github.event.repository.name }}.phar + run: curl -sL https://raw.githubusercontent.com/pmmp/DevTools/1.16.0/src/ConsoleScript.php | php -dphar.readonly=0 -- --make ./ --out $OUTPUT_FILE + + - name: Infect virions + run: php -dphar.readonly=0 -r ' + file_put_contents("virion.php", file_get_contents("https://gist.githubusercontent.com/Nerahikada/a1fbb18c6fe4b2e10bb7baa7de9d0710/raw/virion.php")); + $data = yaml_parse_file(".poggit.yml") ?:["projects" => [[]]]; + foreach(reset($data["projects"])["libs"] ?? [] as $lib){ + file_put_contents("virion.phar", file_get_contents("https://poggit.pmmp.io/v.dl/{$lib["src"]}/" . ($lib["version"] ?? "*"))); + (new Phar("virion.phar"))->addFile("virion.php", "virion.php"); + system("php -dphar.readonly=0 virion.phar ${{ env.OUTPUT_FILE }}"); + }' - uses: softprops/action-gh-release@v0.1.14 with: - files: ${{ github.event.repository.name }}.phar + name: ${{ github.event.repository.name }} ${{ github.ref_name }} + generate_release_notes: true + files: ${{ env.OUTPUT_FILE }} diff --git a/.gitignore b/.gitignore index 469c96d..9b9c8d8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,10 @@ *.phar -resources/recipes # IDEs .idea/ nbproject/ +.vscode/** +!.vscode/settings.json # Windows Thumbs.db diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..0eb223d --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,22 @@ +{ + "editor.detectIndentation": false, // インデント構成の検知を無効化 + "editor.insertSpaces": false, // タブを使用する + "intelephense.environment.phpVersion": "8.0.21", // PMMPのバージョンに合わせる + "editor.tabCompletion": "on", + "emmet.excludeLanguages": [ // HTMLやcssが書きやすくなる拡張機能らしいですが、pmmpの場合はほぼ使わないので無効化(勝手に展開されて邪魔) + "markdown", + "php" + ], + "files.insertFinalNewline": true, // .editerconfig の仕様に合わせる + "[yaml]": { + "editor.insertSpaces": true, + "editor.tabSize": 2 + }, + "[json]": { + "editor.insertSpaces": true, + "editor.tabSize": 4 + }, + "[php]": { + "editor.tabSize": 4 + } +} diff --git a/README.md b/README.md index caae2c2..13b0316 100644 --- a/README.md +++ b/README.md @@ -6,218 +6,185 @@ PocketMine-MP本体を変更しないのが原則なので(悪い意味で)素 ## 追加された機能のリスト - [x] 水バケツを使用した際にクライアントに水が残ってしまうバグを修正 - [x] 火打石と打ち金で火を付けられる場所を制限 -- [x] 空のボトルで水を汲めるように - [x] 額縁にアイテムが正常に反映されないバグを修正 -- [x] [インベントリが満タンの時にバケツを使うとアイテムが消えるバグ](https://github.com/pmmp/PocketMine-MP/issues/4868)を修正 ### [ワイルド・アップデート (1.19)](https://minecraft.fandom.com/wiki/The_Wild_Update) - [x] フロッグライト - [x] カエルの卵 - [x] マングローブの葉 - [x] マングローブの芽 -- [x] マングローブの原木 - - [x] 樹皮を剥いだマングローブの原木 - - [x] マングローブの木 - - [x] 樹皮を剥いだマングローブの木 -- [x] マングローブの板材 - - [x] マングローブのボート - - [x] マングローブのボタン - - [ ] マングローブのドア (たぶん無理) - - [x] マングローブのフェンス - - [x] マングローブのフェンスゲート - - [x] マングローブの感圧版 - - [ ] マングローブの看板 (たぶん無理) - - [x] マングローブのハーフブロック (ダブルハーフブロック) - - [x] マングローブの階段 - - [x] マングローブのトラップドア +- [x] マングローブのボート - [x] マングローブの根 - [x] 泥だらけのマングローブの根 - [x] 泥 - [x] 固めた泥 -- [x] 泥レンガ - - [x] 泥レンガのハーフブロック (ダブルハーフブロック) - - [x] 泥レンガの階段 - - [x] 泥レンガの塀 - [x] 強化された深層岩 - [x] スカルク - [x] スカルクカタリスト - [x] スカルクセンサー - [x] スカルクシュリーカー - [ ] スカルクヴェイン (ツタ系: たぶん無理) -- [x] 残響の欠片 - [x] ヤギの角笛 - [x] リカバリーコンパス -- [x] レコードの破片 - - [x] レコード「5」 +- [x] レコード「5」 ### [洞窟と崖:パート II (1.18)](https://minecraft.fandom.com/wiki/Bedrock_Edition_1.18.0) - [x] 胞子の花 ### [洞窟と崖 (1.17)](https://minecraft.fandom.com/wiki/Caves_%26_Cliffs) -- [x] 鉄の原石 / 金の原石 - - [x] 鉱石ブロックのドロップ変更 -- [x] 鉄の原石ブロック / 金の原石ブロック -- [x] 輝くイカスミ +- [x] ~~輝くイカスミ~~ - [x] 光る看板 -- [x] アメジストの欠片 -- [x] アメジストブロック - [x] 芽生えたアメジスト - [x] アメジストの芽 / アメジストの塊 -- [x] 深層岩 - - [x] 模様入りの深層岩 - [x] 虫食い深層岩 -- [x] 磨かれた深層岩 - - [x] 磨かれた深層岩のハーフブロック(ダブルブロック) - - [x] 磨かれた深層岩の塀 - - [x] 磨かれた深層岩の階段 -- [x] 深層岩の丸石 - - [x] 深層岩の丸石のハーフブロック(ダブルブロック) - - [x] 深層岩の丸石の塀 - - [x] 深層岩の丸石の階段 -- [x] 深層岩レンガ - - [x] 深層岩レンガのハーフブロック(ダブルブロック) - - [x] 深層岩レンガの塀 - - [x] 深層岩レンガの階段 - - [x] ひび割れた深層岩レンガ -- [x] 深層岩タイル - - [x] 深層岩タイルのハーフブロック(ダブルブロック) - - [x] 深層岩タイルの塀 - - [x] 深層岩タイルの階段 - - [x] ひび割れた深層岩タイル -- [x] 深層鉱石 - - [x] 深層石炭鉱石 - - [x] 深層銅鉱石 - - [x] 深層鉄鉱石 - - [x] 深層ラピスラズリ鉱石 - - [x] 深層金鉱石 - - [x] 深層レッドストーン鉱石 - - [x] 光る深層レッドストーン鉱石 - - [x] 深層ダイヤモンド鉱石 - - [x] 深層エメラルド鉱石 -- [x] 方解石 -- [x] 凝灰岩 -- [x] 遮光ガラス -- [x] 銅鉱石 - - [x] 銅の原石 - - [x] 銅インゴット - - [x] 銅の原石ブロック -- [x] 銅ブロック - - [x] 銅の階段 - - [x] 切り込み入りの銅ブロック - - [x] 銅のハーフブロック(ダブルブロック) -- [x] 風化した銅 - - [x] 風化した切り込み入りの銅 - - [x] 風化した切り込み入りの銅の階段 - - [x] 風化した切り込み入りの銅のハーフブロック(ダブルブロック) -- [x] 錆びた銅 - - [x] 錆びた切り込み入りの銅 - - [x] 錆びた切り込み入りの銅の階段 - - [x] 錆びた切り込み入りの銅のハーフブロック(ダブルブロック) -- [x] 酸化した銅 - - [x] 酸化した切り込み入りの銅 - - [x] 酸化した切り込み入りの階段 - - [x] 酸化した切り込み入りのハーフブロック(ダブルブロック) +- [x] ~~深層岩の丸石~~ + - [x] ~~深層岩の丸石のハーフブロック(ダブルブロック)~~ + - [x] ~~深層岩の丸石の塀~~ + - [x] ~~深層岩の丸石の階段~~ +- [x] ~~深層岩レンガ~~ + - [x] ~~深層岩レンガのハーフブロック(ダブルブロック)~~ + - [x] ~~深層岩レンガの塀~~ + - [x] ~~深層岩レンガの階段~~ + - [x] ~~ひび割れた深層岩レンガ~~ +- [x] ~~深層岩タイル~~ + - [x] ~~深層岩タイルのハーフブロック(ダブルブロック)~~ + - [x] ~~深層岩タイルの塀~~ + - [x] ~~深層岩タイルの階段~~ + - [x] ~~ひび割れた深層岩タイル~~ +- [x] ~~深層鉱石~~ + - [x] ~~深層石炭鉱石~~ + - [x] ~~深層銅鉱石~~ + - [x] ~~深層鉄鉱石~~ + - [x] ~~深層ラピスラズリ鉱石~~ + - [x] ~~深層金鉱石~~ + - [x] ~~深層レッドストーン鉱石~~ + - [x] ~~光る深層レッドストーン鉱石~~ + - [x] ~~深層ダイヤモンド鉱石~~ + - [x] ~~深層エメラルド鉱石~~ +- [x] ~~方解石~~ +- [x] ~~凝灰岩~~ +- [x] ~~遮光ガラス~~ +- [x] ~~銅鉱石~~ + - [x] ~~銅の原石~~ + - [x] ~~銅インゴット~~ + - [x] ~~銅の原石ブロック~~ +- [x] ~~銅ブロック~~ + - [x] ~~銅の階段~~ + - [x] ~~切り込み入りの銅ブロック~~ + - [x] ~~銅のハーフブロック(ダブルブロック)~~ +- [x] ~~風化した銅~~ + - [x] ~~風化した切り込み入りの銅~~ + - [x] ~~風化した切り込み入りの銅の階段~~ + - [x] ~~風化した切り込み入りの銅のハーフブロック(ダブルブロック)~~ +- [x] ~~錆びた銅~~ + - [x] ~~錆びた切り込み入りの銅~~ + - [x] ~~錆びた切り込み入りの銅の階段~~ + - [x] ~~錆びた切り込み入りの銅のハーフブロック(ダブルブロック)~~ +- [x] ~~酸化した銅~~ + - [x] ~~酸化した切り込み入りの銅~~ + - [x] ~~酸化した切り込み入りの階段~~ + - [x] ~~酸化した切り込み入りのハーフブロック(ダブルブロック)~~ - [x] 開花したツツジの葉 - [x] 開花したツツジ - [x] ツツジの葉 - [x] ツツジ -- [x] 望遠鏡 +- [x] ~~望遠鏡~~ - [ ] 鍾乳石 - [x] 鍾乳石ブロック - [x] 苔のカーペット - [x] 苔ブロック - [x] 根付いた土 -- [x] 垂れ根 +- [x] ~~垂れ根~~ - [ ] 大きなドリップリーフ - [ ] 小さなドリップリーフ - [ ] ヒカリゴケ (metaが多すぎて無理) ### [ネザーアップデート (1.16)](https://minecraft.fandom.com/wiki/Nether_Update) -- [x] 魂の炎 -- [x] 魂の松明 -- [x] 魂のランタン +- [x] ~~魂の炎~~ +- [x] ~~魂の松明~~ +- [x] ~~魂のランタン~~ - [x] 魂の焚き火 - [x] 真紅のキノコ / 歪んだキノコ -- [x] 真紅の幹 / 歪んだ幹 - - [x] 表皮を剥いだ幹 -- [x] 真紅の菌糸 / 歪んだ菌糸 - - [x] 樹皮を剥いだ菌糸 -- [x] 真紅の板材 / 歪んだ板材 - - [x] フェンス / フェンスゲート - - [x] 階段 - - [ ] ドア (実装は無理ではないがめんどくさいor難しい) - - [x] トラップドア - - [x] ハーフブロック (ダブルハーフブロック) - - [ ] 看板 (実装は無理ではないがめんどくさいor難しい) - - [x] ボタン - - [x] 感圧版 -- [x] 歪んだウォートブロック -- [x] シュルームライト +- [x] ~~真紅の幹~~ / ~~歪んだ幹~~ + - [x] ~~表皮を剥いだ幹~~ +- [x] ~~真紅の菌糸~~ / ~~歪んだ菌糸~~ + - [x] ~~樹皮を剥いだ菌糸~~ +- [x] ~~真紅の板材~~ / ~~歪んだ板材~~ + - [x] ~~フェンス / フェンスゲート~~ + - [x] ~~階段~~ + - [ ] ~~ドア (実装は無理ではないがめんどくさいor難しい)~~ + - [x] ~~トラップドア~~ + - [x] ~~ハーフブロック (ダブルハーフブロック)~~ + - [ ] ~~看板 (実装は無理ではないがめんどくさいor難しい)~~ + - [x] ~~ボタン~~ + - [x] ~~感圧版~~ +- [x] ~~歪んだウォートブロック~~ +- [x] ~~シュルームライト~~ - [x] しだれツタ - [x] ねじれツタ - [x] 真紅のナイリウム / 歪んだナイリウム - [x] 真紅の根 / 歪んだ根 - [x] ネザースプラウト -- [x] ソウルソイル -- [x] 玄武岩 - - [x] 滑らかな玄武岩 - - [x] 磨かれた玄武岩 -- [x] ブラックストーン - - [x] ブラックストーンのハーフブロック - - [x] ブラックストーンの階段 - - [x] ブラックストーンの塀 -- [x] 磨かれたブラックストーン - - [x] 磨かれたブラックストーンの階段 - - [x] 磨かれたブラックストーンのハーフブロック(ダブルブロック) - - [x] 磨かれたブラックストーンの塀 - - [x] 磨かれたブラックストーンのボタン - - [x] 磨かれたブラックストーンの感圧版 - - [x] 磨かれたブラックストーンレンガ - - [x] 磨かれたブラックストーンレンガの塀 - - [x] 磨かれたブラックストーンレンガの階段 - - [x] ひび割れたブラックストーンレンガ - - [x] 模様入りの磨かれたブラックストーン -- [x] きらめくブラックストーン -- [x] ネザー金鉱石 -- [x] 泣く黒曜石 -- [x] 古代の残骸 -- [x] ネザライトブロック +- [x] ~~ソウルソイル~~ +- [x] ~~玄武岩~~ + - [x] ~~滑らかな玄武岩~~ + - [x] ~~磨かれた玄武岩~~ +- [x] ~~ブラックストーン~~ + - [x] ~~ブラックストーンのハーフブロック~~ + - [x] ~~ブラックストーンの階段~~ + - [x] ~~ブラックストーンの塀~~ +- [x] ~~磨かれたブラックストーン~~ + - [x] ~~磨かれたブラックストーンの階段~~ + - [x] ~~磨かれたブラックストーンのハーフブロック(ダブルブロック)~~ + - [x] ~~磨かれたブラックストーンの塀~~ + - [x] ~~磨かれたブラックストーンのボタン~~ + - [x] ~~磨かれたブラックストーンの感圧版~~ + - [x] ~~磨かれたブラックストーンレンガ~~ + - [x] ~~磨かれたブラックストーンレンガの塀~~ + - [x] ~~磨かれたブラックストーンレンガの階段~~ + - [x] ~~ひび割れたブラックストーンレンガ~~ + - [x] ~~模様入りの磨かれたブラックストーン~~ +- [x] ~~きらめくブラックストーン~~ +- [x] ~~ネザー金鉱石~~ +- [x] ~~泣く黒曜石~~ +- [x] ~~古代の残骸~~ +- [x] ~~ネザライトブロック~~ - [x] 的 - [x] リスポーンアンカー - [x] ロードストーン - [x] 鎖 -- [x] ひび割れたネザーレンガ -- [x] 模様入りネザーレンガ -- [x] クォーツレンガ -- [x] ネザライトの欠片 -- [x] ネザライトインゴット -- [ ] ネザライトの防具 -- [ ] ネザライトの道具 -- [x] ロウソク - - [x] 白色のロウソク - - [x] 橙色のロウソク - - [x] 赤紫色のロウソク - - [x] 空色のロウソク - - [x] 黄色のロウソク - - [x] 黄緑色のロウソク - - [x] 桃色のロウソク - - [x] 灰色のロウソク - - [x] 薄灰色のロウソク - - [x] 青緑色のロウソク - - [x] 紫色のロウソク - - [x] 青色のロウソク - - [x] 茶色のロウソク - - [x] 緑色のロウソク - - [x] 赤色のロウソク - - [x] 黒色のロウソク +- [x] ~~ひび割れたネザーレンガ~~ +- [x] ~~模様入りネザーレンガ~~ +- [x] ~~クォーツレンガ~~ +- [x] ~~ネザライトの欠片~~ +- [x] ~~ネザライトインゴット~~ +- [ ] ~~ネザライトの防具~~ +- [ ] ~~ネザライトの道具~~ +- [x] ~~ロウソク~~ + - [x] ~~白色のロウソク~~ + - [x] ~~橙色のロウソク~~ + - [x] ~~赤紫色のロウソク~~ + - [x] ~~空色のロウソク~~ + - [x] ~~黄色のロウソク~~ + - [x] ~~黄緑色のロウソク~~ + - [x] ~~桃色のロウソク~~ + - [x] ~~灰色のロウソク~~ + - [x] ~~薄灰色のロウソク~~ + - [x] ~~青緑色のロウソク~~ + - [x] ~~紫色のロウソク~~ + - [x] ~~青色のロウソク~~ + - [x] ~~茶色のロウソク~~ + - [x] ~~緑色のロウソク~~ + - [x] ~~赤色のロウソク~~ + - [x] ~~黒色のロウソク~~ ### [バジーミツバチ (1.14)](https://minecraft.fandom.com/wiki/Bedrock_Edition_1.14.) - [x] ハチミツブロック -- [x] ハニカムブロック +- [x] ~~ハニカムブロック~~ - [x] ミツバチの巣 - [x] 養蜂箱 -- [x] ハニカム -- [x] ハチミツ入りの瓶 +- [x] ~~ハニカム~~ +- [x] ~~ハチミツ入りの瓶~~ ### [ヴィレッジアンドピレッジアプデート (1.11)](https://minecraft.fandom.com/wiki/Bedrock_Edition_1.11.0) - [x] 焚き火 diff --git a/src/feature/v1_17/AmethystBlock.php b/src/feature/v1_17/AmethystBlock.php deleted file mode 100644 index 4cf322b..0000000 --- a/src/feature/v1_17/AmethystBlock.php +++ /dev/null @@ -1,28 +0,0 @@ -blockId(), - $this->displayName(), - new BlockBreakInfo(1.5, BlockToolType::PICKAXE, ToolTier::WOOD()->getHarvestLevel()) - ); - } -} diff --git a/src/feature/v1_17/AmethystShard.php b/src/feature/v1_17/AmethystShard.php deleted file mode 100644 index 5680e27..0000000 --- a/src/feature/v1_17/AmethystShard.php +++ /dev/null @@ -1,20 +0,0 @@ -itemId(), $this->displayName()); - } -} diff --git a/src/feature/v1_17/ChiseledDeepslate.php b/src/feature/v1_17/ChiseledDeepslate.php deleted file mode 100644 index f10573e..0000000 --- a/src/feature/v1_17/ChiseledDeepslate.php +++ /dev/null @@ -1,28 +0,0 @@ -blockId(), - $this->displayName(), - new BlockBreakInfo(3.5, BlockToolType::PICKAXE, ToolTier::WOOD()->getHarvestLevel(), 30.0) - ); - } -} diff --git a/src/feature/v1_17/Deepslate.php b/src/feature/v1_17/Deepslate.php deleted file mode 100644 index 2c408a2..0000000 --- a/src/feature/v1_17/Deepslate.php +++ /dev/null @@ -1,37 +0,0 @@ -blockId(), - $this->displayName(), - new BlockBreakInfo(3.0, BlockToolType::PICKAXE, ToolTier::WOOD()->getHarvestLevel(), 30.0) - ) extends Pillar{ - public function getDropsForCompatibleTool(Item $item) : array{ - return [VanillaBlocks::cobbled_deepslate()->asItem()]; - } - public function isAffectedBySilkTouch() : bool{ - return true; - } - }; - } -} diff --git a/src/feature/v1_17/PolishedDeepslate.php b/src/feature/v1_17/PolishedDeepslate.php deleted file mode 100644 index d30c966..0000000 --- a/src/feature/v1_17/PolishedDeepslate.php +++ /dev/null @@ -1,28 +0,0 @@ -blockId(), - $this->displayName(), - new BlockBreakInfo(3.5, BlockToolType::PICKAXE, ToolTier::WOOD()->getHarvestLevel(), 30.0) - ); - } -} diff --git a/src/feature/v1_17/PolishedDeepslateDoubleSlab.php b/src/feature/v1_17/PolishedDeepslateDoubleSlab.php deleted file mode 100644 index d4e5033..0000000 --- a/src/feature/v1_17/PolishedDeepslateDoubleSlab.php +++ /dev/null @@ -1,28 +0,0 @@ -blockId(), - $this->displayName(), - new BlockBreakInfo(3.5, BlockToolType::PICKAXE, ToolTier::WOOD()->getHarvestLevel(), 30.0) - ); - } -} diff --git a/src/feature/v1_17/PolishedDeepslateSlab.php b/src/feature/v1_17/PolishedDeepslateSlab.php deleted file mode 100644 index 68aaacb..0000000 --- a/src/feature/v1_17/PolishedDeepslateSlab.php +++ /dev/null @@ -1,28 +0,0 @@ -blockId(), - $this->displayName(), - new BlockBreakInfo(3.5, BlockToolType::PICKAXE, ToolTier::WOOD()->getHarvestLevel(), 30.0) - ); - } -} diff --git a/src/feature/v1_17/PolishedDeepslateStairs.php b/src/feature/v1_17/PolishedDeepslateStairs.php deleted file mode 100644 index f4cfff4..0000000 --- a/src/feature/v1_17/PolishedDeepslateStairs.php +++ /dev/null @@ -1,28 +0,0 @@ -blockId(), - $this->displayName(), - new BlockBreakInfo(3.5, BlockToolType::PICKAXE, ToolTier::WOOD()->getHarvestLevel(), 30.0) - ); - } -} diff --git a/src/feature/v1_17/PolishedDeepslateWall.php b/src/feature/v1_17/PolishedDeepslateWall.php deleted file mode 100644 index 4c1b6fa..0000000 --- a/src/feature/v1_17/PolishedDeepslateWall.php +++ /dev/null @@ -1,28 +0,0 @@ -blockId(), - $this->displayName(), - new BlockBreakInfo(3.5, BlockToolType::PICKAXE, ToolTier::WOOD()->getHarvestLevel(), 30.0) - ); - } -} diff --git a/src/feature/v1_17/RawGold.php b/src/feature/v1_17/RawGold.php deleted file mode 100644 index f41332c..0000000 --- a/src/feature/v1_17/RawGold.php +++ /dev/null @@ -1,20 +0,0 @@ -itemId(), $this->displayName()); - } -} diff --git a/src/feature/v1_17/RawGoldBlock.php b/src/feature/v1_17/RawGoldBlock.php deleted file mode 100644 index c6fbf4d..0000000 --- a/src/feature/v1_17/RawGoldBlock.php +++ /dev/null @@ -1,28 +0,0 @@ -blockId(), - $this->displayName(), - new BlockBreakInfo(5.0, BlockToolType::PICKAXE, ToolTier::IRON()->getHarvestLevel(), 30.0) - ); - } -} diff --git a/src/feature/v1_17/RawIron.php b/src/feature/v1_17/RawIron.php deleted file mode 100644 index 75101bf..0000000 --- a/src/feature/v1_17/RawIron.php +++ /dev/null @@ -1,20 +0,0 @@ -itemId(), $this->displayName()); - } -} diff --git a/src/feature/v1_17/RawIronBlock.php b/src/feature/v1_17/RawIronBlock.php deleted file mode 100644 index b71c6a0..0000000 --- a/src/feature/v1_17/RawIronBlock.php +++ /dev/null @@ -1,28 +0,0 @@ -blockId(), - $this->displayName(), - new BlockBreakInfo(5.0, BlockToolType::PICKAXE, ToolTier::STONE()->getHarvestLevel(), 30.0) - ); - } -} diff --git a/src/feature/v1_19/DiscFragment5.php b/src/feature/v1_19/DiscFragment5.php deleted file mode 100644 index 35a3a04..0000000 --- a/src/feature/v1_19/DiscFragment5.php +++ /dev/null @@ -1,20 +0,0 @@ -itemId(), $this->displayName()); - } -} diff --git a/src/feature/v1_19/EchoShard.php b/src/feature/v1_19/EchoShard.php deleted file mode 100644 index 9bdd79f..0000000 --- a/src/feature/v1_19/EchoShard.php +++ /dev/null @@ -1,20 +0,0 @@ -itemId(), $this->displayName()); - } -} diff --git a/src/feature/v1_19/MangroveButton.php b/src/feature/v1_19/MangroveButton.php deleted file mode 100644 index 7e49d87..0000000 --- a/src/feature/v1_19/MangroveButton.php +++ /dev/null @@ -1,27 +0,0 @@ -blockId(), - $this->displayName(), - new BlockBreakInfo(0.5, BlockToolType::AXE) - ); - } -} diff --git a/src/feature/v1_19/MangroveDoubleSlab.php b/src/feature/v1_19/MangroveDoubleSlab.php deleted file mode 100644 index c452ade..0000000 --- a/src/feature/v1_19/MangroveDoubleSlab.php +++ /dev/null @@ -1,27 +0,0 @@ -blockId(), - $this->displayName(), - new BlockBreakInfo(2.0, BlockToolType::AXE, 0, 15.0) - ); - } -} diff --git a/src/feature/v1_19/MangroveFence.php b/src/feature/v1_19/MangroveFence.php deleted file mode 100644 index 625b6c0..0000000 --- a/src/feature/v1_19/MangroveFence.php +++ /dev/null @@ -1,27 +0,0 @@ -blockId(), - $this->displayName(), - new BlockBreakInfo(2.0, BlockToolType::AXE, 0, 15.0) - ); - } -} diff --git a/src/feature/v1_19/MangroveFenceGate.php b/src/feature/v1_19/MangroveFenceGate.php deleted file mode 100644 index 9de4eaf..0000000 --- a/src/feature/v1_19/MangroveFenceGate.php +++ /dev/null @@ -1,27 +0,0 @@ -blockId(), - $this->displayName(), - new BlockBreakInfo(2.0, BlockToolType::AXE, 0, 15.0) - ); - } -} diff --git a/src/feature/v1_19/MangroveLog.php b/src/feature/v1_19/MangroveLog.php deleted file mode 100644 index a45d92f..0000000 --- a/src/feature/v1_19/MangroveLog.php +++ /dev/null @@ -1,27 +0,0 @@ -blockId(), - $this->displayName(), - new BlockBreakInfo(2.0, BlockToolType::AXE) - ); - } -} diff --git a/src/feature/v1_19/MangrovePlanks.php b/src/feature/v1_19/MangrovePlanks.php deleted file mode 100644 index df3ea1f..0000000 --- a/src/feature/v1_19/MangrovePlanks.php +++ /dev/null @@ -1,27 +0,0 @@ -blockId(), - $this->displayName(), - new BlockBreakInfo(2.0, BlockToolType::AXE, 0, 15.0) - ); - } -} diff --git a/src/feature/v1_19/MangrovePressurePlate.php b/src/feature/v1_19/MangrovePressurePlate.php deleted file mode 100644 index 91a66a5..0000000 --- a/src/feature/v1_19/MangrovePressurePlate.php +++ /dev/null @@ -1,27 +0,0 @@ -blockId(), - $this->displayName(), - new BlockBreakInfo(0.5, BlockToolType::AXE) - ); - } -} diff --git a/src/feature/v1_19/MangroveSlab.php b/src/feature/v1_19/MangroveSlab.php deleted file mode 100644 index 797cd62..0000000 --- a/src/feature/v1_19/MangroveSlab.php +++ /dev/null @@ -1,27 +0,0 @@ -blockId(), - $this->displayName(), - new BlockBreakInfo(2.0, BlockToolType::AXE, 0, 15.0) - ); - } -} diff --git a/src/feature/v1_19/MangroveStairs.php b/src/feature/v1_19/MangroveStairs.php deleted file mode 100644 index 1b00088..0000000 --- a/src/feature/v1_19/MangroveStairs.php +++ /dev/null @@ -1,27 +0,0 @@ -blockId(), - $this->displayName(), - new BlockBreakInfo(2.0, BlockToolType::AXE, 0, 15.0) - ); - } -} diff --git a/src/feature/v1_19/MangroveTrapdoor.php b/src/feature/v1_19/MangroveTrapdoor.php deleted file mode 100644 index 6607cd7..0000000 --- a/src/feature/v1_19/MangroveTrapdoor.php +++ /dev/null @@ -1,27 +0,0 @@ -blockId(), - $this->displayName(), - new BlockBreakInfo(3.0, BlockToolType::AXE) - ); - } -} diff --git a/src/feature/v1_19/MangroveWood.php b/src/feature/v1_19/MangroveWood.php deleted file mode 100644 index 5fd95ee..0000000 --- a/src/feature/v1_19/MangroveWood.php +++ /dev/null @@ -1,28 +0,0 @@ -blockId(), - $this->displayName(), - new BlockBreakInfo(2.0, BlockToolType::AXE) - ); - } -} diff --git a/src/feature/v1_19/MudBrickDoubleSlab.php b/src/feature/v1_19/MudBrickDoubleSlab.php deleted file mode 100644 index 2810a5c..0000000 --- a/src/feature/v1_19/MudBrickDoubleSlab.php +++ /dev/null @@ -1,28 +0,0 @@ -blockId(), - $this->displayName(), - new BlockBreakInfo(1.5, BlockToolType::PICKAXE, ToolTier::WOOD()->getHarvestLevel(), 15.0) - ); - } -} diff --git a/src/feature/v1_19/MudBrickSlab.php b/src/feature/v1_19/MudBrickSlab.php deleted file mode 100644 index 8c76b8d..0000000 --- a/src/feature/v1_19/MudBrickSlab.php +++ /dev/null @@ -1,28 +0,0 @@ -blockId(), - $this->displayName(), - new BlockBreakInfo(1.5, BlockToolType::PICKAXE, ToolTier::WOOD()->getHarvestLevel(), 15.0) - ); - } -} diff --git a/src/feature/v1_19/MudBrickStairs.php b/src/feature/v1_19/MudBrickStairs.php deleted file mode 100644 index 8bb6a38..0000000 --- a/src/feature/v1_19/MudBrickStairs.php +++ /dev/null @@ -1,28 +0,0 @@ -blockId(), - $this->displayName(), - new BlockBreakInfo(1.5, BlockToolType::PICKAXE, ToolTier::WOOD()->getHarvestLevel(), 15.0) - ); - } -} diff --git a/src/feature/v1_19/MudBrickWall.php b/src/feature/v1_19/MudBrickWall.php deleted file mode 100644 index 8cb729c..0000000 --- a/src/feature/v1_19/MudBrickWall.php +++ /dev/null @@ -1,28 +0,0 @@ -blockId(), - $this->displayName(), - new BlockBreakInfo(1.5, BlockToolType::PICKAXE, ToolTier::WOOD()->getHarvestLevel(), 15.0) - ); - } -} diff --git a/src/feature/v1_19/MudBricks.php b/src/feature/v1_19/MudBricks.php deleted file mode 100644 index 3f50939..0000000 --- a/src/feature/v1_19/MudBricks.php +++ /dev/null @@ -1,28 +0,0 @@ -blockId(), - $this->displayName(), - new BlockBreakInfo(1.5, BlockToolType::PICKAXE, ToolTier::WOOD()->getHarvestLevel(), 15.0) - ); - } -} diff --git a/src/feature/v1_19/StrippedMangroveLog.php b/src/feature/v1_19/StrippedMangroveLog.php deleted file mode 100644 index 226777d..0000000 --- a/src/feature/v1_19/StrippedMangroveLog.php +++ /dev/null @@ -1,27 +0,0 @@ -blockId(), - $this->displayName(), - new BlockBreakInfo(2.0, BlockToolType::AXE) - ); - } -} diff --git a/src/feature/v1_19/StrippedMangroveWood.php b/src/feature/v1_19/StrippedMangroveWood.php deleted file mode 100644 index 0a0f7a2..0000000 --- a/src/feature/v1_19/StrippedMangroveWood.php +++ /dev/null @@ -1,27 +0,0 @@ -blockId(), - $this->displayName(), - new BlockBreakInfo(2.0, BlockToolType::AXE) - ); - } -} diff --git a/src/override/expert/block/RawOres.php b/src/override/expert/block/RawOres.php deleted file mode 100644 index c0c2f11..0000000 --- a/src/override/expert/block/RawOres.php +++ /dev/null @@ -1,46 +0,0 @@ -getIdInfo(), $b->getName(), $b->getBreakInfo()) extends Opaque{ - public function getDropsForCompatibleTool(Item $item) : array{ - return [VanillaItems::raw_gold()]; - } - - public function isAffectedBySilkTouch() : bool{ - return true; - } - }; - } - - /** - * 鉄鉱石を破壊したときのドロップを鉄の原石に変更 - */ - protected function iron_ore() : Block{ - $b = VanillaBlocks::IRON_ORE(); - return new class($b->getIdInfo(), $b->getName(), $b->getBreakInfo()) extends Opaque{ - public function getDropsForCompatibleTool(Item $item) : array{ - return [VanillaItems::raw_iron()]; - } - - public function isAffectedBySilkTouch() : bool{ - return true; - } - }; - } -} diff --git a/src/override/expert/item/GlassBottleCanFillWater.php b/src/override/expert/item/GlassBottleCanFillWater.php deleted file mode 100644 index e6c1e1f..0000000 --- a/src/override/expert/item/GlassBottleCanFillWater.php +++ /dev/null @@ -1,55 +0,0 @@ -toIdentifier($i), $i->getName()) extends GlassBottle{ - public function onInteractBlock(Player $player, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector) : ItemUseResult{ - if($blockClicked instanceof Water){ - $stack = clone $this; - $stack->pop(); - - $waterPotion = VanillaItems::WATER_POTION(); - - if($player->hasFiniteResources()){ - if($stack->getCount() === 0){ - $player->getInventory()->setItemInHand($waterPotion); - }else{ - $overflow = $player->getInventory()->addItem($waterPotion); - foreach($overflow as $item){ - $ev = new PlayerDropItemEvent($player, $item); - $ev->call(); - if($ev->isCancelled()){ - return ItemUseResult::FAIL(); - } - $player->dropItem($item); - } - $player->getInventory()->setItemInHand($stack); - } - }else{ - $player->getInventory()->addItem($waterPotion); - } - - return ItemUseResult::SUCCESS(); - } - - return ItemUseResult::NONE(); - } - }; - } -} diff --git a/src/override/expert/item/ItemBucket.php b/src/override/expert/item/ItemBucket.php deleted file mode 100644 index 37a291c..0000000 --- a/src/override/expert/item/ItemBucket.php +++ /dev/null @@ -1,65 +0,0 @@ -toIdentifier($i), $i->getName()) extends Bucket{ - public function onInteractBlock(Player $player, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector) : ItemUseResult{ - if($blockClicked instanceof Liquid && $blockClicked->isSource()){ - $resultItem = ItemFactory::getInstance()->get(ItemIds::BUCKET, $blockClicked->getFlowingForm()->getId()); - $ev = new PlayerBucketFillEvent($player, $blockReplace, $face, $this, $resultItem); - $ev->call(); - if($ev->isCancelled()){ - return ItemUseResult::FAIL(); - } - - if($player->hasFiniteResources()){ - $stack = clone $this; - $stack->pop(); - if($stack->getCount() === 0){ - $player->getInventory()->setItemInHand($ev->getItem()); - }else{ - foreach($player->getInventory()->addItem($ev->getItem()) as $overflow){ - $dropEv = new PlayerDropItemEvent($player, $overflow); - $dropEv->call(); - if($dropEv->isCancelled()){ - return ItemUseResult::FAIL(); - } - $player->dropItem($overflow); - } - $player->getInventory()->setItemInHand($stack); - } - }else{ - $player->getInventory()->addItem($ev->getItem()); - } - - $player->getWorld()->setBlock($blockClicked->getPosition(), VanillaBlocks::AIR()); - $player->getWorld()->addSound($blockClicked->getPosition()->add(0.5, 0.5, 0.5), $blockClicked->getBucketFillSound()); - - return ItemUseResult::SUCCESS(); - } - - return ItemUseResult::NONE(); - } - }; - } -}