Hey, i have tried to use this, and there is a MAJOR issue using this with multiplayer. The issue I keep getting is that the player who has __ Levels that is closest to the command block will get the item and take away __ xp whether or not they actually bought the item. This can cause an issue if a player spams a button and doesn't have enough xp to buy the item and another player who has the right amount (or more) of xp levels isn't around the command block but is the closest person who has the right amount of xp levels will lose his/her xp levels and gain the item in return for it. But what if the player losing xp wants to save it to buy an expensive item or maybe the player doesn't wish to have 1,000,000 of the same item.
Hello, how do i make sure the person who doesn't have enough xp know and is it a command like /tell or what because i need help with this thank you cya around
Thanks so much for this I have been looking for it for ages because I need it for a map I am making. Also is it possible to make it sell multiple items with custom enchants Thant give you speed or more health
Hmm that great idea but when ( example ) diamond sword sell for 10 exp you only have 2 exp left but there's someone beside of u and her level is 22 u push the button and who got the diamond sword is she the level 22, and it also decrease her level. I think it bit complex when i used it at multiplayer
If use command : give @p[lm=10] diamond_sword 1, then xp -10l @p[lm=10] , 10 just as example exp price
Please help, thanks!
So in my original post the shop is set up like this (VIEW FROM THE TOP)
Button - Wall - Repeater - Command Block - Repeater - Command Block
To fix your problem,try something like this where both command blocks are activated at the same time:
Check out my server!
Hello, how do i make sure the person who doesn't have enough xp know and is it a command like /tell or what because i need help with this thank you cya around
Cool Gonna Use it on my world~!
My Facebook
Thanks so much for this I have been looking for it for ages because I need it for a map I am making. Also is it possible to make it sell multiple items with custom enchants Thant give you speed or more health
I have a problem: when i do it for the nearest player, it says that player cannot be found. how do you fix that?
cool thanks but what should happen if you do not have the no xp points. but i still get the diamond sword?
Awesome
Hmm that great idea but when ( example ) diamond sword sell for 10 exp you only have 2 exp left but there's someone beside of u and her level is 22 u push the button and who got the diamond sword is she the level 22, and it also decrease her level. I think it bit complex when i used it at multiplayer
If use command : give @p[lm=10] diamond_sword 1, then xp -10l @p[lm=10] , 10 just as example exp price