1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Normal item to food?

Discussion in 'Skript' started by RaikaS, Sep 2, 2018.

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

    RaikaS Active Member

    Joined:
    Apr 6, 2018
    Messages:
    53
    Likes Received:
    1
    Sorry, i know, wrong section, but i dont know where put this.

    I want make items (in this case diamond axe) to food. With the eat animation with like steak.

    Sry for my bad english.
     
  2. Flajakay

    Flajakay Active Member

    Joined:
    Jul 29, 2018
    Messages:
    55
    Likes Received:
    1
    Do you want to make an axe that you can eat?
    Lol.
    Ok.
    "eat animation with like steak." This is difficult. Probably you can do it using skript mirror. But anyway, it's easier to do using JAVA.
    But also I can be wrong

    You can make an axe that you can eat using:

    Code (Skript):
    1. on rightclick:
    2.     if player is holding a diamond axe named "EAT ME":
    3.         play ENTITY GENERIC EAT at player with pitch 1
    4.         add 2 to the player's food level
    5.         remove 1 diamond axe named "EAT ME" from player
    6.  
    I did not test it.
     
    #2 Flajakay, Sep 3, 2018
    Last edited: Sep 3, 2018
  3. RaikaS

    RaikaS Active Member

    Joined:
    Apr 6, 2018
    Messages:
    53
    Likes Received:
    1
    The reason why i need this, i want make custom food for my RPG server with items.

    With diamond axe i can have many texture models.
     
  4. Flajakay

    Flajakay Active Member

    Joined:
    Jul 29, 2018
    Messages:
    55
    Likes Received:
    1


    As I know, you can add custom texture using mcpatcher
    Something like that:
    NamedResourcePack/assets/minecraft/mcpatcher/cit \\This is the location for all files and textures used by CIT

    eat_axe.properties \\This is the file name and type, editable through notepad (Though I use Notepad++))

    type=item
    matchItems=cooked_beef
    texture=example.png
    nbt.display.Name=iregex:eat me
    Then you have to rename cooked beef to "eat me" in the anvil and it will change its texture to example.png.
    Such way you can add edible diamond axe with "eat animation with like steak".

    May be it will be useful for you.
    Also you can ask your question there:
    https://www.spigotmc.org/forums/spigot-plugin-development.52/
    Yes, its,probably, wrong section, but there is higher probability that you will find the answer
     
    #4 Flajakay, Sep 3, 2018
    Last edited: Sep 3, 2018
  5. RaikaS

    RaikaS Active Member

    Joined:
    Apr 6, 2018
    Messages:
    53
    Likes Received:
    1
    Sorry, but i dont want use that way. And that needs optifine? I have an thing for diamond axe, with i can have multiple textures for one item, and other textures will show when tool is damaged
     
  6. Flajakay

    Flajakay Active Member

    Joined:
    Jul 29, 2018
    Messages:
    55
    Likes Received:
    1
    Yes.
    But anyway I recommend to ask this question on spigot.
     
  7. HackerOTVW

    HackerOTVW Active Member

    Joined:
    Sep 10, 2017
    Messages:
    91
    Likes Received:
    2
    I think you want to make the player eat the ax as if eating food, it's an animation. I also have the same problem, can someone help, may be use skript-mirror ?
     
  8. Scholler

    Scholler Active Member

    Joined:
    Aug 6, 2018
    Messages:
    130
    Likes Received:
    9
    If the code what Flajakay sent is not working, then I think it's not possible in Skript (with animation). Search for plugins. Another way is modify the minecraft client but that's more difficult than doing the animation with skript :emoji_grinning:
    Maybe changing a food's texture
     
Thread Status:
Not open for further replies.

Share This Page

Loading...