WebDec 29, 2024 · At first, add to clear the drops of the block: Code (Text): e.getBlock ().getDrops ().clear (); Then drop an item naturally with: Code (Text): player.getWorld ().dropItem (loc, itemstack) If you notice that I do not have any premium resources … WebJul 1, 2024 · Spigot: 1.15.2 This first code is something which worked, but in my opinion it's a little complicated to add a new item. Code (Text): on mine: if event-block is diamond block: drop {variable} #This is just an example for the dropping part. command /saveitem: trigger: if player's name is "Example":
Customise mob and block drops in Minecraft with …
WebAug 6, 2024 · Regarding the code here from the implementation, you can see that item drops are captured and processed based on the block snapshot. Granted, this is an event thrown after the change block event, because we don’t actually process anything until the event has been thrown and determined to actually go through. WebJan 19, 2024 · 1 It's normal because this event is called before the block is really breaked. So, change the block in the event call will does nothing and will be overrided by the real … horlick high
How to set custom block drops? Bukkit Forums
WebgetDrops(ItemStack tool) Returns a list of items which would drop by destroying this block with a specific tool Collection getDrops(ItemStack tool, Entity entity) Returns … WebJan 19, 2024 · 1 It's normal because this event is called before the block is really breaked. So, change the block in the event call will does nothing and will be overrided by the real effect. You should cancel the event like that : WebApr 20, 2012 · When I've need to change drops, I've did something like: event.setCancelled (true); event.getBlock ().setType (Material.AIR); event.getBlock ().getWorld … los gatos black on halloween