KubeJS Thread
KingTino104 opened this issue ยท 20 comments
Describe the Suggestion
This is a thread about how i dont understand KubeJS.
Screenshots and Videos
No response
Additional Context
No response
Alternatively, if you need a code that has been implemented look in the kubejs folder of ftbskies
Alternatively, if you need a code that has been implemented look in the kubejs folder of ftbskies
... welp i tried 'copying' those recipes it didnt work
note: i did fix all mods that arent in my pack so
Also this is what i was talking about fix your readme:
the first thing about sifting recipes
it dosent say kubejs or something, it just says sifting recipes.
If that is for a datapack you could've said like datapack format or something, u shouldn't just say sifting recipes.
Also you need to make it more obvious what is for kubejs 5 and what is for kubejs 6.
@billjk2013 i think i might have an idea what could be the problem.
its a problem with the script but u said copy from ftbskies thats what i did
so like the problem isnt anything with items btw in screenshot u can see that it isnt the problem.
oh btw @oierbravo why dont u tell me something, u said theres nothing to fix. i could've done it myself but ur docs arent good enough only thing i need is the crafting type or somtehing idk what its called so
Download crafttweaker and make sure that the item ID are correct by going to creative and put the item in you hand then I chat type /ct hand
I wouldn't be able to do anything with it for about 8 hours but I could give it a go after I'm off work
but I could give it a go after
k btw i will be asleep in 8 hours so i will not be able to respond.
Possibly
visual studio code says no errors, im gonna try using a datapack now.
The doc is for pack developer with previous knowledge in KubeJS, datapack and/or CraftTweaker.
Can you be more specific so I can address the issue.
after about a year (most of it with out working on my mod pack) I
figured it out`` here's my first working example
ServerEvents.recipes(event => {
event.recipes.createsifter.sifting({
type: "createsifter:sifting",
ingredients: [
{
item: "createsifter:string_mesh"
},
{
item: "minecraft:gravel"
}
],
results: [
{
item: "exdeorum:aluminum_ore_chunk",
chance: 0.08
},
{
item: "minecraft:amethyst_shard",
chance: 0.02
},
{
item: "exdeorum:boron_ore_chunk",
chance: 0.06
},
{
item: "minecraft:coal",
chance: 0.2
},
{
item: "exdeorum:copper_ore_chunk",
chance: 0.16
},
{
item: "minecraft:diamond",
chance: 0.04
},
{
item: "minecraft:emerald",
chance: 0.02
},
{
item: "minecraft:flint",
chance: 0.4
},
{
item: "exdeorum:gold_ore_chunk",
chance: 0.06
},
{
item: "exdeorum:iridium_ore_chunk",
chance: 0.06
},
{
item: "exdeorum:iron_ore_chunk", // Fixed typo here
chance: 0.2
},
{
item: "minecraft:lapis_lazuli",
chance: 0.06
},
{
item: "exdeorum:lead_ore_chunk", // Fixed typo here
chance: 0.08
},
{
item: "exdeorum:magnesium_ore_chunk",
chance: 0.14
}
],
processingTime: 500
});
});