#Max item durability changing

64 messages · Page 1 of 1 (latest)

glossy ocean
#

so the most recent version of ice and fire had the issue with durability of its items fixed, so most of the items doesnt have the maximum of 8000 uses but rather its desired amount, althou the mod still doesnt respond to outside value changers like kubejs item modification event or property modifier mod. i was thinking of tryong to solve that problem once and for all here, so anyone intersted in helping out dont hesitate to try

cosmic masonBOT
#

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

feral perch
#

??ctc

dusty sigilBOT
# feral perch ??ctc

The thing you are trying to do can probably be achieved using the mods config, without anything extra!
Most mods have at least one config located at instance/config.
Some mods also have serverconfigs, found at instance/saves/worldname/serverconfig. You can copy any files in here to the defaultconfigs folder to automatically apply them to new worlds!

feral perch
#

or otherwise

#

??kjswiki

dusty sigilBOT
# feral perch ??kjswiki

You can modify various properties of an existing item with KubeJS, and the wiki has a page on it!

glossy ocean
dusty sigilBOT
#

Paste version of scriptitemedit.js from @glossy ocean

dull heron
#
    event.modify("iceandfire:silver_sword", item =>{
        item.tier = tierOptions => {
            tierOptions.uses = 222

        }
    })

this works here

glossy ocean
#

and youre using the most recent version of ice and fire

#

on 1.18.2

#

just making sure

#

im gonna try it anyways thou give me a while

#

my minecraft directory takes some time to load with all of the mods im using

dull heron
#

yeah i'm using, just downloaded

glossy ocean
#

this is so strange

dull heron
#

you are using maxdmg, not use

glossy ocean
#

okay im launching the game

feral perch
#

wdym?

glossy ocean
feral perch
#

ah

glossy ocean
#

well i got an error log that says its missing an ,, ; " before statement

#

looks like this

astral dawn
#

you're missing a bracket and parenthesis

#

??editor

dusty sigilBOT
# astral dawn ??editor

If you're working with KubeJS scripts, configuration files, or similar things, we generally recommend using an actual IDE rather than just Notepad and its various siblings. In a lot of cases, it can help you with finding errors in your code faster and also gives you neat features like syntax highlighting, automatic formatting, et cetera! We recommend Visual Studio Code, since it's lightweight(-ish) and works very well with JavaScript files out-of-the-box.

feral perch
dusty sigilBOT
# feral perch ??sendcode

Send your code here instead of a screenshot

It makes it easier to diagnose your code and help you fix it or make the required changes/additions.

glossy ocean
#

i might have pasted it incorrectly, yes, im gonna try to get this done

dull heron
#

read my msg again, it is not }), only } and after that })

feral perch
#

if I'm reading that light mode notepad++ correctly

astral dawn
feral perch
#

oh 😅

dull heron
#

if you are serious with Kubejs scripting you should use VSCode + ProbeJS

feral perch
#

that's what happens when you want me to read light mode notepad++ at 11pm

glossy ocean
#

did i got it right

feral perch
#

probably

#

??sendcode

astral dawn
#

seems like it

dusty sigilBOT
# feral perch ??sendcode

Send your code here instead of a screenshot

It makes it easier to diagnose your code and help you fix it or make the required changes/additions.

glossy ocean
#

man i swear when it gets late im losing it to even the simplest things imaginable

#

lets see my game is launching

feral perch
#

that's what happens when you use notepad++ instead of an actual code editor

feral perch
#

vsc would've screamed at you

feral perch
#

sorta

dull heron
feral perch
#

she deleted it and remade it as sendcode

glossy ocean
#

nah i have a vs code but its just like i was expecting it to get done in such a quick manner that it wouldnt matter

dusty sigilBOT
#

[Quote ➤](#1135623763560517692 message) Macro 'sychioas' removed!

glossy ocean
#

OH my god

#

man @dull heron thank you so much

#

iv been trying to get this done for ages and i finally succeed

#

youre such a gold hearted person helping me out of nowhere at late hours for no reason at all

#

the big guy above will reward you generously in the afterlife im tellin ya

glossy ocean
#

ye i know i know but i suppose you get my point

feral perch
#

I kinda do

glossy ocean
#

damn i hope you guys have a wonderful living out there, now im going to get started on tweaking all the items that were perviously just pissing me off with their lack of synergy in the contrast to other ones that ive tuned