Recipes

Discussion in 'Plugin Development' started by JavaNoob, Sep 19, 2020.

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

    JavaNoob

    Hi! So my friend hasn't played minecraft for years, and he wants to play again with me. So I am gonna play with him on my testing server, and I want to make a plugin just to make a couple things weird so he gets confused. Anyways, for recipes, do you have to actually go in and delete them for them to be gone, or can you overwrite them with a custom recipe outputting the same thing?
     
  2. Offline

    xelatercero

    I think you need to listen to prepareItemCraftEvent , check the result and if it's the item you want gone , just cancell the event.
     
  3. Offline

    JavaNoob

    Thank you, I will try it!

    Edit: On another note, I was trying to make a command where I can strike my friend with lightning. But I was wondering how to have his name as an argument. Like I want the command to be /l playername, and I want the playername to be any players name. I know how to do the rest, I just have never worked with command arguments before.
     
    Last edited: Sep 19, 2020
  4. Offline

    Shqep

    Code:Java
    1. Bukkit.getOfflinePlayer(String);
    2. Bukkit.getPlayer(String);
    3. Bukkit.getPlayerExact(String);


    Pretty self-explanatory.
     
  5. Offline

    JavaNoob

    Thank you
     
  6. Offline

    Zettos

    When you want to override some ItemRepices or create new one .
    Very Simply

     
Thread Status:
Not open for further replies.

Share This Page