Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicCrucible MythicCrucible
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 53
    • Issues 53
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicCrucibleMythicCrucible
  • Wiki
    • Skills
    • Mechanics
  • setcrossbowcharged

setcrossbowcharged · Changes

Page history
Create Skills/Mechanics/setcrossbowcharged authored May 10, 2023 by Lxlp's avatar Lxlp
Hide whitespace changes
Inline Side-by-side
Showing with 23 additions and 0 deletions
+23 -0
  • Skills/Mechanics/setcrossbowcharged.md Skills/Mechanics/setcrossbowcharged.md +23 -0
  • No files found.
Skills/Mechanics/setcrossbowcharged.md 0 → 100644
View page @ dd0ab452
## Description
Sets the target player's held crossbow's CustomModelData and visualy sets it as either charged or not charged.
If an unloaded crossbow is set as "charged", the user will not be able to shoot the arrow.
If a loaded crossbow is set as "not charged", the user will not be able to shoot the arrows in it until he loads another arrow or mechanic is used again to set it as "charged".
Every time a loaded crossbow is set as "not charged", the arrow is stored. If the user loads multiple arrows and the mechanic is used each time before the user can shoot it, the arrows will add up. When the crossbow shoots, every arrow stored in it (up to *3*) will be launched in a "multishot" shaped pattern.
## Attributes
| Attribute | Aliases | Description | Default |
|----------------|-------------|---------------------------------------------------------|---------|
| model | m | The new CustomModelData | 0 |
| charged | | Should the crossbow be set as "charged" | true |
## Examples
```yaml
TrickyCrossbow:
Id: CROSSBOW
Display: "Trick-y Crossbow"
Skills:
- setcrossbowcharged{m=3;charged=false} @self ~onSwing ?!crouching
- setcrossbowcharged{m=4;charged=true} @self ~onSwing ?crouching
```
\ No newline at end of file
Clone repository
  • Home
  • Changelogs
  • Commands / Permissions
  • FAQ / Common Issues
Usage
  • Installation
  • Item Options
  • Item Skills
  • Item Durability
  • Custom Blocks
  • Furniture
  • Crafting Recipes
  • Custom Bags
  • Ammo System / Guns
New Mechanics
  • Item Mechanics
  • Item Targeters
  • Item Triggers
  • Item Conditions