question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Able to configure a percentage for the drops to drop when a Sentinel NPC is killed. If it were only possible in the config, that’d already do good.

Example: type: PAPER amount: 6 durability: 0 drop-chance: .5 #Equals 50% drop chance mdata: 0 meta: repaircost: 0

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mcmonkey4evacommented, Aug 19, 2016

Here’s a sample Denizen config for that:

myDropChanger:
    type: world
    events:
        on npc death:
        - if !<npc.has_flag[paper_drop]> queue clear
        - random:
          - narrate "Better luck next time!"
          - drop paper quantity:6

You would then select the npc and type the following in-game: /ex flag npc paper_drop

0reactions
mcmonkey4evacommented, Jun 26, 2018

Denizen fully supports more advanced items (lore + nbt + etc) as well as executing external commands if needed. If you visit the discord link @SXRWahrheit posted we can help you get started (or view documentation at https://one.denizenscript.com/denizen/logs/ )

Read more comments on GitHub >

github_iconTop Results From Across the Web

Percentage Decrease Calculator
Percentage decrease calculator finds the decrease from one amount to another as a percentage of the first amount. Shows you how to find...
Read more >
Drop rate - Wikipedia
Drop rate (video gaming), the chance of obtaining a random item; Packet drop rate, the rate at which packets are lost in a...
Read more >
Drop Rates - RuneScape
All of the common drops have an equal 1/11 chance to drop meaning that you have a 1/11 chance to get up to...
Read more >
Drop rate | WoWWiki - Fandom
Drop rate is defined as x of x-kills that yields a specific item. An example: You kill 200 ogres and get 100 Netherweave...
Read more >
Drop rate - OSRS Wiki
The drop rate is the frequency at which a monster is expected to yield a certain item when killed by players. When calculating...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found