API for registering custom block-state transform rules
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 45/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Java
- Stars
- 3.5k
- Forks
- 981
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 11
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from EngineHub/WorldEdit
-
Make //drain command also remove bubble columnsPossibly taken A pull request linked to this issue is open or already merged. Openstatus:accepted type:feature-request
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
EngineHub/WorldEdit#3001 · 1 comment ·
Maintainers usually reply within 1 day
-
status:accepted type:feature-request
Difficulty 3/5 1-2 days Newbie friendliness 62/100
EngineHub/WorldEdit#3038 · 5 comments ·
Maintainers usually reply within 1 day
-
Use 26.3 tag for dangerous teleportation targetsPossibly taken @me4502 claimed this 29 days ago. Openstatus:accepted type:feature-request
Difficulty 3/5 1-2 days Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
type:tech-debt
Difficulty 5/5 Over a week Newbie friendliness 25/100
Maintainers usually reply within 1 day
-
status:accepted type:feature-request
Difficulty 5/5 Over a week Newbie friendliness 35/100
Maintainers usually reply within 1 day
All issues in EngineHub/WorldEdit
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
-
RegistryExceptionHandler uses self-referencing basePackageClasses instead of a controller classOpenbug finsim-registry good-first-issue
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
status:pending type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
bug level:trivial
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
exoego/keycloak-fuhito#666 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
hammy275/immersive-mc#669 ·