Tutorial:Entity drop changes
From ATLauncher Wiki
Give a zombie a small chance of dropping a "diary"[edit]
- To do this, you will have to go into the entity_drops.cfg file. Find the adding section, and Add the following:
Zombie-1.0-false-false_____i-minecraft:written_book-1-1-1-0
- The 1.0 means the zombie will drop it every time (100% chance). We will lower this number later. You should test it at this point to make sure the zombie is dropping it. Any zombie killed should be dropping a blank written book.
- Now this is a diary, so let's add some more info to the book. In the entry you added above, add
Zombie-1.0-false-false_____i-minecraft:written_book-1-1-1-0-{author:"Dan the Zombie",title:"Dan's Diary"}
- You can run the game again; now the Zombie should drop a book called "Dan's Diary", by "Dan the Zombie". But the rest is still blank. Now let's add some pages to our book.
Zombie-1.0-false-false_____i-minecraft:written_book-1-1-1-0-{author:"Dan the Zombie",title:"Dan's Diary",pages:[0:"Day 346: Not much. Sun was hot. Night was boring.",1:"Day 347: Greg found a village. Going to investigate when sun sets.",2:"Day 348: Greg killed by iron golem. Village is no good. Moving on."]}
- If you try it now, the zombie should drop a written book with three pages, with the three "diary entries" written in them.
- We're done, but now we should set the drop chance a bit lower, since right now every zombie will drop our book. Change the 1.0 to, say, 0.001. Now you will have to kill about 1000 zombies before one will drop it. So the final entry should be:
Zombie-0.001-false-false_____i-minecraft:written_book-1-1-1-0-{author:"Dan the Zombie",title:"Dan's Diary",pages:[0:"Day 346: Not much. Sun was hot. Night was boring.",1:"Day 347: Greg found a village. Going to investigate when sun sets.",2:"Day 348: Greg killed by iron golem. Village is no good. Moving on."]}