Modscraper Modscraper Minecraft
KubeJS Curios logo

KubeJS Curios

Mod

by zhaiji

Curios integration for Kubejs

Type

Mod

CurseForge Downloads

3,641,055

CurseForge ID

1255211

Last Updated

Nov 6, 2026

Description

Curios integration for KubeJS

Use this mod, you can:

  1.Get CuriosHelper from LivingEntity

  2.Create Custom Curios

  3.Add Curios capabilities to items

  4.Register or remove Curios render

  5.Add CuriosJS Events

LivingEntity Curios Helper

Registry Curios & Item Modify (Startup)

StartupEvents.registry('item', event => {
    event.create('test')
        .attachCuriosCapability(
            CuriosJSCapabilityBuilder.create()
                .curioTick((slotContext, stack) => { })
                .onEquip((slotContext, oldStack, newStack) => { })
                .onUnequip((slotContext, oldStack, newStack) => { })
                .canEquip((slotContext, stack) => true)
                .canUnequip((slotContext, stack) => true)
                .modifySlotsTooltip((tooltips, stack) => tooltips)
                .addAttribute(
                    "minecraft:generic.max_health",
                    UUID,
                    20,
                    'addition'
                )
                .modifyAttribute(attributeModificationContext => {
                    let { slotContext, UUID, stack, modifiers } = attributeModificationContext
                    attributeModificationContext.modify(
                        "minecraft:generic.armor",
                        "identifier",
                        20,
                        'addition'
                    )
                })
                .canDrop((slotContext, source, lootingLevel, recentlyHit, stack) => true)
                .modifyAttributesTooltip((tooltips, stack) => tooltips)
                .modifyFortuneLevel((slotContext, lootContext, stack) => 0)
                .modifyLootingLevel((slotContext, source, target, baseLooting, stack) => 0)
                .makesPiglinsNeutral((slotContext, stack) => false)
                .canWalkOnPowderedSnow((slotContext, stack) => false)
                .isEnderMask((slotContext, enderMan, stack) => false)
        )
        .maxStackSize(1)
        .tag("curios:head")
})

ItemEvents.modification(event => {
    event.modify('apple', item => {
        item.attachCuriosCapability(
            CuriosJSCapabilityBuilder.create()
                .curioTick((slotContext, stack) => { })
                .onEquip((slotContext, oldStack, newStack) => { })
                .onUnequip((slotContext, oldStack, newStack) => { })
                .canEquip((slotContext, stack) => true)
                .canUnequip((slotContext, stack) => true)
                .modifySlotsTooltip((tooltips, stack) => tooltips)
                .addAttribute(
                    "minecraft:generic.max_health",
                    "identifier",
                    20,
                    'addition'
                )
                .modifyAttribute(attributeModificationContext => {
                    let { slotContext, UUID, stack, modifiers } = attributeModificationContext
                    attributeModificationContext.modify(
                        "minecraft:generic.armor",
                        UUID,
                        20,
                        'addition'
                    )
                })
                .canDrop((slotContext, source, lootingLevel, recentlyHit, stack) => true)
                .modifyAttributesTooltip((tooltips, stack) => tooltips)
                .modifyFortuneLevel((slotContext, lootContext, stack) => 0)
                .modifyLootingLevel((slotContext, source, target, baseLooting, stack) => 0)
                .makesPiglinsNeutral((slotContext, stack) => false)
                .canWalkOnPowderedSnow((slotContext, stack) => false)
                .isEnderMask((slotContext, enderMan, stack) => false)
        )
    })
})

Render (Client)

CuriosJSEvents.registerRenderer(event => {
    // remove curios render
    event.remove('test')

    // register curios render
    event.register(
        'apple',
        context => {
            let {
                stack,
                slotContext,
                matrixStack,
                renderLayerParent,
                renderTypeBuffer,
                light,
                limbSwing,
                limbSwingAmount,
                partialTicks,
                ageInTicks,
                netHeadYaw,
                headPitch
            } = context
            let { modelManager } = Client
            let entity = slotContext.entity()
            let model = modelManager.getModel(new ModelResourceLocation(stack.id, 'inventory'))
            matrixStack.pushPose()
            CuriosRenderer.translateIfSneaking(matrixStack, entity)
            matrixStack.mulPose(new Quaternionf().rotateZ(JavaMath.toRadians(180)))
            matrixStack.mulPose(RotationAxis.YP.deg(-netHeadYaw))
            matrixStack.mulPose(RotationAxis.XP.deg(-headPitch))
            Client.itemRenderer.render(
                stack,
                'head',
                false,
                matrixStack,
                renderTypeBuffer,
                light,
                OverlayTexture.NO_OVERLAY,
                model
            )
            matrixStack.popPose()
        }
    )
})

Recommended Gear

Affiliate

Hardware and extras that pair well with this mod.

As an Amazon Associate I earn from qualifying purchases.

Screenshots

Similar Mods

Included in Modpacks (110)

Show fewer
FTB StoneBlock 4 FTB StoneBlock 4 MC Eternal 2 MC Eternal 2 Society: Sunlit Valley Society: Sunlit Valley Prodigium Reforged (Terraria Pack) Prodigium Reforged (Terraria Pack) Society: Sunlit Cobblemon Society: Sunlit Cobblemon Reminiscence Reminiscence Restless Horizons Restless Horizons Roguelike Adventures and Dungeons 3 Roguelike Adventures and Dungeons 3 A Distant Journey A Distant Journey Create Colonies - AERONAUTICS Create Colonies - AERONAUTICS PandAce's World PandAce's World StaTech Industry 2 StaTech Industry 2 Create Eternal Journey Create Eternal Journey Druidic Quest: Expert Druidic Quest: Expert TechAcademy TechAcademy The Fallen World - Prehistoric Corruption The Fallen World - Prehistoric Corruption NeepMeat - Trifecta NeepMeat - Trifecta Xomaps Potato Master Xomaps Potato Master Mechanomania Mechanomania Create: Cobblemon [Cardboard Edition] Create: Cobblemon [Cardboard Edition] Mechanical Infinity Mechanical Infinity Realm of Destiny Realm of Destiny Creative Drawers Producer 2 Creative Drawers Producer 2 Mystical Block 2 Mystical Block 2 HeroCraft made by DieAvengers3 HeroCraft made by DieAvengers3 PS Homegrown - Sunlit Valley PS Homegrown - Sunlit Valley Creatopia Unbound Creatopia Unbound Greg-E Greg-E BeetleKnight's Beyond BeetleKnight's Beyond Xomaps Potato Sky Xomaps Potato Sky Who Am I - Not Me Who Am I - Not Me Xomaps 2 Xomaps 2 Matti's Skyblock Matti's Skyblock MI:Lost Favor MI:Lost Favor Nostalgic Craft 2 Nostalgic Craft 2 Ages Reimagined Ages Reimagined All Roads Lead to The Void All Roads Lead to The Void Dawn Piece Dawn Piece Sonic Block FF Sonic Block FF Modustrie Modustrie Create_Craft&Quiet Create_Craft&Quiet TerraFirmaKingdoms Season 1 TerraFirmaKingdoms Season 1 GATE Guns & Magic GATE Guns & Magic LuxeCraft SMP LuxeCraft SMP SkyTech Evolution SkyTech Evolution Furtastic (a changed adventure) Furtastic (a changed adventure) DiscoveryRPG DiscoveryRPG Dragon create Dragon create The Darkstorm Modpack The Darkstorm Modpack Just Create SMP S1 - But Voltura Just Create SMP S1 - But Voltura Mystical Astral Infinity Mystical Astral Infinity Witches, Warlocks, Vampires, and Werewolves Witches, Warlocks, Vampires, and Werewolves GameGarden Ultimate GameGarden Ultimate Create-O-Holics 1 dot 5 Create-O-Holics 1 dot 5 Chronost Incorporated Chronost Incorporated Magic & Mechanisms - Airborne Magic & Mechanisms - Airborne The SV Vault The SV Vault Gregtech Voyager Gregtech Voyager THE FORGOTTEN SMP THE FORGOTTEN SMP Mechanical suffering Mechanical suffering Femtomancy Femtomancy Crafterria: Genes & Gears Crafterria: Genes & Gears Blighted Dreams Blighted Dreams Project Z - Zombie Apocalypse Project Z - Zombie Apocalypse Tinkerer Kingdom Tinkerer Kingdom Collectionist Collectionist Winter Leveling Winter Leveling The Collective, The Aeronautical Edition The Collective, The Aeronautical Edition Warspire Warspire Create Boundary Engineer Create Boundary Engineer Absolute Industrialization Absolute Industrialization ALCHEMIST RPG ALCHEMIST RPG Maor The King Of The Light Maor The King Of The Light CUNICULUM CUNICULUM Stalecraft Stalecraft GearboundSMP S2 - Create Multiplayer GearboundSMP S2 - Create Multiplayer MagicaIndustries MagicaIndustries Revitrix Revitrix PioneersTFC PioneersTFC Toky Craft Toky Craft Machina Arcanum Machina Arcanum CreateSMP Aeronautics CreateSMP Aeronautics Create Astralization Create Astralization Cobblemon Grand Journey Cobblemon Grand Journey Redwolf's Crazy World Redwolf's Crazy World SwellCraft - Create & Cobblemon SwellCraft - Create & Cobblemon Mint Flavored Mint Flavored Valley Chill Valley Chill Civilization Isolaria Civilization Isolaria MTZ EXPERTE MTZ EXPERTE Create - New Age Survival Create - New Age Survival cobblemon & create cobblemon & create Syntex Gaming Community Syntex Gaming Community Cogwork Genesis Cogwork Genesis Creative TFC Creative TFC Industrial Colony 2 Industrial Colony 2 World's Coliding World's Coliding Goon Wars Goon Wars Everglave Everglave Runeforge Chronicles Runeforge Chronicles

External Resources