MWEPs are stored in the weapons.yml file in the MWEPs folder and have the structure of:
Code (Text):
ATrident:
Data: '{Enchantments:[{id:"loyalty",lvl:3}]}'
Weapon: TRIDENT
Consumable: false
RightClick:
UseTime: 0
Ammo: ARROW
AmmoUse: 0
AmmoName: trident
Sound:
Name: ENTITY_ARROW_SHOOT
Pitch: 1
Volume: 1
Spawn:
Spread: 5
Count: 50
Name: SPECTRAL_ARROW
Velocity: 5
Data: '{damage:10,life:1180,PierceLevel:100,pickup:2}'
LeftClick:
UseTime: 0
Ammo: ARROW
AmmoUse: 0
AmmoName: trident
Sound:
Name: ITEM_TRIDENT_THUNDER
Pitch: 1
Volume: 1
Spawn:
Spread: 5
Count: 50
Name: TRIDENT
Velocity: 4
Data: '{life:1180}'
ASign:
Data: '{Enchantments:[{id:"knockback",lvl:10}]}'
Weapon: OAK_SIGN
Consumable: false
RightClick:
UseTime: 40
Launch:
Velocity: 2
Asign and ATrident are the names of the MWEP
Consumable determines if the MWEP is used up per use
Data is the NBT data to add to the MWEP
Weapon is the item to generate the MWEP to
UseTime is how fast the MWEP can be used in ticks
RightClick and LeftClick are what to do when a player right or left clicks
Ammo specifies what ammo to use up (must be held in offhand)
AmmoUse specifies how much ammo to use per shot
AmmoName specifies what name the ammo needs to be for it to be used
You can access the in-game editor with the command /mweps editor <help/new/modify/delete/list/inject/view/copy>
help - gives you an instruction booklet
new <name> - creates a blank MWEP template
modify <path> <data>- modifies existing values in an MWEP. Use inject for non-existing values
delete <name/path> - deletes either an entire MWEP or path
ex:
/mweps editor delete ATrident will delete ATrident but /mweps editor delete ATrident.Data will delete data values
list - lists all mweps
inject <path> <data> - allows you to put any value you want into weapons.yml
view <name> - allows you to view all values for an MWEP
copy <existing> <new> - copies over a path or MWEP