I am not native English speaker, so pardon me for my poor language.
I wanted to add "Rupee" to my SMP server, my Rupee's need to be droped by certain mobs (Witch, Enderman, Pigman Zombie, Creeper and Ghast).
The Emerald looks like a Rupee, but it has the problem of being to easy to farm with villagers. So I made a custom emerald with NBT tag so it cant be counterfeited or farmed with villagers. I will show you what I did in hopes you find this information usefull.
1.- Make custom Rupee: The first thing we need to do is create a custom emerald with the following NBT_tags: Name and Lore.
This will give you 10 Rupee.
/give @p emerald 10 0 {display:{Name:"Rupee"},Lore:["Used for trading"]}
2.-Getting the default loot tables to add Rupees to the mob drop: For this part you need to go to the next folder path:
[Ubuntu] /home/username/.minecraft/versions/1.9.4
Now we need to extract the 1.9.4.jar file. Just Right clic and extract the file. You will get a folder named 1.9.4
I am not native English speaker, so pardon me for my poor language.
I wanted to add "Rupee" to my SMP server, my Rupee's need to be droped by certain mobs (Witch, Enderman, Pigman Zombie, Creeper and Ghast).
The Emerald looks like a Rupee, but it has the problem of being to easy to farm with villagers. So I made a custom emerald with NBT tag so it cant be counterfeited or farmed with villagers. I will show you what I did in hopes you find this information usefull.
1.- Make custom Rupee: The first thing we need to do is create a custom emerald with the following NBT_tags: Name and Lore.
This will give you 10 Rupee.
2.-Getting the default loot tables to add Rupees to the mob drop: For this part you need to go to the next folder path:
[Ubuntu] /home/username/.minecraft/versions/1.9.4
Now we need to extract the 1.9.4.jar file. Just Right clic and extract the file. You will get a folder named 1.9.4
The Loot Tables are inside on the following path:
[Ubuntu] /home/username/.minecraft/versions/1.9.4/1.9.4/assets/minecraft
Now lets head to our world to create a folder structure where our loot_tables will be read, the path is:
[Ubuntu] /home/username/minecraft-server/world/data
Now create the following folder structure
loot_tables
|-- minecraft
|-- entities
Inside the entities folder you copy the mob files you want to modify, for me are (creeper, enderman, ghast, shulker, Witch and Zombie Pigman)
3.- Adding drop to mob loot_table file:
Now lets add our custom rupee to our Mobs, lets work on the enderman.json file with gedit we are going to add the next code:
This code added to the enderman.json will look like this:
4.- Adding a custom Villager that accept Rupee
Use a command_block for this part you can get one with
This will make a villager who sells a custom potion of "super Jump" for 60 rupee, you need to place 50 on first slot and 10 on the second slot.
Images of Mobs droping loot and Villager shop
Enderman kill drop
Villager Trade:
References:
http://www.minecraftforum.net/forums/minecraft-discussion/redstone-discussion-and/command-blocks/2546347-1-9-1-10-custom-loot-tables
http://minecraft.gamepedia.com/Commands
Questions on reddit:
https://www.reddit.com/r/Minecraft/comments/4jm5gf/help_how_to_make_a_custom_emerald_unique/
https://www.reddit.com/r/Minecraft/comments/4dwx89/help_how_to_give_points_for_killing_specific_mob/
Tools used:
https://minecraftcommand.science/shop-generator
The title should say Currency, me bad.