This is a simple script allows you to easily attach task scripts unto your item scripts to do cool stuff.
Here are examples of how the skills look:




For now it covers the triggers for:
- clicking blocks
- damaging entities
- bow shoot
- arrow hit
- shield toggle
First add the "SkillsHandler.dsc" into your scripts folder and reload.
Then to add the skills on your item scripts you must have a "skills" key then include one or more of these subkeys with the corresponding task script name:
Code: Select all
skills:
click: (task script)
attack: (task script)
bow: (task script)
arrow: (task script)
shield: (task script)
example script:
Code: Select all
stick_o_wisdom:
type: item
material: stick
display name: stick o' wisdom
lore:
- A stick that predicts your future
skills:
click: wisdom_foretell
wisdom_foretell:
type: task
script:
- narrate "You will never be happy"
Script samples based on skills:
- Click and attack skill (storm breaker): https://one.denizenscript.com/haste/76788
- Arrow skill: https://one.denizenscript.com/haste/76787
- Bow skill: https://one.denizenscript.com/haste/76786
- Shield skill: https://one.denizenscript.com/haste/76785
changelog:
for ver 0.2:
- added the shield toggle event
- cleaned the predefined tags and added more