update to shop plugin


capndiln
Guardian

Joined: over 4 years ago
40 topics
59 posts

by capndiln » about 1 year ago

My idea is to add an optional feature to the shop plugin to allow variable quantity chests. 

I'm not sure how complex the code is but adding the possibility to specify the quantity on line 2 and then use math to determine the purchase price for a slot would be cool. 

For example:

Line 1: $

Line 2: 1 diamond_block

Line 3: 1 netherite_ingot

Now, when the owner stocks the chest the could put any number of diamond blocks in each chest slot. When the buyer clicks a slot the plugin calculates the cost. for example if a slot has 4 diamond blocks in it the purchase price is 4 netherite ingots.

 






RE: update to shop plugin


Gan_Xodos
Guardian

Joined: over 3 years ago
2 topics
13 posts

by Gan_Xodos » about 1 year ago

Nice idea, but then youd 'have to make code to prohibit anything but what the code specifies to be put in the chest by the owner. Main challenging thing imo is enabling this behavior while also enabling the regular behavior.






RE: update to shop plugin


Tolcum
Guardian

Joined: over 4 years ago
2 topics
64 posts

by Tolcum » about 1 year ago

 

Gan is correct, the system works pretty well now, and we don't want to add additional complexity where not necessary as it increases the odds something will break. However, it has been escalated to Coral and Red to consider the difficulty of adding this. If it's simple, maybe it's worth it! I’ll add this for review and post an update after the next meeting.







Want to Reply?

Join our friendly community to get access to your profile page, apply for staff, and post a reply here!

Login or Register Account