Solved Could someone help me with...

Discussion in 'Plugin Development' started by Reynergodoy, Jun 19, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    Reynergodoy

    With custom crafting and random drops?
    Giving me the code to do this... and i will learn it easy :)

    What I want?
    when a player kills another player, it has 30% of chance to drop a stick with the name of "Doom Stick",
    and 40% of chance to drop a wither skeleton head named "Doom Head",
    and 30% of chance to drop a nether star named "Doom Star"

    When the player put these "ingredients" on a crafting table in a shape of a sword, it will give a sword with name "Doom Sword" and lore of "This sword was forged with pure chaos!"

    thx :)
     
  2. Offline

    87pen

    I never really used it myself but I guess you could use the Math.random(); function. Adding drops and creating the item should be simple enough. Here is a tutorial on creating crafting recipes, took me less than a minute to google search: https://bukkit.org/threads/how-to-make-custom-crafting-recipes.301328/ I don't think anyone will write the code for you if that's what you are asking, if you need help learning Java or Bukkit I would visit this link: http://bukkit.org/threads/plugin-dev-sticky-learning-java-where-to-learn.350132/
     
Thread Status:
Not open for further replies.

Share This Page