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

D

DeScrupter

@DeScrupter
About
Posts
4
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Custom Script Help
    D DeScrupter

    OMG i got it working with your help

    The

    mc.player.dropSelectedItem(false)
    and
    mc.player.inventory.selectedSlot = 1

    when combining them with a for loop which goes from 0 to 8 will drop all slots in the hotbar

    Thank you for helping me. I can now finally finish the script. Thank you very very much

    Maybe someday i will write another help request (hopefully only maybe)

    Again thank you very much for your help 😁

    ScriptAPI

  • Custom Script Help
    D DeScrupter

    so just a question what is this code snipped trying to archive

    should it drop the players mainhand or hotbar or inventory?

    and will it even work

    i am sorry but its a bit hard to understand

    i got this now and removed the timer

    run: function() {
    Client.displayChatMessage(Dropping Item);
    inventory = mc.player.getInventory()
    itemStack = inventory.getStack(1)
    mc.player.dropItem(itemStack, false)
    }

    ScriptAPI

  • Custom Script Help
    D DeScrupter

    So i got this its not the complete script but the rest works i just need to drop the hotbar

    for (let i = 0; i < 9; i++) {
    let dropTask = new TimerTask({
    run: function() {

          var inventory = mc.thePlayer.getInventory();
          var itemStack = inventory.getStackInSlot(i);
    
          if (itemStack !== null) {
    
            mc.thePlayer.dropItem(true, itemStack);
            Client.displayChatMessage(`Dropped items from slot ${i + 1}`);
          } else {
            Client.displayChatMessage(`Slot ${i + 1} is empty.`);
          }
        }
      });
    
      timer.schedule(dropTask, delay);
    }
    
    ScriptAPI

  • Custom Script Help
    D DeScrupter

    Hi Guys,

    i recently dived into custom scripts and i would like that the player drops the current main hand slot i have tried already multiple things from different forums and also tried to do my own research in this "fabric" (yarn) library and on the "documentation" of LB but i just cant figure it out if you could help me with that it would be very nice.

    Thank you in advance,
    DeScrupter

    ScriptAPI
  • Login

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