msg("dev", "§bDrops §rwurde geladen."); event.load("entity_death"); bone = read.item("BONE"); hasenleder = read.item("RABBIT_HIDE", 1, 0, "§rOcelot Hide"); rawfish0 = read.item("FISH"); rawfish1 = read.item("FISH", 0, 1); rawfish2 = read.item("FISH", 0, 2); ep = read.item("ENDER_PEARL"); inksack = read.item("DYE", 0, 15); clayball = read.item("CLAY_BALL"); silveregg = read.item("{id:'minecraft:spawn_egg',Count:1b,tag:{EntityTag:{id:'minecraft:silverfish'}},Damage:0s}"); dirt = read.item("DIRT"); potato = read.item("POTATO"); carrot = read.item("CARROT"); brownmushroom = read.item("brown_mushroom"); redmushroom = read.item("red_mushroom"); wolffur = read.item("km:wolf_fur"); silvercoin = read.item("km:coin_silver"); @wait wait(); if(event == "entity_death") { if(player_involved) { i = item.getEnchantLevel(entity.getEquip(player, "hand"), "LOOT_BONUS_MOBS"); goto("set"); } } goto("wait"); @set if(text.class(entity) == "EntityWolf") { amount = math.random(0, 1 + i); if(amount > 0) { item.setAmount(bone, amount); item.drop(entity.getLocation(entity), bone, amount); } amount = math.random(0, 1 + i); if(amount > 0) { item.setAmount(wolffur, amount); item.drop(entity.getLocation(entity), wolffur, amount); } goto("wait"); } if(text.class(entity) == "EntityOcelot") { amount = math.random(0, 2 + i); if(amount > 0) { item.setAmount(hasenleder, amount); item.drop(entity.getLocation(entity), hasenleder, amount); } amount = math.random(-18, 1); if(amount > 0) { item.setAmount(rawfish0, amount); item.drop(entity.getLocation(entity), rawfish0, amount); } amount = math.random(-18, 1); if(amount > 0) { item.setAmount(rawfish1, amount); item.drop(entity.getLocation(entity), rawfish1, amount); } goto("wait"); } if(text.class(entity) == "EntityEndermite") { amount = math.random(0, 1 + i); if(amount > 0) { item.setAmount(ep, amount); item.drop(entity.getLocation(entity), ep, amount); } goto("wait"); } if(text.class(entity) == "EntitySilverfish") { amount = math.random(0, 1 + i); if(amount > 0) { item.setAmount(silveregg, amount); item.drop(entity.getLocation(entity), silveregg, amount); } goto("wait"); } if(text.class(entity) == "EntityBat") { amount = math.random(0, 1 + i); if(amount > 0) { item.setAmount(inksack, amount); item.drop(entity.getLocation(entity), inksack, amount); } goto("wait"); } if(text.class(entity) == "EntityPig") { amount = math.random(-18, 1); if(amount > 0) { item.setAmount(clayball, amount); item.drop(entity.getLocation(entity), clayball, amount); } amount = math.random(-18, 1); if(amount > 0) { item.setAmount(redmushroom, amount); item.drop(entity.getLocation(entity), redmushroom, amount); } amount = math.random(-18, 1); if(amount > 0) { item.setAmount(brownmushroom, amount); item.drop(entity.getLocation(entity), brownmushroom, amount); } amount = math.random(-18, 1); if(amount > 0) { item.setAmount(carrot, amount); item.drop(entity.getLocation(entity), carrot, amount); } amount = math.random(-18, 1); if(amount > 0) { item.setAmount(potato, amount); item.drop(entity.getLocation(entity), potato, amount); } amount = math.random(-18, 1); if(amount > 0) { item.setAmount(dirt, amount); item.drop(entity.getLocation(entity), dirt, amount); } goto("wait"); } if(text.class(entity) == "EntitySquid") { amount = math.random(0, 1); if(amount > 0) { item.setAmount(rawfish0, amount); item.drop(entity.getLocation(entity), rawfish0, amount); } amount = math.random(-1, 1); if(amount > 0) { item.setAmount(rawfish1, amount); item.drop(entity.getLocation(entity), rawfish1, amount); } amount = math.random(-18, 1); if(amount > 0) { item.setAmount(rawfish2, amount); item.drop(entity.getLocation(entity), rawfish2, amount); } goto("wait"); } goto("wait");