Configuring cards

You don't need to modify anything, just to understand how everything works.

Head up to items.yml file and locate the cards section. Here you'll be able to configure every card. I'll explain every option in detail.

Base model data

This is the base model data all your cards in your texture pack should have. Meaning that all your cards should have 5xxx in their model data. Plugin works this way to prevent you from manually setting the model data of all the cards one by one.

base_model_data: 5000

Colored cards

blue:
  material: PAPER
  display_name: "&9%type%"
  sub_model_data: 100
red:
  material: PAPER
  display_name: "&c%type%"
  sub_model_data: 200
# ...

As you know, UNO has 4 colors. And every one of them should be configured properly. Take a look at the code and read below for explanation:

Blue cards will be made out of PAPER and their sub_model_data will be 100. Also it's name will be &9 (blue color) and %type%, which can be either a special card or a number. You'll be able to configure special cards names, but numbers will display themselves by default in the %type% placeholder (configurable).

This means that, for example, 3 Blue will be named 3 (&93), and have a custom model data of 5103 (base model data + sub_model_data + number/type). We'll explain special cards next.

Look at the red cards section above, which will be the model data of 8 Red?

Answer: 5208 (5000 + 200 + 8)

Remember -> base model data + sub model data + number / type model data

Special colored cards

reverse: "Reverse"
reverse_sub_model_data: 10
skip: "Skip"
skip_sub_model_data: 11
plus_two: "+2"
plus_two_sub_model_data: 12
number: "%number%"

For example, reverse: "Reverse" means that the reverse card will be called Reverse.

Here you can also change the number output, by default they will just display their own number.

Special types model datas override the number model data. Meaning that, with the colored cards example above, the Reverse Blue will have a model data of 5110 and it's name will be &9Reverse (Reverse).

Which card will have the model data of 5212?

Answer: +2 Red

5000 (base model data) + 200 (red sub model data) + 12 (plus two sub model data)

Non-colored special cards

Wildcard and the +4 card work very different from the colored ones. You can just simply use the model data you want.

wild_card:
  material: PAPER
  display_name: "&dWild card"
  model_data: 5500
plus_four:
  material: PAPER
  display_name: "&d+4"
  model_data: 5501

What to do now?

You have to create items with the material you chose (default PAPER) with the correct model data. However, if you have Oraxen or Nexo, here is a pre-made cards item file (it uses default config values!):

Put the file in oraxen|nexo/pack/items

Last updated