#curios items

16 messages · Page 1 of 1 (latest)

nova basalt
#

hey im wanting to make an item that goes into a curios slot can anyone help me plz
:D
idea for the items would be that they go on the body and give extra attack speed or attack damage and for iron spells cd reduction cast time or more mana

echo roverBOT
#

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

vocal comet
#

need mod powerfuljshmmm
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 bugheh

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")
})
nova basalt
#

do you know how to add a 2d spite so its not just a missing texture btw

#

if its no bother qq

vocal comet
#

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

nova basalt
#

also thank you again :D

nova basalt
#

hey would you know how to make an item give potion effects :D

vocal comet
#
      .curioTick((item, context) => {
        const player = context.entity()
        if (player.age % 20 !== 0) return
        player.potionEffects.add('minecraft:strength', 60 * 20)
      })
#

like this

nova basalt
#

ty :D

nova basalt
#

do you know if its possible to give a curios item an inventory