Jump to content




Shoppe - Command Computer powered XP shop!

command

3 replies to this topic

#1 Wojbie

  • Members
  • 631 posts
  • LocationKinda lost

Posted 01 March 2015 - 11:25 AM

Shoppe - Command Computer powered XP shop!

Shoppe is a simple to use experience shop i made for a friend on the server. Decided to relase it here too.
90% of code uses Lyqyd touchpoint-api. Rest is simple Command Block Magic. Requires 3 high 5 wide advanced monitor screen placed on top of the Command Computer. This program will not work on normal computer.

Download Here: http://pastebin.com/cRTsaYaK
Or ingame using command:
pastebin get cRTsaYaK shoppe 

To add new material to shot simply copy one of table.insert lines and give it name, xp cost and name of item to give followed my amount [ optionally followed by metavalue like in caseof tin gear. ]

Screenshots:
Posted Image
Posted Image

Edited by wojbie, 02 April 2015 - 07:09 AM.


#2 DannySMc

  • Members
  • 1,808 posts
  • Location/home/dannysmc95

Posted 07 April 2015 - 08:43 AM

I like this XD Could be a lot prettier but the idea is wicked, how do you get the colours in the chat bar?:o and it sounds like a french shop or a posh one :P

#3 Wojbie

  • Members
  • 631 posts
  • LocationKinda lost

Posted 07 April 2015 - 09:52 AM

It uses /tellraw command. It was not made to be pretty it was made to sell items that were unobtainable normal way (about 20 of those) cause person who made that servers modpack was idiot.

You can use http://minecraftjson.com/ to help you make nice looking /tellraw commands.

#4 kreezxil

  • Members
  • 128 posts
  • LocationBowie, TX

Posted 04 January 2018 - 01:18 PM

Would like to point out that this script works in the 1.12.2 ports of ComputerCraft as is, therefore it likely works as on the ones in between too. I'll be making a modified version of this that uses Ender Pay and I'll post the script here when I'm done.

Here is a modified version that Sells levels for EnderPay credits.

https://pastebin.com/23ddYhRi

pastebin get 23ddYhRi epShop

If anyone should modify this please help keep computercraft scripting alive and share your modifications now matter how mundane. It's how we all learn.

The full code:
Spoiler

Edited by kreezxil, 04 January 2018 - 08:39 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users