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 112
    • Issues 112
    • 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
  • Wiki
    • Api
    • Basic
  • Per Player Model

Per Player Model · Changes

Page history
Basic API usage authored Sep 29, 2023 by Ticxo's avatar Ticxo
Hide whitespace changes
Inline Side-by-side
Showing with 34 additions and 1 deletion
+34 -1
  • API/Basic/Per-Player-Model.md API/Basic/Per-Player-Model.md +34 -1
  • No files found.
API/Basic/Per-Player-Model.md
View page @ 0a25cf62
WIP
\ No newline at end of file
## Creating a Dummy
```<placeholder>
Dummy<?> dummy = new Dummy<>();
// The dummy will no longer spawn and despawn automatically
dummy.setDetectingPlayers(false);
ModeledEntity modeledEntity = ModelEngineAPI.createModeledEntity(dummy);
ActiveModel activeModel = ModelEngineAPI.createActiveModel("test_model");
modeledEntity.addModel(activeModel, true);
```
## Forced model viewing
```<placeholder>
Dummy<?> dummy = ...
dummy.setForceViewing(player, true);
```
> Note: A forced viewer will be able to see the model forever, even when out of render radius.
## Forced model hiding
```<placeholder>
Dummy<?> dummy = ...
dummy.setForceHidden(player, true);
```
## Removing a Dummy
```<placeholder>
Dummy<?> dummy = ...
// Mark the Dummy as removed. Model Engine will automatically despawn it
dummy.setRemoved(true);
```
\ No newline at end of file
Clone repository
Home
FAQ / Common Issues
Commands & Permissions
Configuration
Modeling
  • Creating a Model
    • Hitbox & Eye Height
    • Shadow
  • Bone Behaviors
  • Animating a Model
  • Importing a Model
  • Scriptable Keyframes
MythicMobs
  • Mechanics: Model
  • Mechanics: VFX
  • Conditions
  • Targeters
API
  • Basic
    • Apply / Remove Model
    • Play / Stop Animation
    • Configure Bone Behaviors
    • Per-Player Model
    • Events
  • Advanced
    • Custom Base Entity
    • Custom Mount Controller
    • Custom Importer
    • Custom Bone Behaviors
    • Custom Script Reader
    • Custom Timeline
    • Custom Animation Handler
    • Custom Render Type
Technical
  • Terminology
  • Animation Systems
  • Mount Controllers