plz help
-
Replace
apple
withfield_151034_e
. You have to use the obfuscated name due to a twerk in the ScriptAPI, that will hopefully be fixed soon -
@superblaubeere27 twerk hmmmmmmmm
-
@superblaubeere27 thanks
edit: i didnt especially want an apple as the icon and i dont want to bother you with giving me every single obfuscated name but is there a way for me to know which item (?) equals which obfuscated name?
-
@KnechtRobert5
.minecraft/LiquidBounce-1.8/mcp-stable_22.srg
Edit if you can't find it on your computer then download it from here, that's where LB downloads the file.
Here is what it looks likeFD: net/minecraft/init/Items/flint_and_steel net/minecraft/init/Items/field_151033_d FD: net/minecraft/init/Items/apple net/minecraft/init/Items/field_151034_e FD: net/minecraft/init/Items/bow net/minecraft/init/Items/field_151031_f
-
@commandblock2 found most of what i needed by just STRG + F searching for it in the file, sorry to bother you but how do i find blocks as items? searching for it didnt seem to be helpful in this case
-
@KnechtRobert5 wdym by
find block as items
do you mean something like this
FD: net/minecraft/init/Blocks/lapis_block net/minecraft/init/Blocks/field_150368_y FD: net/minecraft/init/Blocks/dispenser net/minecraft/init/Blocks/field_150367_z
or somthing idk.
also I find this very confusing. If that didn't work then some one might need to update it.
-
@commandblock2 When I wrote the new script API, I only tested scripts in IntelliJ where Minecraft isn't obfuscated. That's why I didn't notice, it won't work this way outside of IDEs. I haven't updated the example yet because this bug will most likely be fixed in the upcoming version anyway and not many people make scripts which add more inventory tabs.
-
@commandblock2 for items e.g. an apple which hasnt a block form, i could just search for apple and find an obfuscated name (?)
(FD: net/minecraft/init/Items/apple net/minecraft/init/Items/field_151034_e
)
which worked and displayed the correct texture but for e.g. a sponge its different idk why but there is no item like structure like that one shown above for that.
ive tried varius different obfuscated names that where found when searching sponge but no one seemed to match, anyway if that issue is fixed sooner or later i can probably live with that because i just need a working tab, icons can be adjusted later on. -
@KnechtRobert5 I will change the way items for tab icons are generated in the next update. Then both the problem with obfuscation and the fact that you cannot use every item should be fixed.
https://github.com/CCBlueX/LiquidBounce1.8-Issues/issues/3825
-
@Senk-Ju thanks, another thing:
idk if thats a bug or if it is intended but if you .reload or .scriptmanager reload and your script adds creative tabs, it reloads the tabs and adds them but does not clear the old ones.
this does not have any priority of any kind and i dont think this is a major issue but i just wanted to say that bcs idk if it is intended to work that way.
If it is, im sorry ^^ -
@KnechtRobert5 This is a bug. I will try to resolve it as well. I created an issue for it: https://github.com/CCBlueX/LiquidBounce1.8-Issues/issues/3883