Custom item model by damage with skript

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

kapec323

Member
Jan 26, 2017
2
1
0
22
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
 
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.
cf47d6f54f.png
 
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
vM3x0qHnTQiCtSNX3aN4fA.png

i need to set this second damage
 
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
vM3x0qHnTQiCtSNX3aN4fA.png

i need to set this second damage

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
 
Last edited:
I do this already its rather simple to do

All the tutorials seem rather outdated I might make one of my own
 
I do this already its rather simple to do

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

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
 
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
 
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
How can I do it in skript, can you tell me ?
 
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
 
  • Like
Reactions: HackerOTVW
Status
Not open for further replies.