Skip to content

Make a new Keycard

Giuca002 edited this page Jun 8, 2022 · 1 revision

Making Keycards

1. Set the level of the key card

When you enter the file you will see 6 cards already made, we are going to make a new card, level 6. So under "Card Information" type "l6: &9L6". This defines the name of the card.

	l1: &bL1 
	l2: &6L2 
	l3: &cL3 
	l4: &0L4 
	l5: &5L5
	**l6: &9L6**
	m: &9MASTER

2. Messages

Under "Error Messages" type "El6: &cYou need a L6 ACCESS CARD or higher." to set the error message. And also under "Success Messages" type "Sl6: &aAccess Granted." to set the success message.

	El6: &cYou need a L6 ACCESS CARD or higher.
	Sl6: &aAccess Granted.

3. The block

This is the block you place 3 (or whatever you set it to) blocks below the button. Also while we here lets set the button.

	l6block: stone
	l6button: stone button

4. Key card item

This is the item we want the key card to be in this case lets make it a purple stained glass pane.

	l6item: purple stained glass pane

5. Making the card

Now change all the variables ({@l6block}, {@l6button}, {@Sl6}, {@El6}) to your variables ,but if your going to make it a level 6 key card only allow the level 6 key card and master card open it. If its a lower key card allow all the cards above it to open it.

on rightclick on {@l6button}:
	if block at location {@down} meters below the event-block is {@l6block}:
		if name of player's held item is "{@l6} {@name}" or "{@m} {@name}":
			if "{@actionbar}" is "chat": 
				send "{@Sl6}" to player
			if "{@actionbar}" is "action": 
				send action bar "{@Sl6}" to player
			if "{@actionbar}" is "both": 
				send "{@Sl6}" to player
				send action bar "{@Sl6}" to player
				wait 1 second
		else:
			cancel event
			if "{@actionbar}" is "chat": 
				send "{@El6}" to player
			if "{@actionbar}" is "action": 
				send action bar "{@El6}" to player
			if "{@actionbar}" is "both": 
				send "{@El6}" to player
				send action bar "{@El6}" to player
				wait 1 second

Clone this wiki locally