Giter Site home page Giter Site logo

autopickup plugin support about boxoutils HOT 6 OPEN

KhaozFrost avatar KhaozFrost commented on June 29, 2024
autopickup plugin support

from boxoutils.

Comments (6)

RedNesto avatar RedNesto commented on June 29, 2024

By looking at the AutoPickup's code I find it surprising it does not work. I will look into it when I have time.

Also that's funny because I was refactoring a part of the plugin and I thought about adding a "drop in world" option to CustomDrops which already exists in FasthHarvest, I guess I'll add it then.

from boxoutils.

KhaozFrost avatar KhaozFrost commented on June 29, 2024

from my testing what happens in this example from me trying to mess around with the plugin for a better understanding of it

with autodrop on the overwrite=true option doesn't work. what happens is they still get the iron ore but it also spawns the iron ingot and cobblestone too but those dont go into the inventory by default. so yeah

blocks {
  "minecraft:iron_ore" {
    experience=5
    overwrite=true
    drops=[
      {
        type="minecraft:cobblestone"
        chance=25
      }
      {
        type="minecraft:iron_ingot"
      }
    ]
    money {
      amount=1
      currency = "economylite:coin"
      chance=50
      message="&aYou found {money_amount} Meltan Candy while mining!"
    }
  }
} 

from boxoutils.

RedNesto avatar RedNesto commented on June 29, 2024

After some tests and changes to both AutoPickup and BoxOUtils I got it working, but I am not certain all those changes are good. The thing I do not understand is why items are duplicated, I still haven't found where the spawn part happens, because AutoPickup should already remove the spawned item.

Here are the modified plugin I got working:
AutoPickup - based on version 1.0.3.
BoxOUtils - Contains a bunch of quite important changes that are not released yet but work fine from what I can tell.

Could you test with these custom and tell me if it works fine for you too?

from boxoutils.

KhaozFrost avatar KhaozFrost commented on June 29, 2024

the duplicated item must happen within autopickup as the plugin from my understanding equivalent removes the block and gives them the item/items
so whats happening is auto pickup gives them the iron ore + box o utils gives them the items too. it now goes directly into inv which is great but the problem is still that trying to overwrite and make it where like iron ore in the example only gives whats defined rather then both. also it appears that the exp spawned with box-o isnt following autopickup either.

id also like to know about how to do unsafedamage of leaves and such aswell as if its possible to add a chance on the commands if they were to be added

from boxoutils.

RedNesto avatar RedNesto commented on June 29, 2024

I am afraid this issue cannot be solved easily, the only way this could work would be to tell AP to not track blocks or mobs drops if a CustomDrop will be processed and let Box O Utils add items to the inventory itself.

I am not sure if there is a proper way to do it, and it will definitely require changes to AP.

from boxoutils.

KhaozFrost avatar KhaozFrost commented on June 29, 2024

hm i see. yeah. i think the changes you made to ap may have unless its just broken in ap already cause the blocks to not search inventory and stack with same block if its not max stack. instead it'll just fill the inventory hotbar before targeting the block stack in the inventory itself. kinda wack but will submit a ticket over it in AP just incase.

from boxoutils.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.