Skip to content

Instantly share code, notes, and snippets.

@niwaniwa
Last active August 29, 2015 14:21
Show Gist options
  • Save niwaniwa/1930c6dcf3a6bb73372f to your computer and use it in GitHub Desktop.
Save niwaniwa/1930c6dcf3a6bb73372f to your computer and use it in GitHub Desktop.
match.on('start', function() {
// 15分後発生させる
setTimeout(function() {
match.getWorld().strikeLightning(0,58,90, false);
// playEffect(0,58,90,FIREWORKS_SPARK,1,100);
match.getWorld().strikeLightning(0,58,90, false);
var players = match.getPlayers();
for(var i = 0 ; i < players.length; i++){
var locale = players[i].getLocale();
if(locale.equalsIgnoreCase('ja_JP')){
players[i].sendMessage('`a### `6中央に鉄鉱石が出現!! `a###');
} else {
players[i].sendMessage('`a### `6Iron ore appeared in the center `a###');
}
}
}, 900000);
});
match.on('end', function() {
// しるヴぁんの案を拝借
console.log('Match end.');
match.broadcast('-- Match End -- script event test');
playSound(0,58,90,WITHER_DEATH,1,1) // 第一、二、三引数:座標 :第四:エフェクト:第五:音量?:第六:再生速度?
});
match.on('load', function() {
console.log('Match loaded.');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment