tutorial:entity-old
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
tutorial:entity [2020/05/10 17:59] – Fix typo conorthedev | tutorial:entity [2020/05/10 18:13] – Add tutorial on entity loot tables conorthedev | ||
---|---|---|---|
Line 131: | Line 131: | ||
Once this is complete, you should see the cookie creeper spawn in the wild (plains biome)! | Once this is complete, you should see the cookie creeper spawn in the wild (plains biome)! | ||
+ | ==== Entity Drops (loot tables) ==== | ||
+ | When you kill the cookie creeper, at the moment it doesn' | ||
+ | |||
+ | For this, we need to use loot tables. To get started, we're going to create the file that tells Minecraft what our entity loot table is ('' | ||
+ | <code json> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ] | ||
+ | } | ||
+ | ] | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | This tells Minecraft to always drop a cookie when our Cookie Creeper is killed. | ||
+ | You can add more entries by just creating another object in the '' | ||
+ | <code json> | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ] | ||
+ | </ | ||
+ | |||
+ | If all went well, you can start your game and start getting some cookies! |
tutorial/entity-old.txt · Last modified: 2020/06/11 20:06 by draylar