mushroomhostage / exphc

The Experimental Hardcore Post-Apocalyptic Minecraft Server
www.exphc.com
8 stars 5 forks source link

FreeTrade full NBT item tag support #48

Open mushroomhostage opened 12 years ago

mushroomhostage commented 12 years ago

FreeTrade should have full support for Named Binary Tags (NBT) aka item tags or item information.

It already has support for "ench" tag via Bukkit API, but some mods add their own tagging that does not transfer over. In particular IC2 uses the "charge" tag on electric items. For more see http://www.mcportcentral.co.za/index.php?topic=2886.0 . FreeTrade should support these, likely with a new syntax (charge=X?). Would also be useful for testing.

mushroomhostage commented 12 years ago

Interesting plugin: TagMe - allows access to item NBT.

mushroomhostage commented 12 years ago

NBT can be arbitrarily structured, but at least, would be very nice to support flat one-level tags, so you could sell charged IC2 crystals or electric items ("charge" tag, whose value is now visible in NEI with the IC2 plugin). Also I think Balkon's Weapon Mod stores the weapon reload state in NBT, so you could sell loaded weapons and they would retain their loaded state. Forestry also uses tags I believe for its backpacks, would need to look into it further, but may be useful to be able to sell full backpacks of items (group specials, instead of just one type of item for another).