Skip to content

[REQUEST] multiple item cost #74

@SirFancyBacon

Description

@SirFancyBacon

Hello,
first off love the plugin, you've made my players very very happy by allowing me to give them GUI interactions.

onward,
I am requesting the ability to add multiple item costs to run commands within the VC GUI.
you could separate the different costs by a comma

      PrimaryAction {
        Command = "cost-item: 2; console: give %player_name% conquest:steel_ingot 1"
        HandheldItem {
          SearchInventory = true
          ItemType = "minecraft:coal"
          UnsafeDamage = 0
          Count = 2
        },
        HandheldItem {
          SearchInventory = true
          ItemType = "minecraft:iron"
          UnsafeDamage = 0
          Count = 2
        }

or declare them as multiple arguments and variables

      PrimaryAction {
        Command = "cost-item: 2; cost-item2: 4; console: give %player_name% conquest:steel_ingot 1"
        HandheldItem {
          SearchInventory = true
          ItemType = "minecraft:coal"
          UnsafeDamage = 0
          Count = 2
          Item2Type = "minecraft:iron"
          Unsafe2Damage = 0
          Count2 = 4
        }

I feel the second one would give users more flexibility because you could define different costs per argument, and looks like it may be easier to program (that that i know how to :) )

What are your thoughts on this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions