setblock beim betreten des servers?
guten tag,
wir brauchen einen /setblock command für einen spieler der gerade auf unseren server kommt, also, spieler kommt online und es wird ein setblock command getriggert.. kann mir da wer helfen?
danke im voraus
2 Antworten
Von gutefrage auf Grund seines Wissens auf einem Fachgebiet ausgezeichneter Nutzer
Minecraft, Minecraft Server, Spiele und Gaming
Diesen Command einmal ausführen:
/scoreboard objektives add leave minecraft.custom:leave_game
Dieser Command muss in einen repeating command block eingetragen werden:
/execute as @a[scores={leave=1..}] at @s run setblock...
Und in einen chain command block in der richtung in die der erste command block zeigt:
/scoreboard players set @a[scores={leave=1..}] leave 0
Woher ich das weiß:Hobby – Ich bin aktiver Spieler seit 2011
Spigot ?
Woher ich das weiß:Hobby – Habe viel mit PCs zu tun
Wenn ja beim PlayerJoinEvent
Location location = player.getLocation;
x=location.getBlockX;
y= location.getBlockY- 1 ;
z=location.getBlockZ;
Location location1 = new Location(location.getWorld, x , y , z)
location1.getBlock.setType(Material.BEDROCK);
Paper, aber soll wenn möglich vanilla sein