Creative Items (i.e. barriers) wont drop items even when forced to
ChaosDogG opened this issue ยท 1 comments
Intro
I'm trying to allow these dev blocks to be broken in survival mode. It is in fact cursed, I know, that's the idea.
Issue Description
When I set in the script using CraftTweaker, the blocks I already set to be mineable, but just don't drop whatsoever.
What Happens
I put in the script
I broke the blocks
Nothing popped out
What You Expect to Happen
The blocks to break
Script
Crash Log
n/a
Affected Versions
Do not use latest
; please supply accurate version numbers.
- Minecraft: 1.12.2
- Forge: 14.23.5.2860
- CraftTweaker: 1.12-4.1.20.699
- Dropt: 1.12.2-1.19.4
- Athenaeum: 1.12.2-1.19.6
It's likely that the block doesn't fire the event that Dropt hooks. You can enable the debug output on that rule and it should tell you if the block even fires the event.
https://dropt.readthedocs.io/en/latest/debugging/
I think for Zen it'd be:
Dropt.list("unbreakables")
.add(Dropt.rule().debug()
.matchBlocks(["minecraft:barrier"])
.addDrop(Dropt.drop()
.force()
.items([<minecraft:barrier>])
)
)