Prevent the use of leads to tow boats from outside the WorldGuard region to take away animals within the region

オープン
#2,202 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
java

調査の方向性

まず、エンティティがリージョンの境界を越える際に WorldGuard で利用できるボートとクリーチャーの相互作用イベントを調査します。issue とその動画で説明されている再現手順を使って、イベントによって外部から入ってくるボートを判別できるかどうかを確認します。説明されているクリーチャー盗難の経路を防ぎつつ、許可されたボートとクリーチャーの相互作用をブロックしなければ完了です。

索引モデルが issue の本文から書いたものです。

説明

status:pending type:feature-request
The Problem

Starting from version 1.21, players can use a lead to tie up a boat. Some players can first tie up a boat with a lead outside the WorldGuard region, then lead the boat into the WorldGuard region to make creatures bump into and sit on the boat, taking them away. This method can be used to steal creatures within the WorldGuard region. It is very versatile. After mastering the technique, players can even use elytra to fly away with the creatures.

https://github.com/user-attachments/assets/6d9a05b1-e339-46f4-9acb-7e7b1a584a3e

A Solution

Is there a corresponding event that can be listened to, in order to distinguish boats that enter from outside the WorldGuard region and prevent creatures from being so easily stolen?

Alternatives

When a creature attempts to get on a boat, first check whether the nearest player has permission within the WorldGuard region. If not, cancel the creature's action of getting on the boat.

Anything Else?

No response

主要言語
Java
スター
944
フォーク
686
平均マージ
4日 7時間
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

EngineHub/WorldGuard のほかの issue

EngineHub/WorldGuard の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。