Jump to content

codes


jeep2729

Recommended Posts

I'm not sure how to do an anvil gui but I know a way that you could do it by typing the code in chat.

on chat:
	if message is "code123":
    	cancel event
        send "correct!"

This is just an example on how you can do it with a chat input. You could also just a variable or metadata tag to true when a person does the command and do an if statement to see if that variable is true so this trigger will only happen after a player does the /codes command. And then delete the variable after the player guesses the code. And if the code is correct, just give them the rank. This was just an example cause you said you just needed help with making one. There probably is a way to do an anvil gui but i'm not sure how. You could look at the docs. The only anvil gui expression I see in the docs is with Skacket and not sure if Minehut has that addon. https://skripthub.net/docs/?id=4149

If you have any other questions or don't understand what I said, cause my response may be confusing, just reply. 

  • Like 1

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Community Support - 7/8/20 - 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - 12/20/22

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

Heya!

They are many ways to open an Anvil inventory. I do believe you can open/show pretty much any inventory in the game.

[skellett] open [[better] inventory [type]] %string% [with %-number% row[s]] [named %-string%] to %players%

https://skripthub.net/docs/?id=391

Skellet provides a larger amount of inventories, but you can also just use plain skript to open many kind of inventories.

(open|show) (((crafting [table]|workbench)|chest|anvil|hopper|dropper|dispenser) (view|window|inventory|)|%inventory%) (to|for) %players%

https://skripthub.net/docs/?id=1133
 

Now, the problem is that, I'm quite uncertain of how to manipulate the inventory, and I've tried throughout my career. I'm willing to do some research on the topic, but always feel free to use Google or try out possibilities yourself. I'd advise you to use SkriptHub and SkUnity's documentation.

Always feel free to contact me or continue this thread if you need more help.

🙂 

Edited by AWorthySon
  • Like 2

 

image.png.e46e91961f1d6d4604a6e5f3dcb5a2bd.png

unknown.pngunknown.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...