API for registering custom block-state transform rules

Abierto
#3,024 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
45/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
java
Área
api

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Java
Estrellas
3.5k
Forks
981
Merge medio
2 d 15 h
PR fusionados (30 d)
11

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de EngineHub/WorldEdit

Todos los issues de EngineHub/WorldEdit

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.