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.
Small goof in the config for world guard heres the fixed version.
http://dev.bukkit.org/bukkit-plugins/smart-items/files/17-smart_items-v6-4-1/
@Arrawn1306
Did you delete the old config file?
@Real_Neo
yes i think so add a ticket.
@Splated
I just tried the Dev Build you sent me and the problem isnt solved, it still auto-plant inside build-protected area. But as i told you earlier today, its not a big problem as long as no one complains about it ^^
@ Splated
i just found your Plugin and i tried to test it on my little own server. It works so far, but i miss autoplanting for sugar Rods, that i can do an automatic sugar farm.
is it possible to integrate?
BR
Neo
@ Splated
i just installed your pluggin on my server and it seems to be working.
the server is still on building phase but if you wanna see your pluggin working, i give you the adress.
Arrawn1306.no-ip.biz:25565
(use your forum name to loggin so i recognize you, cuz newcomers cnt do anything at all, to prevent noobs screwing my work until im totally done and ready to release it online)
@Splated
I would invite you over, but I'm one plugin away from making the jump from version 1.5.2. It's a plugin I can't live without that needs updating. (And I'm also intrigued by the fact that there's thousands of "useless", repetitive plugins like all those Essentials clones and whatnot, but only one plugin like ChangeDamage which is simply ultra useful.)
By the way, is there a configurable option for the WG support you implemented?
I will probably implement this on my server. Good job :3
If any one is running Smart items on there server i would like to visit.
@CommodoreAlpha
The fix I put in will protect owned land. But it also won't work for the player who owns the land. So players can only build automated farms, factories, whatever, on unowned grief-able land. It sucks but theres no way around it.
I disabled anything that changes blocks in owned land auto-crafting should still work so its not a total loss.
Edit: I reenabled auto planting of crops/warts on owned land, I can't see how anyone could damage an area with just seeds.
@Splated
A simple workaround (that players can do) for dispensers "vandalising" regions is to make the region bigger, so that whatever vandalism is caused via this plugin is only caused to the "nonessential" border of the owned region.
Depending on the type of server one runs, implementing protection against Smart Items shouldn't be too hard.
@CommodoreAlpha
Looks like Shield is Discontinued but I think I have a Worldguard working.
Basically if the land is part of Any "region" it will not work.
@Splated
I would also like to see this :) It would be very helpful with including your plugin in my server.
@CommodoreAlpha
I can add a check "is this block owned" but the problem is I can't find a way to "Talk" to WorldGuard and find out if the area is owned or not.
It is possible to create a SmartItemEvent but then its up to other plugins to use it or not.
Both options are outside of my programing knowledge.
I'll look at the Shield see what i can do.
I'd like to say once again, thanks for making this plugin! :)
For land-ownership plugins like WorldGuard, you state that the blocks are placed by the server, and that there is no way to check for ownership within the region. Is it even necessary to check for ownership? If one is to own a region, shouldn't they have blocked the ability for other players to place blocks? Intuitively, all block changes that happen within said region could only be of natural cause - e.g. a forest fire, or a sapling becoming a tree, or this plugin in action.
Now, I could imagine the occasional scenario where one places, say, a dispenser outside of the region and breaks blocks within the region. If this is the reason you want to add region support, then I understand.
If I could make a suggestion, although I've no knowledge of coding - maybe you could create two new "events", analogous to a BlockBreakEvent. If this plugin fires off an event, like chopping a tree via a dispenser outside of a region, you could fire off a "DispenserBreakEvent", and the subsequent region could block this event if it's not allowed. If the plugin fires off an event inside a region, you could fire off a "DispenserRegionBreakEvent", and it would be allowed.
I'm pretty sure that idea is nonsense, but perhaps you could gain some ideas from it. And before you go, "but wait, I'd have to hook into so many protection plugins and they would all have to specifically support my plugin's event", have you considered Shield? It's a really nifty protection-region API that's severely underrated. Not only can you hook into all majour protection plugins via Shield, but I believe you can register your own events as EpicGlass did (or so I think). In the end, you wouldn't have to hook into endless amounts of plugins - only Shield, and optionally, LWC.
@XxEpicPwnerxX
1.7.2 is still in Dev versions theres no point to making major fixes until its done.
pls maek for 1.7.2 pls u r best thx -peace out
Auto Craft Is broken in the Dev version you will get errors, you have been warned!
@JamesCraftFTW
Can you submit a ticket with Details, in my tests everything is working just fine with the last update.
Awesome plugin, Needs update, some stuff doesn't work.Well for me maybe, But needs update.