Smart Items
Smart-items
The goal of this mod is to allow items on the ground to interact with the block below and give Dispenser some new abilities.
- Saplings that land on dirt or grass will plant themselves.
- Crops that land on farmland will become Planted in a 3x3 area.
- Nether wart will plant on its self on soul sand in a 3x3 area.
- Bone meal that lands on/in a plant will cause it to grow.
- Items Passing over a powered workbench will be Crafted into the item in its Item frame.
- A powered workbench can Craft water potions if water is above the workbench.
- A Powered cauldron will pick up Items Below it, and place into a container, or on top.
- If an Item Frame is placed on a cauldron or hopper it will only accept items like the one in the frame.
- Tools in dispensers will affect a cone of blocks directly in front the dispenser, and animals. (Shovels , Axes, Pickaxes, Hoes, Fishing Rods, and Shears)
- Food near two animals will cause them to breed.
- Empty buckets near cows will fill with milk.
Tips and Tricks
Images of some Gagets
Vsit the Tips and Tricks Page for more ideas.
How To Install and run
- Download the plugin
- Place .jar file in your plugins directory.
- edit/create Config File
- Run the server.
config.yml
CropPlantingTimer: 120 # time in ticks before a seed plants
TreePlantingTimer: 120 # time in ticks before a sapling becomes a sapling block
UseWorldGuard: true # Will disable tree planting, dispenser tools and blocks in any region.
AllowAutoCraft: true # allows auto craft system
AllowBreeding: true # Stops animals from making babes when near food.
AllowCauldronLift: true # turns off Cauldron ability to lift items.
Arrows2Items: true # arrows become arrow items after impact.
DispenserUsesTools: true # allows Dispenser to use Tools
AllowDispensingBlocks: true # allows Dispenser to drop blocks as blocks
DispenserRange: 1 # extends range of Dispensers tool use 0 = 3x3, 3 = 3x6
DisabledWorlds: world1_nether,world1 # worlds ignored by the mod.
Know Problems
- Delete old Config Files to prevent crashes!
- Problems with new Tree types
- Some Auto Crafting problems with complex items, like fireworks.
@ThatPolishKid
hoping for updates too; such a great plugin... any auto-plant alternatives out there?
edit: found https:www.spigotmc.org/resources/natura-environmental-management-system.17912/ and https:www.spigotmc.org/resources/autofarm.10454/
So, uh, any news?
@Splated
Right, but the problem is I do want both... I would like to dispense TNT as an entity, but place regular blocks out of dispensers
@ThatPolishKid
set AllowDispensingBlocks: to false that should solve the tnt problem
Hey, i love this plugin, but it messes with TNT being dropped as an entity using the block-placing dispenser system Please fix??
Hey splated im back on minecraft and will still be using your plugin lemme know if ever you do what you said in last post and separate the plugin into many.. im interested on in the auto tree-replant feature that would be nice to have only it to reduce memory use since im not using the auto replant crops and crafting features :)
ignore my signature, forgot to change it
Just wanted to let you know I've been getting this error recently - by the looks of it, it has to do with the WG dependency. I'm using a 6.x version of WG instead of a 5.x version, which may explain this error.
@CommodoreAlpha
Im planing to move, auto crafting , auto planting, hopper filters, and auto breeding to http:dev.bukkit.org/bukkit-plugins/splat-co-labs-collection/ I don't know yet if I'm adding the dispenser tools yet.
Can we make it so that dispensers will only dispense certain blocks as blocks and other blocks as just items?
@pyropanda01 Cool but How do you restock the dispenser with command blocks?
I have in the past made mob farms and used the drops to make fireworks. :P
http://bitbucket.org/splat_ed/smart_items heres the code if you want to take a crack at it.
@Krenath
Working with container inventories is a huge headache I originally tried to build a "Dropper" before they existed, by shooting a dispenser into a Container. I had a very hard time with items getting duplicated, and scrapped it. The reason the frame, hopper trick works, is theres a cancelable event triggered when an item enters a hopper from the top.
It may be possible to have Cauldrons and Craftbenches search nearby containers but they need to be tracked so an update can be run every x ticks, or on redstone power event, but redstone events are very odd.
Since Items are already cycled through every x ticks so this was easier to do it that way and have them react to the blocks below them.
Droppers can shoot into containers now making Cauldrons lifts no longer really necessary, but I like them so i left it in.
Having played with SmartItems on our server for the better part of a year, I'm enjoying it greatly and can't imagine not having it installed now. It makes a lot of things easier, and many previously impossible things possible.
But I do have some suggestions that I think would allow people to craft more compact machines with more predictable behavior that doesn't have to depend on timing the flow of items.
1. Hoppers with an item frame on them should only accept items of the same type, not just from falling into the top of the hopper, but from the inventory of any container (chest, trapped chest, hopper, dispenser, dropper, brewing stand, etcetera) above the hopper or other hopper that feeds into it. I mentioned this in a comment nearly a year ago and you'd replied that it was for mixing items into hoppers, but I do think you can do the mixing in other hoppers downstream, while using filtered hoppers to more precisely control what gets passed along.
2. Cauldrons should be able to pull items from the inventory of containers they're placed directly above. And should be able to push items into any container they're placed below. This seems to work fine pushing into chests and dispensers and droppers, but doesn't seem to work for pushing items into the inventory of hoppers. It doesn't seem to work at all for pulling from a container except another powered cauldron.
3. Cauldrons that have item frames on them should only pick up items or pull items from containers that match the item in the frame.
3. Craftbenches should be able to pull ingredients from containers above them and put the result into containers below them rather than only working with nearby entities.
With the above modifications to allow precise control of the flow of items in multiple directions and between containers, it would be very easy to create a compact factory to build nearly anything without needing a single water bucket or dropper for flow control.
Thanks again.
@Arrawn1306 The problem is plugins can't easily talk to other plugins.
Here's how it works
Smartitems: hey server let me know when a despencer fires.
Hard mode: hey server let me know when a player breaks a block.
...
Server: a despencer fired.
Smartitems: ok where, and was it a tool?
Server: this loc and yes
Smartitems: ok break a block at loc and don't really fire.
...
Server: player broke a block
Hard mode: if it was a wood pick axe and stone then cancel it.
@T3cKno0Kill3R
The problem doesnt come from smart items, im also using smart items and extrahardmode togheter on my server and there is no problem. the bug youre talking about is actually one of the extrahardmode features that can be disabled in the config file. Extrahardmode mining part make it impossible to mine stone with wood, gold and stone picks unless you disable" Mining: Inhibit Tunneling:" in the config file, or unless you mine any other materials around stone, wich will transform the stone around them into cobble that can be mined.
Hope i helped you ^^ but i swear that smart items isnt the cause of that in any case.
@T3cKno0Kill3R Nothing I can do about that. you can disable the tools option in smart items.
There is a problem with the plugin ExtraHardMode, in that plugin some type of pickaxe can't mine stone and the pickaxe that can only a few of that. The tools in the dispensers aren't affected by this rule...
@Erudin1 An autocraft workbench, is a powered workbench with the item you want to make in a frame on it.
"collaps" do you mean collapse? as in the trees fall down? My mod only affects sapling dropped on dirt or grass, if is in a world guard region, even one with build on, it won't plant its self.
if your trees aren't dropping saplings check your other plugins.
if you want to send me your server info i can take a look.
Hi.
Trees don't collaps and i cannot build these autocraftworkbenches. Here's my Config:
The world i use the Plugin is names "mainworld". Worldguard is actually installed.