Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REQUEST] multiple item cost #74

Open
SirFancyBacon opened this issue Jan 5, 2019 · 4 comments
Open

[REQUEST] multiple item cost #74

SirFancyBacon opened this issue Jan 5, 2019 · 4 comments

Comments

@SirFancyBacon
Copy link

SirFancyBacon commented Jan 5, 2019

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?

@SirFancyBacon
Copy link
Author

Seems someone is asking how to do something similar
https://forums.spongepowered.org/t/query-itemstack-of-an-open-inventory-on-inventory-click/27049

just thought i'd post it to keep things logged.

@SirFancyBacon
Copy link
Author

@iMystxc
Copy link

iMystxc commented Mar 20, 2019

Any Updates for this? Multiple Item Requirements would be so helpful

@iMystxc
Copy link

iMystxc commented Apr 11, 2019

@ustc-zzzz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants