Paste #135472: Unnamed Denizen Script Paste

Date: 2025/08/10 04:02:17 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


BrownBMale:
  Type: polar_bear
  Display: 'Male'
  Options:
    Silent: true
    PreventOtherDrops: true
  Variables:
    set_type: brown_b
  AITargetSelectors:
  - clear
  AIGoalSelectors:
  - clear
  Skills:
  - cancelEvent{sync=true} @self ~onAttack
  - setstance{stance=notbreeding} @self ~onSpawn
  - modifytargetscore{o=Taken;a=set;v=0} @self ~onSpawn
  - skill{s=Problematic} @self ~onInteract


Problematic:
  Cooldown: 100
  TriggerConditions:
  - holding{m=HAY_BLOCK} true
  Conditions:
  - isbaby false
  - stance{s=notbreeding} true
  Skills:
  - setStance{s=breedingmale}
  - takeitem{i=HAY_BLOCK;a=1} @Trigger
  - runaitargetselector{target=nearestconditionaltarget{mr=true;ms=true;conditions=[ - stance{s=breedingfemale} true - score{o=Taken;v=0} true - (chance{c=1} || varEquals{var=target.set_type;val="<caster.var.set_type>"})]}} @self
  - runaigoalselector{goal=meleeattack}