(function () {
var actions = core.searchBlock("lava").map(function (block) {
return { "type": "setBlock", "number": "A347", "loc": [block.x, block.y], "async": true };
});
actions.push({ "type": "sleep", "time": 500 });
actions.push({ "type": "openDoor", "loc": [block.x, block.y], "async": true });
actions.push({ "type": "waitAsync" });
actions.push({ "type": "tip", "text": core.material.items[itemId].name + "使用成功" });
core.insertAction(actions);
})();
var actions = core.searchBlock("lava").map(function (block) {
return { "type": "setBlock", "number": "A347", "loc": [block.x, block.y], "async": true };
});
actions.push({ "type": "sleep", "time": 500 });
actions.push({ "type": "openDoor", "loc": [block.x, block.y], "async": true });
actions.push({ "type": "waitAsync" });
actions.push({ "type": "tip", "text": core.material.items[itemId].name + "使用成功" });
core.insertAction(actions);
})();