Productive Bees

Productive Bees

10M Downloads

unable to get the guide book

VaporeonScripts opened this issue ยท 29 comments

commented

i tried crafting it but nothing
i tried giving it on first launch with kube js, but doesnt work, i need that book
image

commented

bruh

commented

I don't know, I'm guessin Item.of takes a second param which would be for the component data

commented

version?

commented

1.21.1 neoforge
altough i tried on a new world in creative by crafting and it gave me it?

commented

idk how that is possible

commented

image
that might be why lmao

commented

lemme remove that error : and make a new world

commented

yeah, it doesnt give the book

commented

the code in kube js is right but doesnt give it anyway :C

commented

the item is not called productivebees:guide, it's a patchouli guide book with productivebees:guide as the data

commented

once you have the book from crafting hold it in your hand and run the cmd /data get entity @p SelectedItem to get the ID and data

commented

alright,sec

commented

image
here

commented

image
what would i need to write there to give myself the book on first launch?

commented

altough other books such as this one
image
worked with the code

commented

and it was the correct id

commented

the book in your screenshot would not work, it's also one with a component
the three other guide books in your script uses their own item instead of the patchouli one and do not require a component

https://wiki.latvian.dev/books/kubejs-legacy/page/starting-items

it shows the second param in the example so it would be something like Item.of('patchouli:guide_book', '{components:{"patchouli_book": "productivebees:guide"}}')

commented

lemme try that

commented

doesnt work

commented

what do you expect me to do? I don't make kubejs and you give me no info on how it's not working. check the kjs logs or something

commented

dont u know the exact id of the book or wth?, anyways im asking in the kubejs discord

commented

image

Exact ID ^

commented

Yeah but that's gives an empty useless patchouli book

commented

That*

commented

that's why you need to add the component (what was NBT in pervious versions) as the second param

commented

I did,but it didn't give me the book

commented

Screenshot_20240928-233640_Discord.png

Ima try what the neoforge server manager said ig,ima let U know

commented

the id for the book is patchouli:guide_book[patchouli:book="productivebees:guide"]

commented

image
this works now