WikiWiki
Home
  • Getting Started
  • Wiki
  • Creating Your Own Items
Home
  • Getting Started
  • Wiki
  • Creating Your Own Items
  • Content

    • Creating Your Own Items
    • Custom Items
    • Creating Soldier POIs
    • Adding new Teams
    • Item Set Types
    • Tags
    • Examples
    • Item Properties
    • Soldier Attributes
    • Common Values

Item Set Types

tem Set Types are used to easily spawn custom items for Clay Soldiers. They work in conjunction with the /csr items command.

Adding Items to Existing Types

To add items to a predefined type, simply include them in the corresponding item tag:

KeyTag
csr:basiccsr:clay_soldier_items/basic
csr:rangedcsr:clay_soldier_items/ranged
csr:tankcsr:clay_soldier_items/tank
csr:armoredcsr:clay_soldier_items/armored
csr:specialistcsr:clay_soldier_items/specialist
csr:supportcsr:clay_soldier_items/supportive
csr:divercsr:clay_soldier_items/diver
csr:arsonistcsr:clay_soldier_items/arsonist
csr:magiciancsr:clay_soldier_items/magician
csr:royaltycsr:clay_soldier_items/royalty
csr:fashioncsr:clay_soldier_items/fashion
csr:kingdomcsr:clay_soldier_items/kingdom

Creating a Custom Item Type

To define your own item type, create a .json file inside the following directory structure of your data pack:

└─ data
   └─ (your data pack name)
      └─ csr
         └─ soldier_item_type
            └─ (your_type_name).json                 

The file must contain a generator and a tag that it pulls items from.

JSON Structure

{
  "generator": genrator,
  "tag": tag
}
  • generator – Determines how items are selected from the tag.
  • tag – The item tag used as the source pool.

Generators selected the upt to give amount of items specified in the command from the tag. Available Generators are:

GeneratorDescription
csr:defaultSelects the specified number of items randomly from the tag. Items can be selected multiple times.
csr:one_of_eachSelects up to the specified number of unique items. No duplicates.
csr:one_of_each_no_tagLike one_of_each, but excluded from the csr:combined_defaulted generator.
csr:combined_defaultedSelects the given amounts of items from all item types.

Example

{
  "generator": "csr:default",
  "tag": "csr:clay_soldier_items/armored"
}
Last Updated:
Contributors: XcraX1
Prev
Adding new Teams
Next
Tags