五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網 會員登陸 & 注冊

MDT模組工廠制作

2021-08-19 16:53 作者:NullPointerErr  | 我要投稿

我們知道,高級物資是由低級物資經過工廠加工而來的,所以可想而知工廠的重要性

教程部分

小硅 -> 普通工廠/GenericCrafter

silicon-smelter

siliconSmelter = new GenericCrafter("silicon-smelter"){{
 ? ?requirements(Category.crafting, with(Items.copper, 30, Items.lead, 25));
 ? ?craftEffect = Fx.smeltsmoke;
 ? ?outputItem = new ItemStack(Items.silicon, 1);
 ? ?craftTime = 40f;
 ? ?size = 2;
 ? ?hasPower = true;
 ? ?hasLiquids = false;
 ? ?drawer = new DrawSmelter(Color.valueOf("ffef99"));

 ? ?consumes.items(with(Items.coal, 1, Items.sand, 2));
 ? ?consumes.power(0.50f);
}};

public DrawSmelter(Color flameColor){
 ? ?this.flameColor = flameColor;
}

json

{
 ? ?"type": "GenericCrafter",
 ? ?"name": "json-siliconSmelter",
 ? ?"category": "crafting",
 ? ?"requirements": [
 ? ? ? ?"copper/30","lead/25"
 ? ?],
 ? ?"outputItem": "silicon/1",
 ? ?"craftTime": 40.00,
 ? ?"size": 2,
 ? ?"hasPower": true,
 ? ?"hasLiquids": false,
 ? ?"drawer": {
 ? ? ? ?"type": "DrawSmelter",
 ? ? ? ?"flameColor": "ffef99"
 ? ?},
 ? ?"consumes": {
 ? ? ? ?"items": {
 ? ? ? ? ? ?"items": [
 ? ? ? ? ? ? ? ?"coal/1","sand/2"
 ? ? ? ? ? ?]
 ? ? ? ?},
 ? ? ? ?"power": 0.50
 ? ?}
}

屬性解釋

  • outputItem: 輸出單種類物品

  • craftTime: 制作時間

  • hasPower: 能否擁有能量(游戲自帶初始化,一般不填,但是在工廠里幾乎全要填)

  • hasLiquid: 能否擁有液體(同上)

  • drawer: 添加貼圖(?)

大硅 -> 屬性工廠/AttributeCrafter

silicon-crucible
siliconCrucible = new AttributeCrafter("silicon-crucible"){{
 ? ?requirements(Category.crafting, with(Items.titanium, 120, Items.metaglass, 80, Items.plastanium, 35, Items.silicon, 60));
 ? ?craftEffect = Fx.smeltsmoke;
 ? ?outputItem = new ItemStack(Items.silicon, 8);
 ? ?craftTime = 90f;
 ? ?size = 3;
 ? ?hasPower = true;
 ? ?hasLiquids = false;
 ? ?itemCapacity = 30;
 ? ?boostScale = 0.15f;
 ? ?drawer = new DrawSmelter(Color.valueOf("ffef99"));

 ? ?consumes.items(with(Items.coal, 4, Items.sand, 6, Items.pyratite, 1));
 ? ?consumes.power(4f);
}};

public DrawSmelter(Color flameColor){
 ? ?this.flameColor = flameColor;
}

json

{
 ? ?"type": "AttributeCrafter",
 ? ?"name": "json-siliconCrucible",
 ? ?"category": "crafting",
 ? ?"requirements": [
 ? ? ? ?"titanium/120","metaglass/80","plastanium/35","silicon/60"
 ? ?],
 ? ?"outputItem": "silicon/8",
 ? ?"craftTime": 90.00,
 ? ?"size": 3,
 ? ?"hasPower": true,
 ? ?"hasLiquids": false,
 ? ?"itemCapacity": 30,
 ? ?"boostScale": 0.15,
 ? ?"drawer": {
 ? ? ? ?"type": "DrawSmelter",
 ? ? ? ?"flameColor": "ffef99"
 ? ?},
 ? ?"consumes": {
 ? ? ? ?"items": {
 ? ? ? ? ? ?"items": [
 ? ? ? ? ? ? ? ?"coal/4","sand/6","pyratite/1"
 ? ? ? ? ? ?]
 ? ? ? ?},
 ? ? ? ?"power": 4.00
 ? ?}
}

屬性解釋

  • itemCapacity: 物品容量

  • boostScale: 增益倍率(?)

冷凍液混合器 -> 液體轉換器/LiquidConverter

cryofluid-mixer
cryofluidMixer = new LiquidConverter("cryofluid-mixer"){{
 ? ?requirements(Category.crafting, with(Items.lead, 65, Items.silicon, 40, Items.titanium, 60));
 ? ?outputLiquid = new LiquidStack(Liquids.cryofluid, 0.2f);
 ? ?craftTime = 120f;
 ? ?size = 2;
 ? ?hasPower = true;
 ? ?hasItems = true;
 ? ?hasLiquids = true;
 ? ?rotate = false;
 ? ?solid = true;
 ? ?outputsLiquid = true;
 ? ?drawer = new DrawMixer();

 ? ?consumes.power(1f);
 ? ?consumes.item(Items.titanium);
 ? ?consumes.liquid(Liquids.water, 0.2f);
}};

json

{
 ? ?"type": "LiquidConverter",
 ? ?"name": "json-cryofluidMixer",
 ? ?"category": "crafting",
 ? ?"requirements": [
 ? ? ? ?"lead/65","silicon/40","titanium/60"
 ? ?],
 ? ?"outputLiquid": "cryofluid/0.2",
 ? ?"craftTime": 120.00,
 ? ?"size": 2,
 ? ?"hasPower": true,
 ? ?"hasItems": true,
 ? ?"hasLiquids": true,
 ? ?"rotate": false,
 ? ?"solid": true,
 ? ?"outputsLiquid": true,
 ? ?"drawer": "DrawMixer",
 ? ?"consumes": {
 ? ? ? ?"power": 1.00,
 ? ? ? ?"item": "titanium",
 ? ? ? ?"liquid": "water/0.2"
 ? ?}
}

屬性解釋

  • outputLiquid: 輸出液體

  • hasItems: 能否擁有物品(同hasPower)

  • rotate: 是否可旋轉(同上)

  • solid: 是否為固體(同上)

分離機 -> 分離機/Separator

separator
separator = new Separator("separator"){{
 ? ?requirements(Category.crafting, with(Items.copper, 30, Items.titanium, 25));
 ? ?results = with(
 ? ? ? ?Items.copper, 5,
 ? ? ? ?Items.lead, 3,
 ? ? ? ?Items.graphite, 2,
 ? ? ? ?Items.titanium, 2
 ? ?);
 ? ?hasPower = true;
 ? ?craftTime = 35f;
 ? ?size = 2;

 ? ?consumes.power(1.1f);
 ? ?consumes.liquid(Liquids.slag, 4f / 60f);
}};

json

{
 ? ?"type": "Separator",
 ? ?"name": "json-separator",
 ? ?"category": "crafting",
 ? ?"requirements": [
 ? ? ? ?"copper/30","titanium/25"
 ? ?],
 ? ?"results": [
 ? ? ? ?"copper/5","lead/3","graphite/2","titanium/2"
 ? ?],
 ? ?"hasPower": true,
 ? ?"craftTime": 35.00,
 ? ?"size": 2,
 ? ?"consumes": {
 ? ? ? ?"power": 1.10,
 ? ? ? ?"liquid": "slag/0.067"
 ? ?}
}

屬性解釋

  • results: 每個產出物品概率(而非數量)

焚燒爐 ->?焚燒爐/Incinerator

incinerator
incinerator = new Incinerator("incinerator"){{
 ? ?requirements(Category.crafting, with(Items.graphite, 5, Items.lead, 15));
 ? ?health = 90;
 ? ?consumes.power(0.50f);
}};

json

{
 ? ?"type": "Incinerator",
 ? ?"name": "json-incinerator",
 ? ?"category": "crafting",
 ? ?"requirements": [
 ? ? ? ?"graphite/5","lead/15"
 ? ?],
 ? ?"health": 90.00,
 ? ?"consumes": {
 ? ? ? ?"power": 0.50
 ? ?}
}

無可講

分類部分

全方塊可用

  • hasPower: boolean

  • hasLiquid: boolean

  • hasItems: boolean

GenericCrafter

  • outputItem: ItemStack

  • @nullable outputItems: ItemStack[]

    輸出多類物品

  • @nullable outputLiquid:?LiquidStack

    輸出液體

AttributeCrafter

拓展 GenericCrafter

  • boostScale: float

  • maxBoost: float

    最大倍率

LiquidConverter

拓展 GenericCrafter

Separator

  • results: ItemStack[]

Incinerator

其他

@nullable

java修飾符,意為可以為空

資源

https://1565619256.lanzoui.com/b016oabjc

密碼:4pji


MDT模組工廠制作的評論 (共 條)

分享到微博請遵守國家法律
信丰县| 九台市| 公主岭市| 威海市| 阿尔山市| 手游| 时尚| 金塔县| 崇州市| 突泉县| 三江| 江西省| 天峻县| 江永县| 伊春市| 科技| 伊通| 兴安盟| 城步| 乐安县| 常熟市| 永修县| 洪江市| 福海县| 博客| 青田县| 清水河县| 磴口县| 边坝县| 循化| 历史| 乌拉特后旗| 乐陵市| 栾川县| 奉化市| 霍林郭勒市| 三门县| 嘉祥县| 舒兰市| 疏附县| 温宿县|