Code Patterns
Copy-paste examples for common plugin tasks. Commands, events, ECS, GUI, and more.
All
225
Command
60
Damage
2
Ecs
27
Entity
5
Gui
75
Interaction
2
Inventory
4
Moderation
3
Permission
2
Player
9
Plugin
4
Storage
2
Teleport
3
Ui
22
Util
5
Entity Patterns
5Apply Entity Effect
Apply a buff/debuff effect to an entity using EffectControllerComponent.
Heal Player
Heal a player to full health and stamina using EntityStatsModule. Based on working AdminUI code.
Kill Player
Kill a player using the damage system.
Spawn Entity
Spawn custom entities in the world with model and components.
Stop Velocity on Collision
Stop entity movement instantly when collision is detected using ApplyForce interaction. Use Force: 0.01 with ChangeVelocityType: Set to zero out velocity.