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

[Problem] Fortuna - nie działa.


Rekomendowane odpowiedzi

Opublikowano

Witam, Nie działa mi fortuna, Gdy jest kilof z fortuną to cały czas wypada po 1 surowcu zamiast np. czasami po 2-3.

on mine of any ore:
	cancel event
	delete block
	send "&cTen surowiec wypada tylko z kamienia!"
on mine of stone:
	add 2 exp to player
	if player's tool is a diamond pickaxe of fortune:
		chance of 2.5%:
			give a random number between 3 and 1 of iron ore to the player
			send "&aZnalazles &5>> &fzelazo"
		chance of 2.2%:
			give a random number between 3 and 1 of gold ore to the player
			send "&aZnalazles &5>> &6zloto"
		chance of 0.6%:
			give a random number between 1 and 2 of emerald to the player
			send "&aZnalazles &5>> &2emerald"
		chance of 0.7%:
			give a random number between 1 and 2 of diamond to the player
			send "&aZnalazles &5>> &bdiament"
		chance of 3.5%:
			give a random number between 6 and 2 of redstone to the player
			send "&aZnalazles &5>> &4redstone"
		chance of 4.0%:
			give a random number between 6 and 2 of coal to the player
			send "&aZnalazles &5>> &0wegiel"
		chance of 0.0%:
			give a random number between 6 and 1 of lapis lazuli to the player
			send "&Znalazles &1lapis lazuli"
		chance of 0.0%:
			give a random number between 6 and 1 of slime to the player
			send "&Znalazles &aslime ball"	
		chance of 0.0%:
			give a random number between 6 and 1 of ender pearl to the player
			send "Znalazles &dender pearl"				
	else:
		chance of 2.5%:
			give 1 iron ore to the player
			send "&aZnalazles &5>> &8zelazo"
		chance of 2.2%:
			give 1 gold ore to the player
			send "&aZnalazles &5>> &6zloto"
		chance of 0.6%:
			give 1 emerald to the player
			send "&aZnalazles &5>> &2emerald"
		chance of 0.7%:
			give 1 diamond to the player
			send "&aZnalazles &5>> &bdiament"
		chance of 3.5%:
			give a random number between 6 and 1 of redstone to the player
			send "&aZnalazles &5>> &4redstone"
		chance of 4.0%:
			give 1 coal to the player
			send "&aZnalazles &5>> &0wegiel"
		chance of 0.0%:
			give a random number between 6 and 1 of lapis lazuli to the player
			send "Znalazles &1lapis lazuli"
		chance of 0.0%:
			give 1 slime to the player
			send "Znalazles &aslime ball"
		chance of 0.0%:
			give 1 ender pearl to the player
			send "Znalazles &dender pearl"
command /drop:
	trigger:
		send "&f&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&b&l[ &a&lDrop Ze Stone &b&l]&f&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-"
		send "&b&lDiament &5>> &c0.7 &7procent"
		send "&2&lEmerald &5>> &c0.5 &7procent"
		send "&6&lZloto &5>> &c2.2 &7procent"
		send "&8&lZelazo &5>> &c2.5 &7procent"
		send "&0&lWegiel &5>> &c4.0 &7procent"
		send "&4&lRedstone &5>> &c3.5 &7procent"
		send "&f&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-"
Opublikowano

uzyj

of fortune 1

 

lub

of fortune 2 itd.

lub

of any fortune

i lepiej sac set (_a) to 1 or 2 or 3

gice (_ac) diamonda

 

() - {}

Opublikowano
on mine of stone:
	add 2 exp to player
	if player's tool is a diamond pickaxe of fortune:

Zamien na jaka fotune, np:

on mine of stone:
	add 2 exp to player
	if player's tool is a diamond pickaxe of fortune 1 or fortune 2 or fortune 3:

Jezeli chcesz, abym odpowiedzial na Twoj post to napisz @mrMIXKRIPL

Tu nic nie ma, nawet kropki


graphic.png

Opublikowano

To samo można zrobić w otherdrop'ie i masz pewność że nie bd bugów a po za tym pluginy są lepsze

A co do topic to @mrMIXKRIPL dobrze mówi znaczy pisze :D

4462514400953061278225.png

Opublikowano

Ustawilem to tak:

on mine of any ore:
	cancel event
	delete block
	send "&cTen surowiec wypada tylko z kamienia!"
on mine of stone:
	add 2 exp to player
	if player's tool is a diamond pickaxe of fortune 1 or fortune 2 or fortune 3:
		chance of 2.5%:
			give a random number between 3 and 1 of iron ore to the player
			send "&aZnalazles &5>> &fzelazo"
		chance of 2.2%:
			give a random number between 3 and 1 of gold ore to the player
			send "&aZnalazles &5>> &6zloto"
		chance of 0.6%:
			give a random number between 1 and 2 of emerald to the player
			send "&aZnalazles &5>> &2emerald"
		chance of 0.7%:
			give a random number between 1 and 2 of diamond to the player
			send "&aZnalazles &5>> &bdiament"
		chance of 3.5%:
			give a random number between 6 and 2 of redstone to the player
			send "&aZnalazles &5>> &4redstone"
		chance of 4.0%:
			give a random number between 6 and 2 of coal to the player
			send "&aZnalazles &5>> &0wegiel"
		chance of 0.0%:
			give a random number between 6 and 1 of lapis lazuli to the player
			send "&Znalazles &1lapis lazuli"
		chance of 0.0%:
			give a random number between 6 and 1 of slime to the player
			send "&Znalazles &aslime ball"	
		chance of 0.0%:
			give a random number between 6 and 1 of ender pearl to the player
			send "Znalazles &dender pearl"				
	else:
		chance of 2.5%:
			give 1 iron ore to the player
			send "&aZnalazles &5>> &8zelazo"
		chance of 2.2%:
			give 1 gold ore to the player
			send "&aZnalazles &5>> &6zloto"
		chance of 0.6%:
			give 1 emerald to the player
			send "&aZnalazles &5>> &2emerald"
		chance of 0.7%:
			give 1 diamond to the player
			send "&aZnalazles &5>> &bdiament"
		chance of 3.5%:
			give a random number between 6 and 1 of redstone to the player
			send "&aZnalazles &5>> &4redstone"
		chance of 4.0%:
			give 1 coal to the player
			send "&aZnalazles &5>> &0wegiel"
		chance of 0.0%:
			give a random number between 6 and 1 of lapis lazuli to the player
			send "Znalazles &1lapis lazuli"
		chance of 0.0%:
			give 1 slime to the player
			send "Znalazles &aslime ball"
		chance of 0.0%:
			give 1 ender pearl to the player
			send "Znalazles &dender pearl"
command /drop:
	trigger:
		send "&f&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&b&l[ &a&lDrop Ze Stone &b&l]&f&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-"
		send "&b&lDiament &5>> &c0.7 &7procent"
		send "&2&lEmerald &5>> &c0.5 &7procent"
		send "&6&lZloto &5>> &c2.2 &7procent"
		send "&8&lZelazo &5>> &c2.5 &7procent"
		send "&0&lWegiel &5>> &c4.0 &7procent"
		send "&4&lRedstone &5>> &c3.5 &7procent"
		send "&f&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-&l=&l-"

I biore diamentowy kilof, fortuna 3 i caly czas po 1 surowcu wypada caly czas zamiast czasami po 2 lub 3

Opublikowano

Użyj:

if chance of 100%:
(Tab)set {_test} to a random integer between  1 and 2
(Tab)if {_test} is 1:
(2Tab) drop 1 diamond
(Tab)if {_test} is 2:
(2Tab)drop 2 diamond

Wypromuje twój serwer minecraft na mclista :)

* 1000 diamentów w niecałe 24h,

* Twoj serwer znajdzie sie na 1 stronie,

* Po wiecej informacji zapraszam na PW,

¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...