泰拉瑞亞MOD製作器tModLoader使用全指南,實例製作
- 單機圖文攻略
- 關注:1.33W次
實例製作
管那麼多,先來把昆特!
咳咳。這就是一個飾品的圖片..
然後,開始製作..
我們先找找不同..
AddItem("MotherFucker", new MotherFucker(), "FirstMod/Items/MotherFucker");
recipe = new ModRecipe(this);
ngredient(Block);
esult(null, "MotherFucker", 1);
ecipe();
然後我們在裏面開始寫這個飾品的數據
using System;
using Terraria;
using ;
using oader;
using ework;
namespace s
{
public class MotherFucker : ModItem
{
}
}
套公式...這屬於簡單理解..
基本的道具屬性也不用説了,直接放上
= "Mother Fucker!";
h = 24;
ht = 28;
Tip = "Come on KunTe!.";
Tip2 = "Yooooooooooo!";
e = 10000;
= 2;
然後,我們要知道,它是個飾品,我們要它可以“佩戴"
那麼,我們就寫
ssory = true;
它是個飾品,怎麼能沒用的,所以,我們要設定它的防禦為5
nse = 5;
(ps:我還不滿足,我死的快,然後我就寫了 Regen = 19; //回血速度為19)
等會,這一切都要寫在
public override void SetDefaults()
{
}
裏面..
那麼增加角色攻擊之類的呢..?
來
公式
public override void UpdateAccessory(Player player)
{
onDamage += 19f;
}
//召喚師哭瞎
然後你的飾品就做好了
進入遊戲裏看看吧
附代碼圖
- 文章版權屬於文章作者所有,轉載請註明 https://ygyxz.com/twdj/1jv5qd.html