#Hello would it be possible to add a durability nbt to an item that have not ?

55 messages · Page 1 of 1 (latest)

hollow schooner
#

what title says

distant egretBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

untold moatBOT
#

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.

hollow schooner
#

Ok

fleet pivot
#

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

hollow schooner
#

How would it take form bc i tried it and it do not work like no erros but nothing happens

untold moatBOT
#

🗒️**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.

hollow schooner
#
  event.modify('createsifter:brass_mesh', item => {
    item.maxDamage = 200
    item.maxStackSize = 1
  })
})```
untold moatBOT
#

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)
})
fleet pivot
#

use the js bit after the backticks to add the syntax highlighting

fleet pivot
#

basic items don't have durability

hollow schooner
#

Okay I'll try it I'm not very confident with syntax but I will try

hollow schooner
#

@fleet pivot On wiki they said that tier thing is broken atm does it work anyway ?

fleet pivot
#

where does it say that?

hollow schooner
fleet pivot
#

send the link here

hollow schooner
fleet pivot
#

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

hollow schooner
#

i mean their is no way to make an item have a durability at all ?

fleet pivot
#

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

hollow schooner
#

what dura damage ?

fleet pivot
#

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

hollow schooner
#

apparently their is a way since the sifter mod dev made a kubejs create integration

fleet pivot
#

look into that then

#

you'll be best off closing this ticket and making a new issue if you have one with that

hollow schooner
#

their is a event.recipes.createsifterSifting

#

could it work ? as i said i am a very low skill for now

fleet pivot
#

ye but does that allow you to damage a mesh item?

#

if it doesn't have a damage attribute

untold moatBOT
#

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!

fleet pivot
#

it is impossible

hollow schooner
#

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

fleet pivot
#

that doesn't matter

#

if the recipe

#

doesnt damage it

#

it doesnt matter if it has dura

#

it wont go down

hollow schooner
#

cant i reduce it by 1 when the event sifting happen ?

fleet pivot
#

not easily

#

and if as you say you are inexperienced, you'd be in for a whole word of pain figuring it out