All Mods Resource Packs Data Packs Shaders Modpacks Plugins
KubeJS + CC: Tweaked

KubeJS + CC: Tweaked

by Wolfieboy09 • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

Credits go to Amygdaloideae (Prunoideae on GitHub). Original mod here \ Big thanks to richie3366 for helping to make the port work! \ Mod icon made by FooterMan16 \

required sides

Available on both Curseforge and Modrinth

CurseForge: CurseForge Downloads \Modrinth: Modrinth Downloads

Adds support for KubeJS to add peripherals to any block.

GO VISIT THE WIKI HERE! All things are there!

Example of methods you could add to furnaces:

// priority: 0
// The following code was last updated: April 30th 2024

// Visit the wiki for more info - https://kubejs.com/
ComputerCraftEvents.peripheral(event => {
    // First Param: peripheral type
    // Second Param: What block it goes to
    // Note: you can use regex for the second param

    event.registerPeripheral("furnace", "minecraft:furnace")
        // This limits the method to 1 call/tick,
        // as the method is scheduled on main thread.
        // The main thread is synced with the block
        .mainThreadMethod("burnTime", (container, direction, arguments) => {
            // This custom method returns the current
            // remaining burntime the furnace has.
            return container.entityData.getInt("BurnTime")
        })
        .mainThreadMethod("cookingProgress", (container) => {
            // This custom method returns the percentage
            // of the current cooking process going on.
            // A progress of 0 returned during two consecutive
            // ticks means that there is no cooking happening.
            let data = container.entityData
            let cookTime = data.getInt('CookTime')
            let cookTimeTotal = data.getInt('CookTimeTotal')
            if (!cookTimeTotal) return 0;
            return (cookTime / cookTimeTotal) * 100
        })


        // This has no limit on calling
        // however, the method can't access most of the in-world data.
        // For example, it couldn't access the NBT of a tile entity
        .method("say_hi", (container, direction, arguments) => {
            container.up.set("diamond_block")
            return "hi, here's your diamond block"
        })
})

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.20.2
Forge
last yr. 1
1.19.2
Forge
last yr. 1
1.19.2
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
  • Add updateJSONURL
  • Code fixes to have fewer warnings from IDE


  • Add updateJSONURL
  • Code fixes to have fewer warnings from IDE
First release for 1.19.2
[1.0.1-beta] 1.0.1 BETA by Wolfieboy09 on May 01, 2024
Download
  • Fixed mod name in mods.toml
  • Updated mod logo
  • Fixed license from LGPLv3 to LGPLv2.1
[1.0.0-beta] 1.0.0 BETA by Wolfieboy09 on Apr 30, 2024
Download
First Release
KubeJS + CC: Tweaked Icon
Download KubeJS + CC: Tweaked
Select game version
Select platform