Hi there, I need a simple plugin that
It seems simple enough, can anyone do this for a vouch?
If not, I can pay a few dollars.
DM me here if you can do this.
- Allows TNT and creeper eggs to break chests and spawners through water.
- Stop items from burning from lava + fire (if possible)
- Zombie Pigmen drop gold and not rotten flesh or gold nuggets
- Villagers drop emeralds
- Horses drop apples and not leather
Code:
public void onEntityDeath(EntityDeathEvent event)
{
if (event.getEntityType().equals(EntityType.HORSE))
{
if (event.getDrops().contains(new ItemStack(Material.LEATHER))) {
event.getDrops().remove(new ItemStack(Material.LEATHER));
}
event.getDrops().add(new ItemStack(Material.APPLE, 1));
{
if (event.getEntityType().equals(EntityType.PIG_ZOMBIE))
{
if (event.getDrops().contains(new ItemStack(Material.ROTTEN_FLESH))) {
event.getDrops().remove(new ItemStack(Material.ROTTEN_FLESH));
}
{
if (event.getDrops().contains(new ItemStack(Material.GOLD_NUGGET))) {
event.getDrops().remove(new ItemStack(Material.GOLD_NUGGET));
}
event.getDrops().add(new ItemStack(Material.GOLD_INGOT, 1));
}
if (event.getEntityType().equals(EntityType.VILLAGER)) {
event.getDrops().add(new ItemStack(Material.EMERALD, 1));
}
}
}
If not, I can pay a few dollars.
DM me here if you can do this.
Last edited:
