Skip to content
This repository has been archived by the owner on Feb 2, 2020. It is now read-only.

Stencil & Stencil Lists #17

Open
mickare opened this issue Mar 7, 2016 · 7 comments
Open

Stencil & Stencil Lists #17

mickare opened this issue Mar 7, 2016 · 7 comments

Comments

@mickare
Copy link

mickare commented Mar 7, 2016

Should not need further explaining than the title

It is/was the best command to create huge forests and landscapes.

Old commands:

Stencil:

  • /b st Shows in-game help
  • /b st [name] Makes a new stencil by selecting a cuboid with first two arrow right clicks
  • /b st [fill|full|replace] [name] Selects the paste method for stencil and the stencil to be pasted

Stencil Lists:

  • b sl [file] Right-click with the arrow, it pastes randomly one of the stencils defined in the file.
@mickare
Copy link
Author

mickare commented Mar 7, 2016

Can you add the label "enhancement"?

@mickare
Copy link
Author

mickare commented Mar 7, 2016

Needed for easy upgrade:

  • Automatic conversion from old stencils and lists.

@Deamon5550
Copy link
Member

Other things to consider:

  • Storing stencils in the MCEdit schematic format and converting the old stencil format to scheamtics
  • creating stencil lists ingame
  • selecting a transformation to apply to the stencil when placing it in (rotating flipping) for both stencils and stencil lists

@mickare
Copy link
Author

mickare commented Mar 7, 2016

MCEdit-Schematic File Format

Reference link to WorldEdit's git

Stencils

In generall wouldn't it be consequent to do the transformation as a mask / effect?
So also other masks & effects apply to the stencil?

Like a new transformation masks (parameters):

  • Rotation (base rotation + optional random with amplitude)
  • Flipping (direction)
  • Offset (base offset + optional random with amplitude)

Inter-plugin compatibility

  • Importing / Exporting stencils to WorldEdit.

Stencil Lists

  • Ingame maintaining
    • Search for lists / stencils
    • Add, Remove stencils from lists.
    • Create, delete and clear lists.

@Deamon5550
Copy link
Member

Yeah thats a good point, having the stencil brush work a lot like a shape (but not quite) might be good so that we can simply have the a rotation mask apply to the stencil. I'd need to modify the current way masks work to hand them a 'view' of the world rather than them looking at the world directly. Since we can then pass a view into a schematic to them in place of the world.

Interoperability with worldedit / other plugins which use schematics is moot since we would be changing away from the stencil format (its crap anyway) to using the schematic format by default.

@mickare
Copy link
Author

mickare commented Mar 7, 2016

I did recently a lot with netty and before with world edit.

Why not building something like a brush pipeline?

E.g.:
(World+Position)-> Shape -> Shape -> Mask -> Mask -> Effect -> Effect -> (turning point, other direction out)

Each layer has the methods ingoing & outgoing of a modificatable work object and they pass it through the pipeline.
On their way through the pipeline they get modified, ignored, etc.

@Deamon5550
Copy link
Member

That is essentially how it works right now see BrushChain.java

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants