uCarsTrade

UCars Trade Thumbnail

About

http://i.imgur.com/bHf9QE2.png

uCarsTrade is a survival-orientated add-on to the popular car plugin uCars. uCarsTrade adds features such as car stats, trading, garages and more.

Features

http://i.imgur.com/pUSCZ16.png

  • Car Stats
  • Trading
  • Garages
  • Car trading auction
  • Economy Support
  • Anti-Dupe protection on Cars
  • Upgrade your car
  • Shops
  • NPC cars (Steal-able)

Commands & Permissions

http://i.imgur.com/jWyBByF.png

CommandUsageAliasesPermissionDescription
/uCarsTrade/uCarsTrade [Give Random]/[Give <Speed> <Health> <Name>]/car, /ut, /carTradeuCarsTrade.adminSpawns in a car that meets the requested specification



Donate

Donate

Donations are much appreciated!
Donate

See in action

Server

To see this plugin in action visit the CircaCraft Minecraft server:

CircaCraft's Website

Crafting a car

http://i.imgur.com/bAcg9aS.png

A car can be crafted like so:
Diagram

Car Upgrades

http://i.imgur.com/FNPRFT0.png

To upgrade and rename a car you need an anvil. Put the car in the left slot on the anvil and any upgrades in the middle slot. To rename your car just rename it like any other item.
The following upgrades can be used:

StatItemStat-Increment per itemStat maximum Value
SpeedRedstoneDust+0.05x speed per item4x
CarDamageLeverFixes damage to the carN/A
HealthIronIngot+1HP per itemAs defined in uCars config
HealthIronBlock+9HP per itemAs defined in uCars config

These are just the upgrades for the main stats, many other cool things can be added (Eg. Hover for Hovercars)
Full upgrade list found here! (Includes hovercars!)

Car Stats

http://i.imgur.com/fqen6Q3.png

(More coming soon).

StatFunction
Speed This is how much of a speed boost to apply, eg. 0.5x, 1.3x
CarDamage There is a random chance when you break your car that it will get damaged.
Damaged cars drive badly and to fix it you need to change this stat.
HealthThis is how much health your car has (From the uCars health system). Having lots of car health is good if some other pesky player is trying to break your car and steal it!

Trade Market

http://i.imgur.com/Tcb9QJM.png

MenuIcons
Requires Vault, an economy plugin and being enabled in the config!
The plugin features a fully functional Trade Market where players can sell their cars for others to buy. This feature can be disabled in the config if you only the want the car stats, etc.. To make a Trade Access Booth place a sign with the following text on it:

Sign

Then simply place a chest above the sign. Now when the chest is opened; the player will be able to access the Trade Market to buy and sell cars and upgrades as well as read the in-game plugin tutorial.

Car Shop

This feature is similar to the trade market, also requires Vault and has a similar format; but instead buys new cars.
To make a car shop, use this sign:
shop sign
...And then place a chest above it. Now, when the chest is opened, the Shop GUI will open and players can buy cars for the amount specified in the conifg.

Requirements

http://i.imgur.com/XMwp8JC.png

To run uCarsTrade requires a few plugins:
uCars v15+ - The car plugin. (Minimum version: v15)
ProtocolLib - A requirement of uCars.
[Optional]Vault - A requirement of uFuel, car trading and all other money based operations.

Todo

http://i.imgur.com/Hj70n36.png

  • Car Keys??
  • Vans??
  • Garages

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

  • Avatar of storm345 storm345 Aug 30, 2014 at 17:08 UTC - 0 likes

    @LoicRock: Go

    You probably missed some of the replacing code? Link to the source may be helpful.

    http://status.minecraftservers.org/classic/126835.png

  • Avatar of LoicRock LoicRock Aug 29, 2014 at 21:49 UTC - 0 likes

    @storm345: Go

    It's work but when i place a chest above the sign and i open it nothing happen,:(

  • Avatar of storm345 storm345 Aug 29, 2014 at 14:14 UTC - 0 likes

    @LoicRock: Go

    Try using the latest version from (Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.) http://storm345dev.ci.cloudbees.com, or if that doesn't work in the code simply use 'find and replace' to replace 'shop' with 'store' or some othsr variant! :)

  • Avatar of LoicRock LoicRock Aug 28, 2014 at 21:31 UTC - 0 likes

    Hello, I have a problem with signshop, it's the same thing to write on the sign. I try to edit the source code but i'm a beginner.

    Thank you

  • Avatar of Newwings Newwings Aug 25, 2014 at 16:11 UTC - 0 likes

    you didn't, right?

  • Avatar of storm345 storm345 Aug 18, 2014 at 18:37 UTC - 0 likes

    @Newwings: Go

    Look at the documentation.

  • Avatar of Newwings Newwings Aug 18, 2014 at 10:04 UTC - 0 likes

    Did you add upgrade permissions yet? :)

  • Avatar of storm345 storm345 Aug 10, 2014 at 21:45 UTC - 0 likes

    @gopro2027: Go

    Yes, easily. My GTA plugin (MineTheftAuto from gameblade.net) does exactly this! :) Go check out the kits to see cars and planes there.

    Code extract of how I get the itemstacks for items in the kits (including cars and planes):

    package net.stormdev.MTA.kits;
    
    import net.stormdev.uPlanes.api.Plane;
    import net.stormdev.uPlanes.api.uPlanesAPI;
    import net.stormdev.ucars.stats.Stat;
    import net.stormdev.ucars.trade.main;
    import net.stormdev.ucars.utils.CarGenerator;
    import net.stormdev.ucarstrade.cars.DrivenCar;
    
    import org.bukkit.inventory.ItemStack;
    
    import net.stormdev.MTA.items.SingleItemSerialization;
    
    public class KitItem {
    	String strVal = null;
    	ItemStack itemVal = null;
    	public KitItem(String custom){
    		this.strVal = custom;
    	}
    	public KitItem(ItemStack item){
    		this.itemVal = item;
    	}
    	public ItemStack getItem(){ //Generates a new ItemStack each time it's called, eg random changing car and plane stats-although they can be set
    		ItemStack it = null;
    		if(strVal != null){
    			if(strVal.equalsIgnoreCase("CAR")){
    				DrivenCar c = CarGenerator.gen();
    				it = c.toItemStack();
    			}
    			else if(strVal.equalsIgnoreCase("HOVERCAR")){
    				DrivenCar c = CarGenerator.gen();
    				it = c.toItemStack();
    			}
    			else if(strVal.equalsIgnoreCase("COPCAR")){
    				DrivenCar c = CarGenerator.gen();
    				it = c.toItemStack();
    			}
    			else if(strVal.equalsIgnoreCase("PLANE")){
    				Plane p = uPlanesAPI.getPlaneManager().generateRandomPlane();
    				it = uPlanesAPI.getPlaneManager().getPlaneItem(p);
    			}
    			else if(strVal.equalsIgnoreCase("HOVERPLANE")){
    				Plane p = uPlanesAPI.getPlaneManager().generateRandomPlane(true);
    				it = uPlanesAPI.getPlaneManager().getPlaneItem(p);
    			}
    			else{
    				it = SingleItemSerialization.getItem(strVal);
    			}
    			return it;
    		}
    		return itemVal;
    	}
    }
    
  • Avatar of gopro2027 gopro2027 Aug 10, 2014 at 19:41 UTC - 0 likes

    is there any way i can hook into ucars or ucarstrade and give a player a car? my gta plugin doesnt use vault because i have a multiworld based server and need separate economies for each server.

  • Avatar of storm345 storm345 Aug 10, 2014 at 18:59 UTC - 0 likes

    @gopro2027: Go

    Will look into it; but most people using uCarsTrade use vault for the shops, market, etc, etc

Facts

Date created
Nov 10, 2013
Categories
Last update
Jun 05, 2014
Development stage
Release
License
Public Domain
Curse link
uCarsTrade
Downloads
4,668
Recent files

Authors

Relationships

Required dependency
ProtocolLib
uCars
Optional dependency
Vault