#curios items
16 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
need mod powerfuljs
I haven't studied how to add a model that can be displayed on the player model. My friend told me that this feature has a bug
StartupEvents.registry('item', event => {
event.create('testbody')
.maxStackSize(1)
.attachCapability(CuriosCapabilityBuilder.CURIOS.itemStack()
.canEquip(((item, context) => true))
.canUnequip(((item, context) => true))
.modifyAttribute("irons_spellbooks:cooldown_reduction", "cd_redu", 1, "addition")
.modifyAttribute("irons_spellbooks:max_mana", "mana_add", 1, "addition")
.modifyAttribute("minecraft:generic.attack_damage", "attack_damage", 1, "addition")
.modifyAttribute("minecraft:generic.attack_speed", "attack_speed", 1, "addition")
)
.tag("curios:body")
})
ty :D
do you know how to add a 2d spite so its not just a missing texture btw
if its no bother qq
Do you know ProbeJS? This mod can provide code completion for your VSCode
Like this, it's really useful
You need to pay attention to the image path
For example, if your real path is assets/kubejs/item/curios/test, you need to write it as kubejs:item/curios/test when coding
i havent used kubejs alot tbh
also thank you again :D
hey would you know how to make an item give potion effects :D
.curioTick((item, context) => {
const player = context.entity()
if (player.age % 20 !== 0) return
player.potionEffects.add('minecraft:strength', 60 * 20)
})
like this
ty :D
do you know if its possible to give a curios item an inventory