Skip to content

Port over the Spoutcraft SMP system #6

@Zidane

Description

@Zidane

(Obsidian's part of this task is performing the rendering of the SMP. Magma will take care of the reading of the package)

In Spoutcraft, those folks developed a system (used by the plugin MoreMaterials) to package together all the data needed for a "Custom Block".

SMP Packages are comprised of:

  • .shape -> Typical design of the block (think .obj/model)
  • .yml -> Setup properties of the block (name/hardness/etc)
  • .png -> Texture to be rendered on the design

Forge, as far as I know, does not have native .yml configuration parsing but there is snakeyaml for that. We also can use flow-configuration to handle any configuration needs.

MoreMaterials: http://dev.bukkit.org/bukkit-plugins/morematerials/

Tesselation: https://github.com/Spoutcraft/Spoutcraft/blob/master/src/main/java/org/spoutcraft/api/block/design/GenericBlockDesign.java#L329

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions