TrickyShops [BSP] - Makes creating shops way faster v1.0.1

This BossShopPro Addon makes creating shops way faster by simple tricks.

  1. Blackixx
    Tested Minecraft Versions:
    • 1.7
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    TrickyShops
    This BossShopPro Addon makes creating shops way faster by simple tricks.
    Many of your shopitems have a similar structure but you need to write the whole structure for every single one? Not anymore!

    TrickyShops allows you to create predefined layouts of shopitems that include your own variables. Now all you need to do to create a new shopitem is select the right layout and enter the values of the variables.


    Features
    • Helps you save lots of time
    • You can create infinite own shopitem layouts
    • Create complex shopitems with minimum effort and configuration after setting up the corresponding layouts
    • Simple and basic system
    • Supports calculations



    Sounds complicated? Well, it works really quick once you understand it. I'll show you an example:
    [​IMG]
    [​IMG]

    These items were created with following configuration:

    Code (Text):
      exampleitem1:
        Layout: layout_simple
        Item: 'LOG:64:1'
        Price: '30'
        Name: 'Dark Log'
      exampleitem4:
        Layout: layout_simple
        Item: 'DIAMOND_PICKAXE:1:0'
        Price: '75'
        Name: 'Diamond Pickaxe'
    Savage, right?

    Both shopitems use the same layout that has been predefined once:

    Code (Text):
    layout_simple:
      input:
        Item: '[type]:[amount]:[durability]'
        Price: '[buyprice]'
        Name: '[name]'
      output:
        MenuItem:
        - 'type:[type]'
        - 'amount:[amount]'
        - 'name:&4[amount] [name]'
        - 'lore:&eBuy &b%reward% for &c%price%&e.'
        - 'durability:[durability]'
        InventoryLocation: 0
        ExtraPermission: ''
        PriceType: money
        Price: '[buyprice]'
        RewardType: item
        Reward:
        - - 'type:[type]'
          - 'amount:[amount]'
          - 'durability:[durability]'
        Message: '&eYou bought %itemname% for %price%.'
    This might look complicated first, but again it can save tons of time.
    Every layout consists of two parts: input and output.

    Let's start by looking at the input:
    Code (Text):
      input:
        Item: '[type]:[amount]:[durability]'
        Price: '[buyprice]'
        Name: '[name]'
    Here you can create your own paths with the names that you want them to give. You can assign every path a set of own variables that you separate using ':'. You can choose any variable name that you want (Needs to be inside brackets). These are the variables that you later need to enter in order to create your shopitems.


    Now all which is left is the output:
    Code (Text):
      output:
        MenuItem:
        - 'type:[type]'
        - 'amount:[amount]'
        - 'name:&4[amount] [name]'
        - 'lore:&eBuy &b%reward% for &c%price%&e.'
        - 'durability:[durability]'
        InventoryLocation: 0
        ExtraPermission: ''
        PriceType: money
        Price: '[buyprice]'
        RewardType: item
        Reward:
        - - 'type:[type]'
          - 'amount:[amount]'
          - 'durability:[durability]'
        Message: '&eYou bought %itemname% for %price%.'
    Here you set up a shopitem as you are used to, except there is one tiny difference: You can use all variables that you have created in the input section to fill in specific information. For example if you want every item displayname to have the same style but include the name of the item, simply create a '[name]' variable in the input section and use it here.

    The best way to learn this system is by doing some testing and trying it out ;-)


    Advanced calculation feature
    Optionally you can add one list of variables which will be generated using existing variables and some maths.

    Here is an example:
    Code (Text):
      input:
        Item: '[type]:[amount]:[durability]'
        Worth: '[worth]'
        Name: '[name]'
        rest:
        - '[buyprice]=[worth]*1.2'
        - '[sellprice]=[worth]*0.6'
    In this case in order to set up a shopitem you just need to enter one worth value. However the layout can work with [buyprice] and the [sellprice] variable.
    2212426297 likes this.

Recent Updates

  1. Small improvements

Recent Reviews

  1. gob
    gob
    4/5,
    Version: v1.0.1
    it's good add-on for boss hop pro but can you support

    layout on ouyouy like this

    layout_onlayout:
    input:
    Layoutname: '[layoutname]'
    output:
    Layout: '[layoutname]'
    Item: 'LOG:64:1'
    Price: '60'
    Name: 'Dark Log'

    exampleitem1:
    Layout: layout_onlayout
    Layoutname: 'layout_advanced'
  2. EpicBeasto111
    EpicBeasto111
    4/5,
    Version: v1.0.1
    Is it possible to create custom variables, and is there a variable for when an item is bought and/or sold? I'd like to create a more dynamic economy by having something similar to this:
    [buyprice]=[worth]-([timesbought]*1.2)
    [sellprice]=[worth]-([timessold]*0.8)

    This way there's sort of a "Supply and Demand" sort of thing happening.

    If not, how difficult would this be to add? I'd really like to see this implemented. I think that given the capabilities of this plugin as well as BossShopPro, adding a buy and sell counter variable would seem rather simple to do. Thanks for a solid plugin!
    1. Blackixx
      Author's Response
      Shops which depend on supply and demand are planned.
  3. XYBlue
    XYBlue
    5/5,
    Version: v1.0.1
    Great plugin, creative ideas...............................................................................
    1. Blackixx
      Author's Response
      Thanks :)