我使用Minecraft 1.7工具将Route::group(['middleware' => ['role:admin|owner']], function () { .. });
文件转换为.schematic
文件,以便将.java
导入我的1.8 mod。我修复了一个未定位的块名称,但仍然存在一些错误。
也许我问的太多了,但是任何人都可以让我的代码工作,以便生成结构吗?
.java
答案 0 :(得分:0)
我以前做过这个,我学到的经验教训:
-
"blockids": {
"1546678461":{
"modid":"thaumcraft",
"blockid":"blockCandle",
"metadata":"14"
}
},
"positions":[
{
"blockpos":{ "x":10,"y":71,"z":-423},
"blockid":"1546678461",
"isrange":false,
"nbtdata":"something:something"
},
{
"blockid":"1546678461",
"isrange":true,
"from":{ "x":10,"y":71,"z":-423},
"to":{ "x":20,"y":71,"z":-413},
"nbtdata":""
}
]
}
-
protected StructureStart getStructureStart(int chunkX, int chunkZ)
{
MapGenEntropyTemple.Start start = new MapGenEntropyTemple.Start(this.worldObj, this.rand, chunkX, chunkZ);
try {
Class<?> mapgen = MapGenStructure.class;
Method markdirty = MagicCookieReflectionHelper.getMethod(mapgen,"func_143026_a", int.class,int.class,StructureStart.class);
if(markdirty != null) {
markdirty.setAccessible(true);
markdirty.invoke(this, start.getChunkPosX(), start.getChunkPosZ(), start);
}
else {
MagicCookies.log.error("Structure generation locations cannot be saved.");
}
}
catch(Exception ex) {
MagicCookies.log.warn("well fiddlesticks",ex);
}
//this.func_143026_a(start.func_143019_e(), start.func_143018_f(), start);
//Class c = MapGenStructureData.field_143029_e
return start;
}