Minecraft Skript/배포

[마인크래프트 스크립트] 전체 지급 스크립트 배포

Script_Coder 2022. 2. 18. 20:00
728x90
반응형

안녕하세요. 오늘은 마인크래프트 전체 지급 스크립트를 배포하겠습니다.

전체 지급 스크립트란, 모든 유저에게 자신이 들고 있는 아이템을 각각 지급하는 것입니다.

물론 오피만 사용할 수 있고 테스트 서버 버전은 1.17.1입니다.

 

사용방법:

 

/전체지급 -> 들고있는 아이템을 자신을 제외한 모든 플레이어에게 지급합니다.

전체지급.sk
0.00MB

서버에 스크립트 적용하는 방법

 

구문:

options:
	ag : &l&f[ &l&b전체 지급 &l&f]
	
	

command /전체지급:
	trigger:
		if player is op:
			set {_item} to player's tool
			if type of {_item} is not air:
				loop all players:
					set {_giver} to "%player%"
					if loop-player is not "%{_giver}%":
						give {_item} to loop-players
						message "{@ag} &b 모든 플레이어에게 &6'&f%{_item}%&6' &b을 지급했습니다." to player
						stop
			else:
				message "{@ag} &c모든 플레이어에게 지급할 아이템을 손에 들어주세요." to player
		
		else:
			message "{@ag} &c당신은 이 명령어를 사용할 권한이 없습니다." to player
728x90
반응형