codetaylor / dropt-1.12

Flexible block drop strategies.
https://minecraft.curseforge.com/projects/dropt
Other
6 stars 2 forks source link

Plant blocks drop configured item when the block underneath is broken #78

Closed mechobree closed 3 years ago

mechobree commented 3 years ago

Issue Description

I have a json file for a drop replacement for some plant blocks that require a tool to get. However, when you mine the block underneath you can totally bypass the tool requirement because it drops 100% of the time.

What Happens

Plant blocks drop their configured drops when the block underneath them is broken, even though tools are required to get the drop.

What You Expect to Happen

The plants to drop nothing, to act like I broke them with my bare hands.

Script

My json script

Affected Versions

codetaylor commented 3 years ago

Omitting type in the harvester block will default to ANY which will match any harvester, even null harvesters.

Set type to PLAYER and the rule will not match if a player holding the thing doesn't break it.

Please use the discord for script help: http://discord.codetaylor.com.