Mindustry-mod制作教程
自动保存已经吞了我文章我好多次了,这次就直奔主题
Content\blocks(方块)
BlockStorge(方块储存)


Block(方块)
继承 `BlockStorge`

要: requirements
Floor(地板)
此分支若不用编辑器创建也不会自然生成

<name>-<0..>variants多贴图命名格式
OreBlock
继承`Floor`
加: "type" : "OreBlock",
要: liquidDrop/itemDrop
Crafting(工厂):
GenericCrafter(普通工厂):
继承`Block`

加: "type" : "GenericCrafter" "category" : "crafting"
要: outputItem\outputLiquid consumes
Separator(分离机):
继承`Block`
只接受液体,然后以物品多少为概率输出单个物品,如:
10xCP,12xLE,概率分别为10/22,12/22

加: "type" : "Separator" "category" : "crafting"
要: results consumes
Defense(防御)
Wall(墙)
继承`Block`
加: "type" : "Wall" "category" : "defense"
要: healthy
SurgeWall(巨浪合金[就是电击]墙)

加 "type" : "SurgeWall" "category" : "defense"
要 同上
MendProjector(大型修理者)

不用多说,同上,type不一样
OverdriveProjector(超速投影器):

Turret没弄清楚
Distribution(传输)
Converyor(传送带)
有speed字段要float类型且默认0意思为传输速度
图片
第二个尖括号均为动画帧





有一些方块的类型是什么啊?我不知道耶,下面为方块类型解释
[ ItemStack ](物品栈[锟斤烤烫烫烫烫])
Json:
[ {"item" : "你的物品" , "amount" : 物品数量}, .... ]
Hjson:
[ 你的物品/物品数量, .... ]
Category(方块在菜单显示位置)
crafting 工厂界面
defense 防御界面
distribution 物品传输界面
effect 增益界面
liquid 液体传输界面
power 能量界面
production 挖掘界面
turret 炮台界面
units 单位界面
upgrade 改造界面
Consumes(消耗器)
物品
{ "items" : { "items" : [ {"item" : "你的物品" , "amount" : 数量}, ... ] } }
液体
{ "lquid" : {"liquid" : "液体" , "amount" : "液体多少" } }
ItemStack(和第一个不一样)
{ "item" : "你的物品" }
Color(颜色)
十六进制颜色
方块这里的分支还很多,就先把这个坑填一半