Skip to content

Blockbench Model support for entities (when entities are added) #1649

Open

Description

@The-Nyla

Description

For adding entities to the game, it would be nice if cubyz supported blockbench models (.bbmodel format), for adding entity models and animations. This could also be used for hitboxes, for example adding a group named "hitbox" would use any cube(s) within that group as the hitbox, and the pivot point of that group as the eye height of the entity, and a group (bone) with a prefix like "h_" or "head_" would act as the model's head. A very similar system is used by the "modelengine" plugin for minecraft servers to easily add custom entities into servers, and it's a really great system for very easily creating custom entities. Blockbench's scriptable keyframes could also be used to define parts of an animation that trigger something else, like particles, or when specifically in an attack animation damage is dealt, etc.

Activity

  1. added
    undecided
    on Jul 1, 2025
  2. codemob-dev commented on Jul 1, 2025

    @codemob-dev
    Contributor

    I like this, however hitboxes should probably be separate from models to allow for remodeling of entities. (A feature I wish Minecraft had)

  3. The-Nyla commented on Jul 1, 2025

    @The-Nyla
    Author

    I like being able to define hitboxes within the model, because you could also define multiple hitboxes and animate them easily, adjust the size, position, etc. for example you could have rotating shields or something that have hitboxes and block attacks.

    Also that shouldn't be an issue, the hitbox group isn't parented to the model at all (at least when making a modelengine model), so you should be able to keep the hitbox separate

    Here's an example from a model I made:

    Image

    Blockbench is also open-source and supports extensions so a cubyz-specific extension could be made to export hitboxes separately or add any other features needed

  4. codemob-dev commented on Jul 1, 2025

    @codemob-dev
    Contributor

    How does this work, can you export each model group individually?

  5. The-Nyla commented on Jul 1, 2025

    @The-Nyla
    Author

    Not from blockbench, but you should be able to let someone replace the model of an entity without replacing anything else. For example if you made it so the model part of a model always had to be in a group named "model" or something similar, and have the hitbox always be "hitbox", etc, you should be able to replace the model and just prevent the hitbox from being changed

  6. The-Nyla commented on Jul 1, 2025

    @The-Nyla
    Author

    This is the wiki for the plugin I mentioned: https://git.lumine.io/mythiccraft/model-engine-4/-/wikis/Modeling/Creating-a-Model

    It lets you replace/swap groups, tint them, load groups from other models to replace existing ones, etc. so you should be able to affect specific parts of the model without affecting others which is nice

  7. The-Nyla commented on Jul 1, 2025

    @The-Nyla
    Author

    It also works with another plugin called "mythicmobs" that adds an incredible and very easy scripting system for designing mobs and bosses and their behavior, but something like that would probably take a while to implement in cubyz, though a system like that would be a great feature

  8. added this to the Far future milestone on Jul 1, 2025
  9. added
    experimental
    on Jul 1, 2025
  10. The-Nyla commented on Jul 1, 2025

    @The-Nyla
    Author

    Also empty groups can also be used for alot, for example if nametags or something similar is added to entities, the position it's shown could be defined by an empty group, same with the point a player would appear on a rideable entity or vehicle, or the position a projectile might shoot from, etc.
    It'd make it really easy to design entities for cubyz, even without a scripting system for behavior, this could simplify a ton of work for entity creation

  11. The-Nyla commented on Jul 1, 2025

    @The-Nyla
    Author

    Also, blockbench does support meshes, and perhaps a blockbench extension could be made, or a feature added to cubyz, to also allow for easy creation of blocks and items with blockbench. Blockbench already has features designed for that, albeit tailored to minecraft, but it does allow for designing items, configuring the position when held/worn by a player, how it looks in 1st-person, on the ground, and in a gui slot. And has a pretty good editor for 2d textures and items.

  12. Argmaster commented on Jul 2, 2025

    @Argmaster
    Collaborator

    I think there was a discussion about this recently and the conclusion was that Cubyz is open for Blockbench integrations implemented by the community, but we won't focus on Blockbench compatibility when designing Cubyz's ECS and right now there is no one out of active contributors who is interested in working on Blockbench extensions in near future. Cubyz is open and free (free as in freedom, not free as in free beer) so we won't tie ourselves into constraints implied by different projects.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    engineexperimentalundecided

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions