Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Model Engine 4 Model Engine 4
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 105
    • Issues 105
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • Model Engine 4Model Engine 4
  • Issues
  • #43

Closed
Open
Created Nov 01, 2023 by EspartaProJunior@EspartaProJunior

Bindhitbox does not work again after bone removal

Let me explain, I currently have a model which has a bone named leg0 and its subhitbox is named b_leg0hitbox image_1_

When spawning the mob it contains these skills

spiderboss_spawn:
  Skills:
  - effect:particles{particle=cloud;amount=125;hS=1;vS=1;speed=.01} @self
  - bindhitbox{m=spider_boss;p=b_leg0hitbox;t=spiderboss_leg0;delay=1} @self
  - hitboxconfig{m=spider_boss;p=b_leg0hitbox;pass=0.3;delay=1} @self

And this is the mm mob of its subhitbox

spiderboss_leg0:
  Type: VEX
  Display: '&6'
  Health: 50
  Faction: Spider
  Options:
    Silent: true
  Skills:
  - skill{s=[
      - submodel{mid=spider_boss;partid=leg0;submodelid=spider_boss;subpartid=leg0;remove=true} @parent
      - signal{s=SpiderBossSignal} @parent
      - signal{s=SpiderBossLeftLeg} @parent
      - effect:sound{s=entity.ender_dragon.hurt;p=1.3;v=1} @parent
    ]} ~onDeath

Once that, I have a skill that when you kill it, it proceeds to execute this skill to supposedly regenerate, but when you do this, the subhitboxes stay on the ground and the bone does not regenerate

SpiderLeftLegsLoop:
  Skills:
  - submodel{mid=spider_boss;partid=leg0;submodelid=spider_boss;subpartid=b_leg0hitbox;remove=false;delay=6} @self
  #
  - bindhitbox{m=spider_boss;p=b_leg0hitbox;t=spiderboss_leg0;delay=8} @self
  - hitboxconfig{m=spider_boss;p=b_leg0hitbox;pass=0.3;delay=8} @self
  #
  - setvariable{var=caster.LeftLegs;val=4} @self
  - setAI{ai=true} @self
  - setstance{stance=spiderboss_default} @self

2023-10-31_18-09-14

(In the example I use the same actions but with an OnInteract)

Edited Nov 04, 2023 by Ticxo
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking