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

Szukam skryptu na otwieranie bloków po położeniu.


Gość ivall

Rekomendowane odpowiedzi

Opublikowano

Witam!

Szukam skryptu który otwiera bloki np gąbka Klikasz tak jak byś chciał ją połozyć i Wypadają ci następujące ity:

30%diaks

35%złoto

40%żelazo

50%Węgiel x5

8%Następna taka gąbka

 

Jeżeli ktoś zna loofcraft to Chce tak samo jak tam że otwierasz gąbkę i Dropają Ci ity

 

Bardzo proszę o jak najszybszą pomoc!

Opublikowano

tj. tzw. LuckyBlock

 

variables:
    #Dodajesz itemy. Po przecinku!
    lista::lb::* = diamond, gold ingot, iron ingot, 5 coal, sponge
on place of sponge:
    drop a random element out of {lista::lb::*}

Uważam, że poziom mojej inteligencji nie przekracza poziomu inteligencji przeciętnego człowieka.

Opublikowano

Mi nie działa Albo nwm co zrobić klikam na gąbke i nick postawiam i nic ps:

variables:
    #sponge
    lista::lb::* = diamond, gold ingot, iron ingot, 5 coal, sponge
on place of sponge:
    drop a random element out of {lista::lb::*}
 
I mi nie działą Proszę o pomoc
Opublikowano

Spróbuj tak:

options:
	lista::*: diamond, obsidian, iron, gold <--- Wpisz tu przedmioty które maja sie dropic
on place sponge:
	cancel event
	set {_przedmiot} to random element from {lista::*}
	send "Dostales: %{_przedmiot}%"
	drop {_przedmiot}

Nie działa? Chcesz jakiś bardziej zaawansowany skrypt? Pisz mi na priv

Opublikowano

Łapiesz itemek do łapy (np 32 diamenty), wpisujesz /lb dodaj (cały czas go trzymając) i wtedy wyświetli ci się że go dodałeś do puli itemów LuckyBlock. Możesz dodać dowolną ilość przedmiotów, które będą dropić po postawieniu gąbki.

command /lb [<text>]:
		trigger:
				if arg 1 is "dodaj":
						if player have permission "lb.dodaj" or "lb.*":
								add player's tool to {listalb::*}
								send "&eDodano &7%player's tool%&e do listy!"
						else:
								send "&cBrak uprawnien"
				if arg 1 is "reset":
						if player have permission "lb.reset" or "lb.*":
								delete {listalb::*}
								send "&eUsunieto caly drop z LuckyBlock!"
						else:
								send "&cBrak uprawnien"
				if arg 1 is "lista":
						if player have permission "lb.*" or "lb.reset" or "lb.dodaj":
								send "&eAktualny drop:"
								send "&7%{listalb::*}%"
						else:
								send "&cBrak uprawnien"
				if arg 1 is not set:
						if player have permission "lb.*" or "lb.reset" or "lb.dodaj":
								send "&e======================"
								send "&7/lb dodaj &e- dodaje trzymany przedmiot do puli"
								send "&7/lb reset &e- usuwa cala pule"
								send "&7/lb lista &e- pokazuje aktualna pule"
								send "&e======================"
						else:
								send "&cBrak uprawnien"
on place of sponge:
		cancel event
		remove 1 sponge from the player
		drop a random element out of {listalb::*}

@ivall

xKAm1xO.png

Opublikowano

@ivall

Masz ;)

options:
	# Procenty co na ile wypadnięcia
	diaks: 30
	zloto: 35
	zelazo: 40
	wegiel 50
	gabka: 8


on right click:
		if player tool's is sponge:
			remove 1 sponge from player
			chance of {@diaks}%:
				set {los.%player%} to a random integer from 1 to 3
				if {los.%player%} is 1:
					send "&aWylosowales 1 diament!"
					give 1 diamond to player
					stop
				if {los.%player%} is 2:
					send "&aWylosowales 2 diamenty!"
					give 2 diamond to player
					stop
				if {los.%player%} is 3:
					send "&aWylosowales 3 diamenty!"
					give 3 diamond to player
					stop
				
			chance of {@zloto}%:
				set {los.%player%} to a random integer from 1 to 3
					send "&aWylosowales 1 zloto!"
					give 1 gold ingot to player
					stop
				if {los.%player%} is 2:
					send "&aWylosowales 2 zlota!"
					give 2 gold ingot to player
					stop
				if {los.%player%} is 3:
					send "&aWylosowales 3 zlota!"
					give 3 gold ingot to player
					stop

			chance of {@zelazo}%:
				set {los.%player%} to a random integer from 1 to 3
				if {los.%player%} is 1:
					send "&aWylosowales 1 zelazo!"
					give 1 iron ingot to player
					stop
				if {los.%player%} is 2:
					send "&aWylosowales 2 zelaza!"
					give 2 iron ingot to player
					stop
				if {los.%player%} is 3:
					send "&aWylosowales 3 zelaza!"
					give 3 iron ingot to player
					stop

			chance of {@wegiel}%:
				set {los.%player%} to a random integer from 1 to 3
				if {los.%player%} is 1:
					send "&aWylosowales 1 wegiel!"
					give 1 coal to player
					stop
				if {los.%player%} is 2:
					send "&aWylosowales 2 wegla!"
					give 2 coal to player
					stop
				if {los.%player%} is 3:
					send "&aWylosowales 3 wegla!"
					give 3 coal to player
					stop

			chance of {@gabka}%:
				set {los.%player%} to a random integer from 1 to 3
				if {los.%player%} is 1:
					send "&aWylosowales 1 gabke!"
					give 1 sponge to player
					stop
				if {los.%player%} is 2:
					send "&aWylosowales 2 gabki!"
					give 2 sponge to player
					stop
				if {los.%player%} is 3:
					send "&aWylosowales 3 gabki!"
					give 3 sponge to player
					stop

		

409.jpg?7190

|---> Z o s t a n ę <---|

 

Zostanę technikiem na twój serwer minecraft, zrobie cały serwer według twojego pomysłu!
http://www.mpcforum.pl/topic/1486254-zostanę-technikiem-stworzę-serwer-twojego-pomysłu/#entry12589185

Opublikowano

command /kacperluckyblock:lb <text>:
    trigger:
        add player's tool to {lb::lista::*}
on rightclick with sponge:
    cancel event
    drop a random element out of {lb::lista::*}
on skript load:
    send "[LuckyBlock] Plugin uzytkownika KacpersKi1337 zostal wczytany" to console 

#KacpersKi1337/JimForce

- Wymagane:

- WildSkript

- SkQuery

­

Uważam, że poziom mojej inteligencji nie przekracza poziomu inteligencji przeciętnego człowieka.

Opublikowano

@ivall sry zle wytabowany teraz powinien zadziałać
 

options:
	# Procenty co na ile wypadnięcia
	diaks: 30
	zloto: 35
	zelazo: 40
	wegiel 50
	gabka: 8


on right click:
	if player tool's is sponge:
		remove 1 sponge from player
		chance of {@diaks}%:
			set {los.%player%} to a random integer from 1 to 3
			if {los.%player%} is 1:
				send "&aWylosowales 1 diament!"
				give 1 diamond to player
			if {los.%player%} is 2:
				send "&aWylosowales 2 diamenty!"
				give 2 diamond to player
			if {los.%player%} is 3:
				send "&aWylosowales 3 diamenty!"
				give 3 diamond to player	
		chance of {@zloto}%:
			set {los.%player%} to a random integer from 1 to 3
				send "&aWylosowales 1 zloto!"
				give 1 gold ingot to player
			if {los.%player%} is 2:
				send "&aWylosowales 2 zlota!"
				give 2 gold ingot to player
			if {los.%player%} is 3:
				send "&aWylosowales 3 zlota!"
				give 3 gold ingot to player
		chance of {@zelazo}%:
			set {los.%player%} to a random integer from 1 to 3
			if {los.%player%} is 1:
				send "&aWylosowales 1 zelazo!"
			if {los.%player%} is 2:
				send "&aWylosowales 2 zelaza!"
				give 2 iron ingot to player
			if {los.%player%} is 3:
				send "&aWylosowales 3 zelaza!"
				give 3 iron ingot to player
		chance of {@wegiel}%:
			set {los.%player%} to a random integer from 1 to 3
			if {los.%player%} is 1:
				send "&aWylosowales 1 wegiel!"
				give 1 coal to player
			if {los.%player%} is 2:
				send "&aWylosowales 2 wegla!"
				give 2 coal to player
			if {los.%player%} is 3:
				send "&aWylosowales 3 wegla!"
				give 3 coal to player
		chance of {@gabka}%:
			set {los.%player%} to a random integer from 1 to 3
			if {los.%player%} is 1:
				send "&aWylosowales 1 gabke!"
				give 1 sponge to player
			if {los.%player%} is 2:
				send "&aWylosowales 2 gabki!"
				give 2 sponge to player
			if {los.%player%} is 3:
				send "&aWylosowales 3 gabki!"
				give 3 sponge to player
				stop
	else:
		stop

409.jpg?7190

|---> Z o s t a n ę <---|

 

Zostanę technikiem na twój serwer minecraft, zrobie cały serwer według twojego pomysłu!
http://www.mpcforum.pl/topic/1486254-zostanę-technikiem-stworzę-serwer-twojego-pomysłu/#entry12589185

Opublikowano

@ivall
 

options:
	# Procenty co na ile wypadnięcia
	diaks: 30
	zloto: 35
	zelazo: 40
	wegiel 50
	gabka: 8


on right click:
	if player's tool is sponge:
		remove 1 sponge from player
		chance of {@diaks}%:
			set {los.%player%} to a random integer from 1 to 3
			if {los.%player%} is 1:
				send "&aWylosowales 1 diament!"
				give 1 diamond to player
			if {los.%player%} is 2:
				send "&aWylosowales 2 diamenty!"
				give 2 diamond to player
			if {los.%player%} is 3:
				send "&aWylosowales 3 diamenty!"
				give 3 diamond to player	
		chance of {@zloto}%:
			set {los.%player%} to a random integer from 1 to 3
				send "&aWylosowales 1 zloto!"
				give 1 gold ingot to player
			if {los.%player%} is 2:
				send "&aWylosowales 2 zlota!"
				give 2 gold ingot to player
			if {los.%player%} is 3:
				send "&aWylosowales 3 zlota!"
				give 3 gold ingot to player
		chance of {@zelazo}%:
			set {los.%player%} to a random integer from 1 to 3
			if {los.%player%} is 1:
				send "&aWylosowales 1 zelazo!"
			if {los.%player%} is 2:
				send "&aWylosowales 2 zelaza!"
				give 2 iron ingot to player
			if {los.%player%} is 3:
				send "&aWylosowales 3 zelaza!"
				give 3 iron ingot to player
		chance of {@wegiel}%:
			set {los.%player%} to a random integer from 1 to 3
			if {los.%player%} is 1:
				send "&aWylosowales 1 wegiel!"
				give 1 coal to player
			if {los.%player%} is 2:
				send "&aWylosowales 2 wegla!"
				give 2 coal to player
			if {los.%player%} is 3:
				send "&aWylosowales 3 wegla!"
				give 3 coal to player
		chance of {@gabka}%:
			set {los.%player%} to a random integer from 1 to 3
			if {los.%player%} is 1:
				send "&aWylosowales 1 gabke!"
				give 1 sponge to player
			if {los.%player%} is 2:
				send "&aWylosowales 2 gabki!"
				give 2 sponge to player
			if {los.%player%} is 3:
				send "&aWylosowales 3 gabki!"
				give 3 sponge to player
				stop

To spróbuj, jeśli nie będzie działało to /sk reload (nazwa tego skryptu pod jakim zapiszesz - pamiętaj o .sk) i daj błędy jak będą

409.jpg?7190

|---> Z o s t a n ę <---|

 

Zostanę technikiem na twój serwer minecraft, zrobie cały serwer według twojego pomysłu!
http://www.mpcforum.pl/topic/1486254-zostanę-technikiem-stworzę-serwer-twojego-pomysłu/#entry12589185

Opublikowano

@ivall No plugin skript weź notatnik wklej ten skrypt mój do niego daj zapisz jako -> wszystkie pliki i daje nazwa.sk
A potem to wrzucasz na serwer to plików -> plugins -> skript -> scripts (Tu go wrzucasz)
Tera wejdz na serwer i wpisz /sk reload (NAZWA TEGO SKRYPTU Jak go nazwałeś np ta nazwa)
I podaj czy są jakieś błędy

409.jpg?7190

|---> Z o s t a n ę <---|

 

Zostanę technikiem na twój serwer minecraft, zrobie cały serwer według twojego pomysłu!
http://www.mpcforum.pl/topic/1486254-zostanę-technikiem-stworzę-serwer-twojego-pomysłu/#entry12589185

Opublikowano

@ivall chyba przyczynę znalazłem :D
Teraz spróbuj czy będzie działało:
 

on right click:
	if player's tool is sponge:
		chance of {@diaks}%:
			set {los.%player%} to a random integer from 1 to 3
			if {los.%player%} is 1:
				send "&aWylosowales 1 diament!"
				remove 1 sponge from player
				give 1 diamond to player
			if {los.%player%} is 2:
				send "&aWylosowales 2 diamenty!"
				give 2 diamond to player
				remove 1 sponge from player
			if {los.%player%} is 3:
				send "&aWylosowales 3 diamenty!"
				give 3 diamond to player
				remove 1 sponge from player	
		chance of {@zloto}%:
			set {los.%player%} to a random integer from 1 to 3
				send "&aWylosowales 1 zloto!"
				give 1 gold ingot to player
				remove 1 sponge from player
			if {los.%player%} is 2:
				send "&aWylosowales 2 zlota!"
				give 2 gold ingot to player
				remove 1 sponge from player
			if {los.%player%} is 3:
				send "&aWylosowales 3 zlota!"
				give 3 gold ingot to player
				remove 1 sponge from player
		chance of {@zelazo}%:
			set {los.%player%} to a random integer from 1 to 3
			if {los.%player%} is 1:
				send "&aWylosowales 1 zelazo!"
				remove 1 sponge from player
				give 1 iron ingot to player
			if {los.%player%} is 2:
				send "&aWylosowales 2 zelaza!"
				give 2 iron ingot to player
				remove 1 sponge from player
			if {los.%player%} is 3:
				send "&aWylosowales 3 zelaza!"
				give 3 iron ingot to player
				remove 1 sponge from player
		chance of {@wegiel}%:
			set {los.%player%} to a random integer from 1 to 3
			if {los.%player%} is 1:
				send "&aWylosowales 1 wegiel!"
				give 1 coal to player
				remove 1 sponge from player
			if {los.%player%} is 2:
				send "&aWylosowales 2 wegla!"
				give 2 coal to player
				remove 1 sponge from player
			if {los.%player%} is 3:
				send "&aWylosowales 3 wegla!"
				give 3 coal to player
				remove 1 sponge from player
		chance of {@gabka}%:
			set {los.%player%} to a random integer from 1 to 3
			if {los.%player%} is 1:
				send "&aWylosowales 1 gabke!"
				give 1 sponge to player
				remove 1 sponge from player
			if {los.%player%} is 2:
				send "&aWylosowales 2 gabki!"
				give 2 sponge to player
				remove 1 sponge from player
			if {los.%player%} is 3:
				send "&aWylosowales 3 gabki!"
				give 3 sponge to player
				remove 1 sponge from player

409.jpg?7190

|---> Z o s t a n ę <---|

 

Zostanę technikiem na twój serwer minecraft, zrobie cały serwer według twojego pomysłu!
http://www.mpcforum.pl/topic/1486254-zostanę-technikiem-stworzę-serwer-twojego-pomysłu/#entry12589185

Opublikowano
options:
    #==== CONFIG ====#
    block: sponge
    name: &e&lL&6&lB
    #==== CHANCE ====#
    chance_DIAMOND: 30%
    chance_GOLD: 35%
    chance_IRON: 40%
    chance_COAL: 50%
    chance_RESPONGE: 8%
    #==== CONFIG ====#
on place of {@block}:
    if name of event-block is "{@name}":
        chance of {@chance_DIAMOND}:
            drop 1 diamond
            stop
        chance of {@chance_GOLD}:
            drop 1 gold ingot
            stop
        chance of {@chance_IRON}:
            drop 1 iron ingot
            stop
        chance of {@chance_COAL}:
            drop 5 coal
            stop
        chance of {@chance_RESPONGE}:
            drop 1 sponge named "{@name}"
            stop
        stop
    stop 

­

Uważam, że poziom mojej inteligencji nie przekracza poziomu inteligencji przeciętnego człowieka.

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...