Comments (6)
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.
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.
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.
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.
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.
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)
- Add ByteItems support HOT 3
- nbt tag HOT 3
- blockdrops bug/request HOT 3
- Allow to use wildcards to target blocks and mobs HOT 1
- Support getting loot from LootTables HOT 1
- Add FishingDrops, similar to BlocksDrops & MobsDrops
- Check if HOCON file uses OS's line endings
- Add biomes requirements HOT 1
- Add requirements to CropsControl
- Revert experience handling back to a case-by-case basis
- Add support for GriefDefender
- Configure GitHub Actions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boxoutils.