I want to make some weapons like stabbing knife and vampire knife, and I want them to harm the user. Is there a way to do this?
Yes, if you make your own script, you could use Code: #### `void` status.applySelfDamageRequest(`DamageRequest` damageRequest) Directly applies the specified damage request to the entity using this status controller.
What you want to do is doable via the Lua API; you wouldn't just "put" that somewhere, you'd have to make your own Lua script that'd use it, and require it in your weapon's config
activeItem scripts are client-side, so you could use it on vanilla servers / with vanilla clients and they'd work, but you wouldn't be able to share them; if you were to give it to someone who doesn't have said script, they'd crash