Skip to content

Latest commit

 

History

History
41 lines (38 loc) · 907 Bytes

File metadata and controls

41 lines (38 loc) · 907 Bytes

Drops

dscriptdrop


dscriptdrop

Drop: dscriptdrop{script=scriptname;[attributes(optional)]}
Description: Execute a denizen script at drop.
Optionally specify some attributes.
Tags: <context.dropper> entity of the dropper
<context.cause> entity of the cause
<context.player> player if present
<context.amount> amount
Example: denizen script:

flubb:
  type: task 
  speed: 0 
  debug: false
  script:
    - announce "<def[some]> <def[example]> <def[attributes]>"
    - announce <context.dropper>
    - announce <context.cause>
    - announce <context.player>
    - announce <context.amount>

MythicMobs mob:

example_mob:
  Type: zombie
  Health: 10
  AITargetSelectors:
  - 0 clear
  Options:
    PreventOtherDrops: true
  Drops:
  - dscriptdrop{script=flubb;some=hihi;example=hoho;attributes=juhu}