Hallo, ich versuche Ereignisse und Orte zu einer Funktion hinzuzufügen. Wenn also ein Block auf einen bestimmten Block gelegt wird, erhalten Sie eine Nachricht und fügen +1 zur Punktzahl hinzu, aber keine Fehler es funktioniert nicht Ich habe noch nie zuvor in Javascript programmiert.Scriptcraft location & events
var score = 0
events.blockPlace(function (event, location) {
if (location.x == -239.538 && location.y == 71.000 &&
location.z ==314.407) {
\t echo(event.player, 'You have just placed an block');
\t var scored = score =+ 1
}
});