Posted August 7, 20223 yr I am trying to create a shop in my mods for my minecraft server. And I watch a lot of video about it but It was never working and I look at the forge documentation but nothing was working. (I am trying to do somethings similar to this)
August 7, 20223 yr I'm not a expert at Screens and Menus but here a few hints what you have to do or where you can look for examples. Due to the fact that a shop should be handled server-side, I recommend you to use a menu because you can handle button clicks easier and you can make sure no data has been modified without permission from a client. Depending on how many trades you want to have in your shop, you will need a scroll bar to properly handle that massive number of trades. You can take a look at the StonecutterScreen or the MerchantScreen for an example of a scroll bar. The other stuff is just a bit rendering of a texture (you can use all vanilla Screens for an example), add a few Button and handle the Button click in your Menu.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.