#Hello would it be possible to add a durability nbt to an item that have not ?
55 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
Please be patient, we're helping as fast as we can
We volunteer our time and knowledge to help people as we can.
Not everyone here will have your answer the moment you want it.
Time zones, work/life/schedules etc. also change when people are available to help.
TL;DR: Please have patience. IF and WHEN someone knows, they will assist you.
Ok
this wouldn't be achieved through adding nbt
you'd definitely have to do it by editing the item in the item modification event
you might be able to change type and tier to give it durability
*the
How would it take form bc i tried it and it do not work like no erros but nothing happens
🗒️**Send the code!**🗒️
You may have an issue with a KubeJS script and you explain it to the best of your ability yet without the actual code in question we have very little to go off of in trying to assist you.
event.modify('createsifter:brass_mesh', item => {
item.maxDamage = 200
item.maxStackSize = 1
})
})```
You can write your code in a codeblock by typing it between the codeblock delimiters:
Note that these are backticks, not apostrophes
```js :arrow_left:
ServerEvents.recipes(event => {
event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
``` :arrow_left:
This example will look like this:
ServerEvents.recipes(event => {
event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
use the js bit after the backticks to add the syntax highlighting
you'll need to change that actual tier and tool type of the item
basic items don't have durability
Okay I'll try it I'm not very confident with syntax but I will try
@fleet pivot On wiki they said that tier thing is broken atm does it work anyway ?
where does it say that?
send the link here
Minecraft Version 1.19.2 KubeJS Version 56751b4 Rhino Version rhino-forge-1902.2.2-build.268.jar Architectury Version 6.5.82 Forge/Fabric Version 43.2.11 Describe your issue This script doesn't...
I got no idea then
didn't realise it was broken
I haven't had a use for that as I use silent gear where I can just change the tier with a single number
i mean their is no way to make an item have a durability at all ?
I very much doubt it
and it wouldn't function properly without a lot of changes
you'd be best to try adding a custom item
but I doubt the sifting recipes would support dura damage#
so you'd have to write a custom serialiser
and I can tell you, you do not wanna do that
what dura damage ?
damaging the tool in the recipe
actually decrementing durability
so even if you pulled off what you are trying it probably wouldn't even work
apparently their is a way since the sifter mod dev made a kubejs create integration
look into that then
you'll be best off closing this ticket and making a new issue if you have one with that
their is a event.recipes.createsifterSifting
could it work ? as i said i am a very low skill for now
ye but does that allow you to damage a mesh item?
if it doesn't have a damage attribute
Just because someone said it isn't possible doesn't mean it actually is. Instead they meant that no one has successfully done it yet.
Be the first!
it is impossible
he lets a way to create custom mesh by event.create
so i can make create it with a tier
i'll try maybe i can
that doesn't matter
if the recipe
doesnt damage it
it doesnt matter if it has dura
it wont go down
cant i reduce it by 1 when the event sifting happen ?