API for registering custom block-state transform rules

Đang mở
#3,024 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java
Lĩnh vực
api

Hướng nghiên cứu

Start by reading BlockTransformExtent and the referenced BlockBehaviour#rotate and #mirror entry points. Compare how WorldEdit currently handles known block-state semantics with the requested custom-property case. Done means agreeing on and implementing a public mechanism for mods or plugins to provide the needed transformation behavior.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

status:accepted type:feature-request
The Problem

WorldEdit handles block rotation and flipping through BlockTransformExtent.

This works well for block states whose spatial semantics are already understood by WorldEdit, such as facing, axis, rails, stairs, directional connection properties, etc.

However, modded blocks may contain custom block-state properties whose spatial meaning cannot be inferred by WorldEdit.

For example:

example:machine[orientation=front_left]

The mod may know how this property should behave under a 90° rotation or mirror operation, but currently there does not appear to be a public API for supplying that transformation logic to WorldEdit.

A Solution

It would be useful to expose a public API allowing mods/plugins to register transformation logic for custom block states or properties.

Or use net.minecraft.world.level.block.state.BlockBehaviour#rotate and net.minecraft.world.level.block.state.BlockBehaviour#mirror instead.

Alternatives

No response

Anything Else?

No response

Ngôn ngữ chính
Java
Star
3.5k
Fork
981
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
11

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của EngineHub/WorldEdit

Tất cả issue của EngineHub/WorldEdit

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.