## EN
Want bone meal to turn a stripped oak log back into a regular oak log? Want to repair an anvil by right-clicking it with an iron block? Easy! This plugin lets you create custom interactions where right-clicking a block replaces it with another.
## - Kallfis! But how exactly does it work?
### Several new commands have been added:
```
/ctr add - [Drop Item] [Sound on block replacement] [Particles on block replacement]
```
```
/ctr remove
```
```
/ctr reload
```
**/ctr add - Allows you to create block replacement functionality.**
> **** - The block you need to right-click to replace it.
>
> **** - The block that will replace the original one.
>
> **- ** - The item the player must be holding to perform the interaction.
>
> **[Drop Item]** - (Optional). An item that will drop from the block after it's replaced. To make sure nothing drops, you can use null instead of an item.
>
> **[Sound on block replacement]** - (Optional). The sound that will play when the block is replaced. To remove the sound completely, use null.
>
> **[Particles on block replacement]** - (Optional). The particles that will appear when the block is replaced. To remove particles completely, use null.
**/ctr remove** - Allows you to remove block replacement functionality. You just need to specify the interaction block to remove its functionality.
**/ctr reload** - Allows you to restart the plugin, for example, if you changed something in the config file.
**Example:**
```
/ctr add stripped_oak_log oak_log bone_meal
```
> Now we can turn a stripped oak log back into a regular oak log by right-clicking on it while holding bone meal.
*Note: Only 1 item is consumed from the player's hand. If you use a tool with durability, it will be used. The "Unbreaking" enchantment (levels 1-3) is taken into account.*
You can also specify multiple interaction blocks separated by commas:
/ctr add dirt_path,coarse_dirt grass_block bone_meal - Now you can turn coarse dirt or dirt paths into a grass block.
```
/ctr remove stripped_oak_log
```
We can't do that anymore :(
For now, that's all the plugin's functionality. It will be updated and improved when possible!
## RU
想要骨粉将剥皮的橡木原木转换回普通的橡木原木吗?想要通过用铁块向砧石点击来修复它吗?很容易!这个插件允许你创建自定义交互,当你点击一个方块时,它会被替换成另一个方块。
## - Kallfis! 但它到底怎么工作的呢?
### 添加了几个新的命令:
```
/ctr add <交互方块> <替换方块> <手中物品> [掉落物品] [方块替换时的声音] [方块替换时的粒子]
```
```
/ctr remove <交互方块>
```
```
/ctr reload
```
**/ctr add - 允许你创建方块替换功能。**
> **<交互方块>** - 你需要点击的方块来进行替换。
>
> **<替换方块>** - 将会替换原始方块的方块。
>
> **<手中物品>** - 玩家必须拿着的物品来进行交互。
>
> **[掉落物品]** - (可选)。方块替换后从方块掉落的物品。为了确保没有任何东西掉落,你可以使用 null 代替物品。
>
> **[方块替换时的声音]** - (可选)。方块替换时播放的声音。为了完全移除声音,使用 null。
>
> **[方块替换时的粒子]** - (可选)。方块替换时出现的粒子。为了完全移除粒子,使用 null。
**/ctr remove** - 允许你移除方块替换功能。你只需要指定交互方块来移除它的功能。
**/ctr reload** - 允许你重新启动插件,例如,如果你在配置文件中更改了一些东西。
**例子:**
```
/ctr add stripped_oak_log oak_log bone_meal
```
> 现在我们可以通过右键点击它并在手中拿着骨粉,将剥皮的橡木原木转换回普通的橡木原木。
*注意:只会消耗玩家手中 1 个物品。如果你使用带有耐久度的工具,它将会被使用。将会考虑“耐久”附魔 (1-3 级)。*
你也可以使用逗号分隔来指定多个交互方块:
/ctr add dirt_path,coarse_dirt grass_block bone_meal - 现在你可以将粗糙的泥土或泥路转换成草方块。
```
/ctr remove stripped_oak_log
```
我们再也不能这么做了 :(
目前,插件的全部功能就是这些。在可能的情况下,它将会得到更新和改进!