Using Multi‐Command BDEngine Models (Group Merging) - PZDonny/DisplayEntityUtils GitHub Wiki

When wanting to use a model from BDEngine in game you will typically use the /mdis group selectnearest <interaction-distance> command after putting in command block commands. But sometimes, BDEngine may provide you with multiple commands if just one command is too much for a command block. With multiple commands you cannot get one group for your entire model without using the /mdis group merge <merge-range> command.

❗ DISCLAIMER - READ BEFORE PROCEEDING ❗

  • If you want to use a merged group (a model with many commands) AND use animations on it, using this method way result in unexpected results. Instead, you can refer to this to import your model and its animations with BDEngine's provided datapack

Understanding when to merge

  • For this example, we'll be using the model "Black Version of Truck" by Azoreq on BDPlace. The model can be found here image
  • If multiple commands are present after attempting to get the command for the model, you will have to utilize merging

image

If there's only one summon command, merging does not have to be utilized and you can simply use /mdis group selectnearest <interaction-distance>

Using the commands

  • Before merging the group, the commands should be ran in a command block at the SAME location. Using a command block at the same location will reduce errors from presenting and reduces the chances of unintentionally merging with other groups

Merging

  • Standing at the location of the command block, run the command /mdis group selectnearest <interaction-distance>. This will select a group created from one of the commands ran in the command block
  • Still at the same location, run the command /mdis group merge 1. This will merge with all groups within a 1 block radius from where the command was ran.
  • If all went well, every group created from the commands should now be merged into a single group!