> For the complete documentation index, see [llms.txt](https://wiki.aegis-mine.ru/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.aegis-mine.ru/modifications/sozdanie-kontenta/sdm-crafttweaker-plus/moduli.md).

# Модули

## RPG Модуль

{% hint style="info" %}
Перед использование нужно включить в <mark style="color:blue;">**config**</mark> файле <mark style="color:blue;">**RPG Module**</mark> и другие нужные Вам функции.
{% endhint %}

Если Вы хотели когда-то создать RPG Сборку и сделать собственную систему лута с множеством условий на выпадение предметов - используйте `mods.sdmcrtplus.utils.functions.sixikrpg.utils.SixikRPGUtils`.

### Пример

```java
import mods.sdmcrtplus.utils.functions.sixikrpg.property.entity.EntityPropertyItemBase;
import crafttweaker.api.item.IItemStack;
import stdlib.List;
import mods.sdmcrtplus.utils.functions.sixikrpg.utils.SixikRPGUtils;
import mods.sdmcrtplus.utils.functions.sixikrpg.entity.elements.EntityElementBase;
import mods.sdmcrtplus.utils.functions.sixikrpg.property.entity.EntityDropLootProperty;
import mods.sdmcrtplus.utils.functions.sixikrpg.property.loot.ItemLootPropertyDay;
import mods.sdmcrtplus.utils.functions.sixikrpg.property.loot.ItemLootPropertyBase;
import mods.sdmcrtplus.utils.functions.sixikrpg.property.entity.EntityPropertyBase;
import crafttweaker.api.entity.EntityType;
import crafttweaker.api.entity.Entity;
import mods.sdmcrtplus.utils.functions.sixikrpg.property.loot.ItemLootBase;
import mods.sdmcrtplus.utils.functions.sixikrpg.property.loot.ItemLootPropertyKillCurrentItem;
import mods.sdmcrtplus.utils.functions.sixikrpg.property.loot.ItemLootPropertyOnlyPlayer;
import mods.sdmcrtplus.utils.functions.sixikrpg.block.BlockSkillBase;
import mods.sdmcrtplus.utils.functions.sixikrpg.property.block.destroy.BlockNoDestroy;
import mods.sdmcrtplus.utils.functions.sixikrpg.property.block.destroy.BlockPropertyDestroy;
import mods.sdmcrtplus.utils.functions.sixikrpg.property.block.BlockDropLoot;
import mods.sdmcrtplus.utils.functions.sixikrpg.property.block.BlockExplosion;
```

Со слизней при убийстве деревянным мечом, после 10 дня игры, будет падать алмаз или золотой слиток с шансом в 50%, а максимальное количество выпадаемых за раз предметов равно 10 ед.

```java
SixikRPGUtils.register(
  new EntityElementBase([ < entitytype: minecraft: slime > ] as EntityType < Entity > [], [
    new EntityDropLootProperty(
      new ItemLootBase(
        [ <
          item: minecraft: diamond > , <
          item: minecraft: gold_ingot >
        ],
        [
          new ItemLootPropertyDay(10),
          new ItemLootPropertyKillCurrentItem([ < item: minecraft: wooden_sword > ]),

        ],
        50.0
      ),
      10
    )
  ] as EntityPropertyBase[])
);
```

Со слизней при убийстве деревянным мечом, после 12 дня игры, будет падать изумруд или медный слиток с шансом в 50%, а максимальное количество выпадаемых за раз предметов равно 10 ед.&#x20;

```java
SixikRPGUtils.register(
  new EntityElementBase([ < entitytype: minecraft: slime > ] as EntityType < Entity > [], [
    new EntityDropLootProperty(
      new ItemLootBase(
        [ <
          item: minecraft: diamond > , <
          item: minecraft: gold_ingot >
        ],
        [
          new ItemLootPropertyDay(10),
          new ItemLootPropertyKillCurrentItem([ < item: minecraft: wooden_sword > ]),

        ],
        50.0
      ),
      10 aSixikRPGUtils.register(
        new EntityElementBase([ < entitytype: minecraft: slime > ] as EntityType < Entity > [], [
          new EntityDropLootProperty(
            new ItemLootBase(
              [ <
                item: minecraft: emerald > , <
                item: minecraft: copper_ingot >
              ],
              [
                new ItemLootPropertyDay(12),
                new ItemLootPropertyKillCurrentItem([ < item: minecraft: wooden_sword > ]),

              ],
              50.0
            ),
            10
          )
        ] as EntityPropertyBase[])
      );
    )
  ] as EntityPropertyBase[])
);
```

При ломании камня он будет взрываться!

```java
SixikRPGUtils.register(new BlockSkillBase(blockstate:minecraft:stone, [ new BlockExplosion(10.0, 20.0, 50.0) ]));
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://wiki.aegis-mine.ru/modifications/sozdanie-kontenta/sdm-crafttweaker-plus/moduli.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
