#KJS Iron's spellbook problem on declaring school on if

18 messages · Page 1 of 1 (latest)

marble cloak
#

I making a script spellOnCast to find the school that I made in KJS, and remove a specif attribute from the player, but the school outputs like

[19dez.2025 12:31:03.153] [Render thread/INFO] [net.minecraft.client.gui.components.ChatComponent/]: [System] [CHAT] io.redspace.ironsspellbooks.api.spells.SchoolType@35bdf4db

How do I solve this?

wind notchBOT
#

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

mortal canopyBOT
#

Paste version of spells.js from @marble cloak

marble cloak
#

I forget to tag addon related

#

I commented the school type to see if typing this inside the if could work

#

KJS Iron's spellbook problem on declaring school on if

river bridge
#

@burnt oyster

burnt oyster
#

you can get a school id by calling .getId() on the school type or just using .id

marble cloak
#

But how do I do a If?

marble cloak
#

I think that it's too strange to I explain

#

let me clarify

marble cloak
mortal canopyBOT
#

Paste version of spells.js from @marble cloak

marble cloak
#

after the player.tell i want to say if on the spell cast it's from that school, it happens

#

the script is right but

#

but the school type is not a string