u/ElmtreeStudio

Why do people say that the first function is better?
▲ 288 r/godot

Why do people say that the first function is better?

These two bits of code do the exact same thing in my eyes, but I have seen multiple videos where they do the first chunk over the second. I have never heard reasoning as to why if someone could enlighten me. Thank you!

u/ElmtreeStudio — 14 days ago
▲ 31 r/CurseForge+2 crossposts

As the title says, I am trying to add information tabs to some items in my 1.20.1 modpack. The 1.19+ version of the code is supposed to be:

REIEvents.information(event => {
event.addItem('example:ingredient', ['Line 1', 'Line 2'])
})

but my code only works when I do:

REIEvents.information(event => {
event.addItem("minecraft:dirt", "dirt", "more dirt")
})

When I remove "more dirt" it breaks and does not show the tab. I am not sure where it is displaying "dirt". Any advice is appreciated

u/ElmtreeStudio — 17 days ago