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.

[Issue/Question] addPlayerOnlyDrop not working as expected

See original GitHub issue

What happens:

Killing modified mobs (see attached script) sometimes doesn’t drop any items at all (producing an error, see “most recent log files”). It seems that items only drop if the mob will 100% drop leather when killed.

What you expected to happen:

Normal vanilla drops, just with leather added via addPlayerOnlyDrop.

Script used:

https://hastebin.com/xotemarilu.log

crafttweaker.log file:

https://hastebin.com/azuyiyonak.log


Affected Versions:

  • Minecraft: 1.12.2
  • Forge: 14.23.5.2776
  • Crafttweaker: 4.1.15
  • Using a server: no

Most recent log files:

https://paste.dimdev.org/rayabumuta.mccrash (killed sheep) https://paste.dimdev.org/suvuwojafo.mccrash (killed pig)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
kindlichcommented, Mar 14, 2019

Different Scopes. Different Scopes. Different Scopes.

vars declared outside a function cannot be accessed from inside a function expression. Try declaring the map int[IED] as static

2reactions
kindlichcommented, Mar 11, 2019

Don’t use 0 as minimum drop, that is already handled by the weight, always start with at least one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Drop event not firing in chrome - javascript - Stack Overflow
In order to have the drop event occur on a div element, you must cancel the ondragenter and ondragover events. Using jquery and...
Read more >
Drag and drop not working in Windows 11? Try these fixes!
Dragging and dropping is a very important process on Windows 11 or any OS, so make sure to try these solutions to fix...
Read more >
Destiny 2 Pc Slow Loading - WE ARE LOSTMEMORY
Destiny 2 long load times, stuttering in menu and performance issues after 30th Anniversary update. Windowed and Borderless Modes: If players minimize ...
Read more >
Alpha 5.1.x FEEDBACK :: Empyrion - Galactic Survival General ...
We just released a second hotfix for the public version 5.1.1 Bugfixes - Fixed ... Fixed: Problem that player drone did not work...
Read more >
Iframe not loading in chrome - Carlino Edilizia
If users using Chrome are encountering the same problem, then just open your browser and follow these steps to play back the Vimeo...
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