Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

LiquidBounce Forum

  1. Home
  2. ScriptAPI
  3. plz help

plz help

Scheduled Pinned Locked Moved ScriptAPI
14 Posts 6 Posters 2.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    ultraskid
    wrote on last edited by
    #2

    try using item IDs

    1 Reply Last reply
    0
    • K Offline
      K Offline
      KnechtRobert5
      wrote on last edited by
      #3

      what do you mean by that?
      minecraft:apple gave me the same error but instead of apple it said minecraft:apple in the crash report

      1 Reply Last reply
      0
      • superblaubeere27S Offline
        superblaubeere27S Offline
        superblaubeere27
        Moderator
        wrote on last edited by
        #4

        Replace apple with field_151034_e. You have to use the obfuscated name due to a twerk in the ScriptAPI, that will hopefully be fixed soon

        infAuraI K 2 Replies Last reply
        1
        • superblaubeere27S superblaubeere27

          Replace apple with field_151034_e. You have to use the obfuscated name due to a twerk in the ScriptAPI, that will hopefully be fixed soon

          infAuraI Offline
          infAuraI Offline
          infAura
          wrote on last edited by
          #5

          @superblaubeere27 twerk hmmmmmmmm

          1 Reply Last reply
          0
          • superblaubeere27S superblaubeere27

            Replace apple with field_151034_e. You have to use the obfuscated name due to a twerk in the ScriptAPI, that will hopefully be fixed soon

            K Offline
            K Offline
            KnechtRobert5
            wrote on last edited by KnechtRobert5
            #6

            @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?

            C 1 Reply Last reply
            0
            • K KnechtRobert5

              @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?

              C Offline
              C Offline
              commandblock2
              wrote on last edited by commandblock2
              #7

              @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 like

              FD: 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
              
              K 1 Reply Last reply
              1
              • C commandblock2

                @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 like

                FD: 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
                
                K Offline
                K Offline
                KnechtRobert5
                wrote on last edited by
                #8

                @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

                C 1 Reply Last reply
                0
                • K KnechtRobert5

                  @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

                  C Offline
                  C Offline
                  commandblock2
                  wrote on last edited by
                  #9

                  @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.

                  Senk JuS K 2 Replies Last reply
                  0
                  • C commandblock2

                    @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.

                    Senk JuS Offline
                    Senk JuS Offline
                    Senk Ju
                    Admin
                    wrote on last edited by
                    #10

                    @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.

                    1 Reply Last reply
                    0
                    • C commandblock2

                      @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.

                      K Offline
                      K Offline
                      KnechtRobert5
                      wrote on last edited by KnechtRobert5
                      #11

                      @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.

                      Senk JuS 1 Reply Last reply
                      0
                      • K KnechtRobert5

                        @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.

                        Senk JuS Offline
                        Senk JuS Offline
                        Senk Ju
                        Admin
                        wrote on last edited by Senk Ju
                        #12

                        @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

                        SenkJu created this issue in CCBlueX/LiquidBounce1.8-Issues

                        closed [BUG] Setting icon of script tab not working because Minecraft is obfuscated #189

                        K 1 Reply Last reply
                        0
                        • Senk JuS Senk Ju

                          @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

                          SenkJu created this issue in CCBlueX/LiquidBounce1.8-Issues

                          closed [BUG] Setting icon of script tab not working because Minecraft is obfuscated #189

                          K Offline
                          K Offline
                          KnechtRobert5
                          wrote on last edited by
                          #13

                          @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 ^^

                          Senk JuS 1 Reply Last reply
                          0
                          • K KnechtRobert5

                            @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 ^^

                            Senk JuS Offline
                            Senk JuS Offline
                            Senk Ju
                            Admin
                            wrote on last edited by
                            #14

                            @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

                            SenkJu created this issue in CCBlueX/LiquidBounce1.8-Issues

                            open [BUG] Duplicate Script InventoryTabs after reloading #3883

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            About
                            • Terms of Service
                            • Privacy Policy
                            • Status
                            • Contact Us
                            Downloads
                            • Releases
                            • Source code
                            • License
                            Docs
                            • Tutorials
                            • CustomHUD
                            • AutoSettings
                            • ScriptAPI
                            Community
                            • Forum
                            • Guilded
                            • YouTube
                            • Twitter
                            • D.Tube
                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups