跳到正文

Swap Item

作者:Nico4play

A Data Pack / Mod that adds a bunch of new commands that allows players to swap the item they are holding with the target slot of any mob!

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Swap Item

A Data Pack / Mod that adds a bunch of new commands that allows players to swap the item they are holding with the target slot of a mob!

📥How to Install

Choose if you want to download the pure Data Pack version or the Mod version and follow the steps accordingly.

Data Pack
  • 1) Download the Datapack
  • 2) Chose the world you want to install the Data Pack in and navigate to its “_datapacks_” folder
  • 3) Copy the downloaded Data Pack file (Swap Item) into this folder
  • 4) Join the world and run /reload command
Mod
  • 1) Download the Mod
  • 2) Navigate to your mods folder (for the vanilla launcher the path is .minecraft/mods
  • 3) Put the downloaded .jar file (Swap Item) into this folder
  • 4) Join the world and run /reload command

The Mod version of this Data Pack is compatibile with Fabric, Forge, Quilt and NeoForge

Note: _support for NeoForge is available starting from version 1.2.2 of the pack_

📖Features

This Data Pack introduces a bunch of new commands that allow you to swap two inventory slots between the player and an entity. Plus, as a bonus, you can now place any item in your head slot! Following the list of the commands and their effects.

Commands
Command Effect
/trigger swapitem.entity.mainhand Swap the item you are holding with the item in the mainhand slot
of the entity you are looking at.
/trigger swapitem.entity.offhand Swap the item you are holding with the item in the offhand slot
of the entity you are looking at.
/trigger swapitem.entity.head Swap the item you are holding with the item in the head slot
of the entity you are looking at.
/trigger swapitem.entity.chest Swap the item you are holding with the item in the chest slot
of the entity you are looking at.
/trigger swapitem.entity.legs Swap the item you are holding with the item in the legs slot
of the entity you are looking at.
/trigger swapitem.entity.feet Swap the item you are holding with the item in the feet slot
of the entity you are looking at.
/trigger swapitem.head Puts the item you are holding in your head slot.
YouTube Showcase

📤How to Uninstall

Data Pack

To uninstall the Data Pack version you can just run /function swap_item:uninstall command. When the uninstallation process is completed a confirmation message will be sent in the chat.

Mod

To uninstall the Mod version you need to run /function swap_item:uninstall command. Then you close the game and remove the jar file from your .minecraft/mods folder.

🔗External links


常见问题

Swap Item 支持哪些 Minecraft 版本?

Swap Item 支持 Minecraft Java 版 1.19–26.3,共 29 个版本,可用的加载器:Fabric / Forge / NeoForge / Quilt。下载时注意选择和你游戏版本一致的文件。

Swap Item 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。

评论

登录后评论和评分

Nico4play 的其他作品

查看全部 →