Smart Items

icon

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


  1. Download the plugin
  2. Place .jar file in your plugins directory.
  3. edit/create Config File
  4. 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.

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of Splated Splated Apr 27, 2014 at 01:28 UTC - 1 like

    http://bitbucket.org/splat_ed/smart_items heres the code if you want to take a crack at it.

    BFAK:Splated,90570372,ff4e1caf1df3f2db74014bc7fdad5b2365d86e09b4a2a218ee8bc959e3ca6aa4

    http://dev.bukkit.org/media/images/46/606/SOLARAPOCALYPSE_copy.png

  • Avatar of Splated Splated Apr 27, 2014 at 00:51 UTC - 0 likes

    @Krenath: Go

    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.

  • Avatar of Krenath Krenath Apr 26, 2014 at 22:04 UTC - 1 like

    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.

  • Avatar of Splated Splated Mar 09, 2014 at 00:52 UTC - 1 like

    @Arrawn1306: Go 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.

    Last edited Mar 09, 2014 by Splated
  • Avatar of Arrawn1306 Arrawn1306 Mar 08, 2014 at 03:54 UTC - 0 likes

    @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.

    Last edited Mar 08, 2014 by Arrawn1306

    [PVP] Humans Vs Vampires Vs Werewolfs Survival Roleplay

    TheLastKingdom.no-ip.biz:25565

  • Avatar of Splated Splated Feb 27, 2014 at 01:26 UTC - 0 likes

    @T3cKno0Kill3R: Go Nothing I can do about that. you can disable the tools option in smart items.

  • Avatar of T3cKno0Kill3R T3cKno0Kill3R Feb 26, 2014 at 14:02 UTC - 0 likes

    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...

  • Avatar of Splated Splated Feb 03, 2014 at 20:30 UTC - 0 likes

    @Erudin1: Go 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.

    Last edited Feb 03, 2014 by Splated
  • Avatar of Erudin1 Erudin1 Feb 03, 2014 at 17:52 UTC - 0 likes

    Hi.

    Trees don't collaps and i cannot build these autocraftworkbenches. Here's my Config:

    CropPlantingTimer: 120
    TreePlantingTimer: 120
    UseWorldGuard: true
    AllowAutoCraft: false
    AllowBreeding: true
    AllowCauldronLift: false
    Arrows2Items: true
    DispenserUsesTools: true
    AllowDispensingBlocks: true
    DispenserRange: 2
    DisabledWorlds: plotcity,mining
    

    The world i use the Plugin is names "mainworld". Worldguard is actually installed.

    Last edited Feb 03, 2014 by Erudin1

    http://cache.www.gametracker.com/server_info/85.131.155.11:25565/b_560_95_3.png

  • Avatar of Splated Splated Jan 14, 2014 at 16:59 UTC - 0 likes

    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/

Facts

Date created
Sep 28, 2012
Category
Last update
Jan 14, 2014
Development stage
Release
Language
  • enUS
License
All Rights Reserved
Curse link
Smart Items
Downloads
5,767
Recent files

Authors