跳到正文

Weaponize

作者:lilypuree

Make any item into a weapon with datapacks

收藏

介绍

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

Ever wondered why you can’t use your pointy stick or a burning torch to attack enemies? Now you can with weaponize! From adding new special weapons to just having fun ways to attack, the possibilities are endless!

 

Any item that cannot be used as a weapon can be configured to have custom attack speed and damage, turning it into one. The weaponized items do not have durability.

 

Compatible with mods like Better combat.

 

 

HOW TO ADD WEAPONIZATIONS

 

weaponized uses the datapack system to change properties of items. For demonstration purposes, the mod gives the unused petrified slab item an attack speed and damage of 1. You can look into the file structure of the builtin datapack, or read the description below. 

 

Visit the Minecraft wiki to learn how to create your own datapacks (Click Here)

 

You first need to know the mod id and the item id of the item you are going to change, which would be a word that contains lowercase letters and underscores, like  some_mod and some_item

 

Next, create a JSON file named after the item id (eg: some_item.json), with the following contents. You can change the values for attack speed and damage to values you’d like for the weaponized item.

{

  “attackspeed”:1.0,

  “attackdamage”:1.0

}

 

Finally, put this in the right directory, which would be the weaponizations folder under a folder named after the mod id (namespace)

Here’s an example folder structure of the complete datapack.

 

(data pack name)

–pack.mcmeta

–pack.png

–data

  –some_mod

    –weaponizations

      –some_item.json

  –other_mod

    –weaponizations

      –other_item.json

      –another_item.json

  –minecraft

    –weaponizations

      –cactus.json

 

 

 

常见问题

Weaponize 支持哪些 Minecraft 版本?

Weaponize 支持 Minecraft Java 版 1.18–1.18.2,共 3 个版本,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

Weaponize 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

lilypuree 的其他作品

查看全部 →