How to create a card
Introduction
Creating cards is very easy if you're familiar with images editing softwares, you have to know how to edit images or have a friend who can use Photoshop, GIMP or Paint.net.
Creating your first card
Step 1
To create a card you have to execute the command/scratchit config create NAME
.
In this example I will call my card: example, so I execute the command /scratchit config create example
Step 2
A new folder with some files will then be created automatically by the plugin, you can find it here:
Step 4
Now let's edit the card! You will notice some files in the new folder, they allow you to customize the minigame based on your needs. Open the file example.yml to edit the configurations of the card.
Step 5
Customizing the main properties of the card:
Most of the properties are self explanatory, there are some special properties tho:
scratch_card
: this is the type of the card (more will be added in the future)glow
: allows you to me the item glow without enchantneeded_to_win
: how many "right" symbols are needed to be discovered by the player to winneeded_scratch_percentage
: it's the minimum scratched percentage to make the plugin show if they lose or winwin_chance
: it's the chance of the player to find theneeded_to_win
symbols and wincursor
:speed
: speed of the cursorpressed_sound
: sound that the cursor will make while being pressedinterval_ticks
: it's the interval between each sound play
allow_left_click
: allows the player to press the cursor using also left click
Step 6
Customizing the win/lose actions: this plugin allows you to create some actions on win or lose, not only giving items but also a lot of other stuff.
For example:
Step 7
Editing the graphics: you can edit the graphics as you wish! For example I will use GIMP to edit the files.
background.png
This is the shape of the card, the background.
overlay.png
This is the part we are going to erase using the cursor, which will reveal the background.
right.png and wrong.png
These are the icons shown behind the overlay.png file
eraser.png
This is a special file, it's basically the part of the cursor which can delete the overlay.png, this is useful if you want the cursor to erase only on the top left part and don't allow the user to remove the overlay.png using the whole cursor icon.
cursor.png
It's the cursor icon shown when the player moves the mouse.
pressed_cursor.ong
It's the cursor icon shown when the player holds down right mouse button.
background_lose.png and background_win.png
These are the backgrounds shown when the user wins or loses.
lose_anim
and win_anim
folders
lose_anim
and win_anim
foldersThese are special folders and they contain the frames of the win/lose animations
Step 8
Execute the reload command and then get the item
Last updated