Mod
KubeJS + CC: Tweaked
No reviews yet
KubeJS + CC: Tweaked for Forge
Does not follow a specific thematic focus apart from vanilla Minecraft.
Used for mods with little to no gameplay elements.
A modified or ported version of an existing mod.
Adds extra features or content to an existing mod.
Forge is a popular mod loader for versions 1.1+ of Minecraft.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description
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
Suggestion? Bug report? Go here: https://github.com/wolfieboy09/KubeJS-CC-Tweaked/issues/ (I will see it a lot faster then CurseForge comments)
Go to Modrinth for a better experience!
Available on both Curseforge and Modrinth
CurseForge:
Modrinth:
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"
})
})
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 \
Available on both Curseforge and Modrinth
CurseForge: \Modrinth:
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"
})
})
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers