zedwick / villageritemcollector Goto Github PK
View Code? Open in Web Editor NEWA Minecraft datapack which allows villagers to pick up items when the gamerule mobGriefing is set to false.
License: GNU General Public License v3.0
A Minecraft datapack which allows villagers to pick up items when the gamerule mobGriefing is set to false.
License: GNU General Public License v3.0
Hello with the 1.15 is the same probleme with villager so .. are you going to make a version for 1.15 ?
Whilst not strictly "villagers", the functionality is essentially the same.
Allays have a single slot for matching items. The items only need to match the type they are holding, and can have differing nbt data (different enchantments, names etc.) but must obviously be able to stack with existing items in the slot to be able to be picked up.
Currently they will wait staring at the dropped item, and perhaps never return to the player. Would need to test what happens when they find an item which matches but cannot stack with items in their inventory.
This is a very cool hack for the mobGriefing issue. Have you explored whether there’s a way to enable villagers to plant crops via datapack functions?
This solves only half the problem for automated farming, as while the villagers can pick up food items for breeder farms, the crops cannot be replanted automatically.
I was considering exploring whether it was possible modify this datapack to do this as well — but thought I’d ask if you went down this path at all already... thanks!
1.17 will be the first MC version since the release of this pack which has breaking changes.
/replaceitem
has been removed, replaced with /item
.
Read more:
I'd like to modify the message that appears when you run /releaseparrots but there's nothing in the config for that right now.
The NBT path Inventory
returns an ordered array of items in the villager's inventory, but as it does not return empty slots, accessing an item via Inventory[1]
will not consistently return the item in slot 1.
[23:28:31] [main/INFO]: [CHAT] [Carrot] Pre
[23:28:31] [main/INFO]: [CHAT] Villager has [{id:"minecraft:bread",Count:52b},{id:"minecraft:potato",Count:3b},{id:"minecraft:beetroot",Count:4b}] and item is {id:"minecraft:carrot",Count:19b}
[23:28:31] [main/INFO]: [CHAT] [Carrot] Post
[23:28:31] [main/INFO]: [CHAT] Villager has [{id:"minecraft:bread",Count:52b},{id:"minecraft:carrot",Count:22b},{id:"minecraft:potato",Count:3b},{id:"minecraft:beetroot",Count:4b}] and item is
In the above example, the villager had no carrots in slot 1, and 3 potato in slot 2. Inventory[1]
returned the potato in slot 2 (Count:3b) and added that up with the carrots from the item stack (Count:19b), and finally added 22 carrots to slot 1.
There does not seem to be an alternative for reading the item from a specific slot.
May need to check all items in the Inventory to see if any match the item type we are looking for.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.