WorldGuard icon indicating copy to clipboard operation
WorldGuard copied to clipboard

No Monster Drop - Flag

Open LadyCailinBot opened this issue 13 years ago • 6 comments

WORLDGUARD-2278 - Reported by yopsy

With this Flag you can disable Mobdrops from all types of mobs. Example: You kill a cow and in this region is the mobdrop disabled the cow dont drop anything

LadyCailinBot avatar Nov 05 '12 19:11 LadyCailinBot

Comment by dddeeefff

I would love this too. It would make it possible to create, on survival servers, mob arenas that don't allow illegitimate items into the players' hands and into the servers' economy

LadyCailinBot avatar Dec 01 '12 02:12 LadyCailinBot

Comment by rautamiekka

I thought this flag existed but didn't work.

LadyCailinBot avatar Aug 30 '14 11:08 LadyCailinBot

Comment by sk89q

Closing this issue due to age. If someone is still interested in this issue, please make a new one or ask this one to be re-opened.

LadyCailinBot avatar Jan 08 '15 08:01 LadyCailinBot

Comment by dddeeefff.dddeeefff

I would still like this feature.

I think that the implementation would be rather tricky. Since this issue was originally posted, mobs have gained the ability to pick up items, which could lead to players losing their items when the mob doesn't drop it after death. One solution to this would be having a mobs-don't-pick-up-items flag, but a mob could potentially pick up an item inside the region and then wander into it. Alternatively, the flag could allow player item drops to be dropped - I've no idea how you'd manage that though.

I ended up implementing this myself using CommandHelper, however; CH's WG support is broken atm (due to WG6 API changes and/or UUIDs I think) so I've lost the ability to do this. It proved rather tricky to implement in CH since, if I recall correctly, regular item drops are treated differently to equipment drops. Is this true of the Bukkit API too?

LadyCailinBot avatar Jan 11 '15 21:01 LadyCailinBot

Comment by sk89q

I think so, but I don't remember off my head.

LadyCailinBot avatar Jan 13 '15 19:01 LadyCailinBot

Comment by PseudoKnight

The drops in EntityDeathEvent do not distinguish between normal drops and equipment drops. However, you can just getEquipment() and only drop those. It won't much help people that want to cancel ALL drops, though.

LadyCailinBot avatar Jan 14 '15 04:01 LadyCailinBot