Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Niszczenie stoniarek na spawnie


Vipevsk

Rekomendowane odpowiedzi

Opublikowano

command /stoniarkadaj:
	permission: amc.stoniarka
	trigger:
		send "&cDostales stoniarke"
		give 1 end stone named "&cStoniarka" to player
on place of end stone:
	if name of the player's tool is "&cStoniarka":
		send "&cPostawiles &cstoniarke"
		set {stoniarka.%location of event-block%} to true
		wait 10 ticks
		set event-block to stone
		stop
on break of stone:
	if {stoniarka.%location of event-block%} is true:
		if player is holding golden pickaxe:
			if "%region at player%" contains "spawn":
				cancel event
			else:
				cancel event
				send "&cZniszczyles stoniarke"
				set event-block to air
				if player can hold 1 end stone named "&cStoniarka":
					give 1 end stone named "&cStoniarka" to the player
					stop
				else:
					drop 1 end stone named "&cStoniarka:"
					stop
		else:
			wait 1.5 second
			set event-block to stoniarka
			stop

Region musi zawierać słowo spawn

Jeśli ci pomogłem to daj lajka ❤️ 

 

Opublikowano
command /stoniarka:
	permission: amc.stoniarka
	trigger:
		send "&cDostales stoniarke"
		give 1 end stone named "&cStoniarka" to player
on place of end stone:
	if name of the player's tool is "&cStoniarka":
		send "&cPostawiles &cstoniarke"
		set {stoniarka.%location of event-block%} to true
		wait 10 ticks
		set event-block to stone
		stop

on break of stone:
	if {stoniarka.%location of event-block%} is true:
		if player is holding golden pickaxe:
			set {_region} to "%region at player%" 
			if "%{_region}%" contains "spawn":
				cancel event
				stop
			else:
				cancel event
				send "&cZniszczyles stoniarke"
				set event-block to air
				if player can hold 1 end stone named "&cStoniarka":
					give 1 end stone named "&cStoniarka" to the player
					stop
				else:
					drop 1 end stone named "&cStoniarka:"
					stop
		else:
			wait 1.5 second
			set event-block to stoniarka
			stop

 

 

Czy jesteś pewien, że region, w którym znajduje się gracz zawiera słowo "spawn"? 

Jeśli błędy nie ustępują - skontaktuj się ze mną poprzez discord, nazwa w profilu

Jeśli ci pomogłem to daj lajka ❤️ 

 

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...