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.

Custom item model by damage with skript

Discussion in 'Skript' started by kapec323, Aug 26, 2017.

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

    kapec323 Member

    Joined:
    Jan 26, 2017
    Messages:
    2
    Likes Received:
    1
    hey i want to create a custom item witch texture pack i have model file
    {
    "parent": "item/handheld",
    "textures": {
    "layer0": "items/diamond_hoe"
    },
    "overrides": [
    { "predicate": {"damaged": 0, "damage": 0}, "model": "item/diamond_hoe"},
    { "predicate": {"damaged": 0, "damage": 0.0012545482}, "model": "item/diamond_sword"},
    { "predicate": {"damaged": 1, "damage": 0}, "model": "item/diamond_hoe"}
    ]
    }
    (if damage of hoe is 0.0012545482 hoe get diamond sword look)
    how i can do it in skript like nbt or set damage ?

    i found plugin called NewItems on spigot premium and its work like my idea
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Newitems isnt available currently, unless you got it when he was selling only 20 copies he's closed it down again.(had my eye on it and missed my windowOTL) but you can add custom nbt with skstuff.
    [​IMG]
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    skript nbt dosn't set damage of item i try
    give player a diamond hoe with custom nbt "{Damage:0.00111}" and add "{Damage:0.00111}" to ntb of player's tool
    and this give that effect
    [​IMG]
    i need to set this second damage
     
  4. Lego_freak1999

    Lego_freak1999 Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    664
    Likes Received:
    45
    I know how newitems is made i might make it in skript some time soon :emoji_grinning:

    Click agree on this reply if you want to see this
     
    #4 Lego_freak1999, Oct 10, 2017
    Last edited: Oct 10, 2017
  5. Epicskymi

    Epicskymi Active Member

    Joined:
    Feb 14, 2017
    Messages:
    71
    Likes Received:
    11
    I do this already its rather simple to do

    All the tutorials seem rather outdated I might make one of my own
     
  6. Lego_freak1999

    Lego_freak1999 Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    664
    Likes Received:
    45
    Yeah i know its easy but i am talking About a advanced skript with functions/api so you can skript custom functions To items / custom blocks / armor
     
  7. HackerOTVW

    HackerOTVW Active Member

    Joined:
    Sep 10, 2017
    Messages:
    91
    Likes Received:
    2
    I want to see it, pm me pls :emoji_slight_smile:
     
  8. Pikachu

    Supporter Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    870
    Likes Received:
    139
    Medals:
    It's done via damage values and a texture pack
     
    HackerOTVW likes this.
  9. Lego_freak1999

    Lego_freak1999 Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    664
    Likes Received:
    45
    Yes but without replacing any items in the game
     
  10. HackerOTVW

    HackerOTVW Active Member

    Joined:
    Sep 10, 2017
    Messages:
    91
    Likes Received:
    2
    Can you teach it for me? Pls
     
  11. Epicskymi

    Epicskymi Active Member

    Joined:
    Feb 14, 2017
    Messages:
    71
    Likes Received:
    11
    there 2 ways so do item models with or without the unbreaking tag
    so only models with the unbreaking tag are affect by em
    so normal items stay the same


    as for custom item stat wise pretty simple you can figure it out
     
  12. HackerOTVW

    HackerOTVW Active Member

    Joined:
    Sep 10, 2017
    Messages:
    91
    Likes Received:
    2
    So I have to put 2 tags nbt is unbreaking and damage?
     
  13. Pikachu

    Supporter Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    870
    Likes Received:
    139
    Medals:
    In newer versions (1.9+ i think) you can have different textures based on the damage value of an item. So, you can just overwrite data values that aren't used in vanilla
     
  14. HackerOTVW

    HackerOTVW Active Member

    Joined:
    Sep 10, 2017
    Messages:
    91
    Likes Received:
    2
    How can I do it in skript, can you tell me ?
     
  15. Lego_freak1999

    Lego_freak1999 Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    664
    Likes Received:
    45
    i already got it to work like 2 months ago but i am now making a remake of NewItems in skript. With minor features to start with but will expand it to the full deal. Also have some ideas that curretly not even are in NewItems
     
    HackerOTVW likes this.
  16. Lolinator

    Lolinator Member

    Joined:
    Mar 2, 2017
    Messages:
    4
    Likes Received:
    1
    I took one of those copies. :emoji_stuck_out_tongue:
     
    Wynnevir likes this.
Thread Status:
Not open for further replies.

Share This Page

Loading...