Paste #71256: Untitled Paste

Date: 2020/06/23 13:33:38 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14


on entity spawns:
- if <context.reason> == SPAWNER:
# if the monster spawned from a spawner:
  - flag <context.entity> spawner_entity
  # flag it as being spawned from a spawner.
on entity death:
- if <context.entity.has_flag[spawner_entity]>:
# if the entity is flagged as being spawned from a spawner:
  - determine <context.drops.insert[coin]>
  # drop the same items, but with a single coin.
- else:
# if it isn't spawned by a spawner:
  - determine <context.drops.insert[coin[quantity=<util.random_int[1].to[3].add[<context.damager.item_in_hand.enchantments.level[looting]>]>]]>
  # drop the same items, but with 1/3 (4/6) coins.