Skip to content

Custom model tileentity / static prop block #68

Description

@Longor1996

A tilenentity block that displays itself as a customizable model, that can be defined in (map)resourcepacks using the block model format.

TileEntity Data:

  • offset (x/y/z; min is -1 block, max is +1 block)
  • scaling (x/y/z; max is double scale)
  • base direction (up/down/NESW)
  • rotation (pitch/yaw)
  • lighting (yes/no)
  • basecolor (r/g/b)

TileEntity Scripting:

  • onSee
  • onTouch
  • onAttack
  • onInteract

Furthermore, it should be possible to make the tilentity spawn a tc-point-entity that can be used for mounting the player, for things like chairs.


Steps to implement:

  • Implement a basic OBJ and/or glTF-loader.
  • Create a renderer for the loaded models.
  • Make use of instancing for the models, if possible.
  • Implement the above defined tile-entity.
  • Make the tile-entity render as its selected model.
  • Add any additional options.
  • Add scripting capabilities.
  • Add paired tc_point entity.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions