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

Stoniarka > MiniTartak


Avosh

Rekomendowane odpowiedzi

Opublikowano

Witajcie.

Proszę o bardzo prostą, dla Was rzecz, bo Ja mam z tym małe problemy. :D

Mam skrypt na stoniarki, który działa bardzo fajnie i się nie buguje i zależy mi, aby zrobić z tego "tartak".

 

Nazwa "tartaku" : &aMiniTartak

Crafting : Na około zwykłe drewno w ilości 1, a w środku diament.

Niszczenie : Złota siekiera

Blok "tartaku" : oak leaves

Blok wypadający : oak wood

 

 

 

on script load:
    register new shaped recipe for emerald ore named "&aStoniarka" using stone, stone, stone, stone, emerald, stone, stone, stone, stone
on place of emerald ore:
    if name of the player's tool is "&aStoniarka":
        send "&7Postawiles: &aStoniarke"
        set {s.%event-block%} to true
        wait 1 second
        set event-block to stone
        stop
on break of stone:
    if {s.%event-block%} is true:
        if player is holding gold pickaxe:
            cancel event
            send "&7Zniszczyles: &aStoniarke"
            set event-block to air
            if player can hold 1 emerald ore named "&aStoniarka":
                give 1 emerald ore named "&aStoniarka" to the player
                stop
            else:
                drop 1 emerald ore named "&aStoniarka"
                stop
        else:
            wait 1 second
            set event-block to stone
            stop

 

 

 

Odwdzięczę się limitem jak tylko mi się odnowi. :D

if( awesome ){

console.log('This is Awesome');

}else{

$('body').addClass('give-me-awesome');

}

Opublikowano

Napiszę ci później.

 

@AntyWarn

Dostosuj to do swojej receptury:

 

on load:
 set {_r} to "zalazo"
 new Recipe {_r};
 {_r}.Recipe.registerIngredient{1,64 cobblestone};
 {_r}.Recipe.registerIngredient{2,64 cobblestone};
 {_r}.Recipe.registerIngredient{3,64 cobblestone};
 {_r}.Recipe.registerIngredient{4,64 cobblestone};
 {_r}.Recipe.registerIngredient{5,64 cobblestone};
 {_r}.Recipe.registerIngredient{6,64 cobblestone};
 {_r}.Recipe.registerIngredient{7,64 cobblestone};
 {_r}.Recipe.registerIngredient{8,64 cobblestone};
 {_r}.Recipe.registerIngredient{9,64 cobblestone};
 {_r}.Recipe.registerResult{end stone named "&7&l&k!! &f&lMetalowy Kamien &7&l&k!!"};
 {_r}.Recipe.register{};

Wysłane z mojego HUAWEI Y550-L01 przy użyciu Tapatalka

 

 

Opublikowano


on script load:

register new shaped recipe for oak leaves named "&aTartak" using oak wood, oak wood, oak wood, oak wood, diamond, oak wood, oak wood, oak wood, oak wood

on place of oak leaves:

if name of the player's tool is "&aTartak":

send "&7Postawiles: &aTartak"

set {s.%event-block%} to true

wait 1 second

set event-block to oak wood

stop

on break of oak wood:

if {s.%event-block%} is true:

if player is holding gold pickaxe:

cancel event

send "&7Zniszczyles: &aTartak"

set event-block to air

if player can hold 1 oak leaves named "&aTartak":

give 1 oak leaves named "&aTartak" to the player

stop

else:

drop 1 oak leaves named "&aTartak"

stop

else:

wait 1 second

set event-block to oak wood

stop

Zapraszam na serwer minecraft Globalserv.pl

Opublikowano
on script load:
    register new shaped recipe for oak leaves named "&aTartak" using oak wood, oak wood, oak wood, oak wood, diamond, oak wood, oak wood, oak wood, oak wood
on place of oak leaves:
    if name of the player's tool is "&aTartak":
        send "&7Postawiles: &aTartak"
        set {s.%event-block%} to true
        wait 1 second
        set event-block to oak wood
        stop
on break of oak leaves:
    if {s.%event-block%} is true:
        if player is holding golden axe:
            cancel event
            send "&7Zniszczyles: &aTartak"
            set event-block to air
            if player can hold 1 oak leaves named "&aTartak":
                give 1 oak leaves named "&aTartak" to player
                stop
            else:
                drop 1 oak leaves named "&aTartak"
                stop
        else:
            wait 1 second
            set event-block to oak leaves
            stop

Nie wiem czy bedzie dobrze, jak cos zle to pisz.

@Edit ogolnie ten "twoj" skrypt nie jest za dobry, moge ci przerobic jakis inny, jak cos to pisz

 

❤ MC.PROPACRAFT.PL 


★ SKRYPTY ★


★ TECHNIK SERWERÓW MINECRAFT ★


✮ Pomogłem? Strzej lajka! ✮


 

Opublikowano

Małe błędy, powinno działać:

on load:
 set {_r} to "zalazo"
 new Recipe {_r};
 {_r}.Recipe.registerIngredient{1,1 oak wood};
 {_r}.Recipe.registerIngredient{2,1 oak wood};
 {_r}.Recipe.registerIngredient{3,1 oak wood};
 {_r}.Recipe.registerIngredient{4,1 oak wood};
 {_r}.Recipe.registerIngredient{5,1 diamond};
 {_r}.Recipe.registerIngredient{6,1 oak wood};
 {_r}.Recipe.registerIngredient{7,1 oak wood};
 {_r}.Recipe.registerIngredient{8,1 oak wood};
 {_r}.Recipe.registerIngredient{9,1 oak wood};
 {_r}.Recipe.registerResult{oak leaves named "&aTartak"};
 {_r}.Recipe.register{};
 
on place of oak leaves:
    if name of the player's tool is "&aTartak":
        send "&7Postawiles: &aTartak"
        set {s.%event-block%} to true
        wait 1 second
        set event-block to oak wood
        stop
		
on break of oak leaves:
    if {s.%event-block%} is true:
        if player is holding golden axe:
            cancel event
            send "&7Zniszczyles: &aTartak"
            set event-block to air
            if player can hold 1 oak wood named "&aTartak":
                give 1 oak wood named "&aTartak" to player
                stop
            else:
                drop 1 oak wood named "&aTartak"
                stop
        else:
            wait 1 second
            set event-block to oak wood
            stop
			
Opublikowano

 

Małe błędy, powinno działać:

on load:
 set {_r} to "zalazo"
 new Recipe {_r};
 {_r}.Recipe.registerIngredient{1,1 oak wood};
 {_r}.Recipe.registerIngredient{2,1 oak wood};
 {_r}.Recipe.registerIngredient{3,1 oak wood};
 {_r}.Recipe.registerIngredient{4,1 oak wood};
 {_r}.Recipe.registerIngredient{5,1 diamond};
 {_r}.Recipe.registerIngredient{6,1 oak wood};
 {_r}.Recipe.registerIngredient{7,1 oak wood};
 {_r}.Recipe.registerIngredient{8,1 oak wood};
 {_r}.Recipe.registerIngredient{9,1 oak wood};
 {_r}.Recipe.registerResult{oak leaves named "&aTartak"};
 {_r}.Recipe.register{};
 
on place of oak leaves:
    if name of the player's tool is "&aTartak":
        send "&7Postawiles: &aTartak"
        set {s.%event-block%} to true
        wait 1 second
        set event-block to oak wood
        stop
		
on break of oak leaves:
    if {s.%event-block%} is true:
        if player is holding golden axe:
            cancel event
            send "&7Zniszczyles: &aTartak"
            set event-block to air
            if player can hold 1 oak wood named "&aTartak":
                give 1 oak wood named "&aTartak" to player
                stop
            else:
                drop 1 oak wood named "&aTartak"
                stop
        else:
            wait 1 second
            set event-block to oak wood
            stop
			

@ScoreBoard

To samo, lipa... 

 

A konsola nic nie wywala. xD

if( awesome ){

console.log('This is Awesome');

}else{

$('body').addClass('give-me-awesome');

}

Opublikowano

Kuva, to niemożliwe, sprawdź jeszcze raz - dookoła zwykłe drewno (/give nick oak_wood 8) i po środku diament (/give nick diamond 1)

 

Jeśli nie działa - zaktualizuj skquery do max wersji 3 ale nie do 4, skript do najnowszej i zainstaluj wildskript

Opublikowano

Kuva, to niemożliwe, sprawdź jeszcze raz - dookoła zwykłe drewno (/give nick oak_wood 8) i po środku diament (/give nick diamond 1)

 

Jeśli nie działa - zaktualizuj skquery do max wersji 3 ale nie do 4, skript do najnowszej i zainstaluj wildskript

 

Skrypty tak jak mówisz, sprawdziłem + konsola nic nie pluje... :/

Nie idzie jakoś tych nazw zamienić na ID? :(

if( awesome ){

console.log('This is Awesome');

}else{

$('body').addClass('give-me-awesome');

}

Opublikowano

 

Serwer stoi na PaperSpigot 1.11, więc ten silnik 1.8.4 mi się nie przyda. :v

 

Poza tym ta stoniarka działa bardzo dobrze, a jak zmienia się recipe czy coś innego to nagle przestaje :(

if( awesome ){

console.log('This is Awesome');

}else{

$('body').addClass('give-me-awesome');

}

Opublikowano

To nie powinno miec zadnego bledu, mam takie samo na serwerze (tylko inne itemy);

on script load:
    register new shaped recipe for oak leaves named "&aTartak" using oak wood, oak wood, oak wood, oak wood, diamond, oak wood, oak wood, oak wood, oak wood

Zrestartuj serwer, przeciez jak ja dodaje jakis crafting w skrypcie, to zawsze restartuje, bo po zwyklym reloadzie nie dziala.

 

❤ MC.PROPACRAFT.PL 


★ SKRYPTY ★


★ TECHNIK SERWERÓW MINECRAFT ★


✮ Pomogłem? Strzej lajka! ✮


 

Opublikowano

To nie powinno miec zadnego bledu, mam takie samo na serwerze (tylko inne itemy);

on script load:
    register new shaped recipe for oak leaves named "&aTartak" using oak wood, oak wood, oak wood, oak wood, diamond, oak wood, oak wood, oak wood, oak wood

Zrestartuj serwer, przeciez jak ja dodaje jakis crafting w skrypcie, to zawsze restartuje, bo po zwyklym reloadzie nie dziala.

 

Avosh musisz zresetować serwer aby receptura zadziałała :)

 

Resetowany i ciągle to samo ^_^

if( awesome ){

console.log('This is Awesome');

}else{

$('body').addClass('give-me-awesome');

}

Opublikowano

@Avosh

 

Proszę:

on script load:
    register new shaped recipe for leaves named "&aTartak" using LOG, LOG, LOG, LOG, diamond, LOG, LOG, LOG, LOG
 
on place of oak leaves:
	if name of the player's tool is "&aTartak":
		send "&7Postawiles: &aTartak"
		set {s.%event-block%} to true
		wait 1 second
		set event-block to LOG
		stop
		
on break of oak leaves:
	if {s.%event-block%} is true:
		if player is holding golden axe:
			cancel event
			send "&7Zniszczyles: &aTartak"
			set event-block to air
		if player can hold 1 LOG named "&aTartak":
			give 1 LOG named "&aTartak" to player
			stop
		else:
			drop 1 LOG named "&aTartak"
			stop
	else:
		wait 1 second
		set event-block to LOG
		stop
Opublikowano

 

@Avosh

 

Proszę:

on script load:
    register new shaped recipe for leaves named "&aTartak" using LOG, LOG, LOG, LOG, diamond, LOG, LOG, LOG, LOG
 
on place of oak leaves:
	if name of the player's tool is "&aTartak":
		send "&7Postawiles: &aTartak"
		set {s.%event-block%} to true
		wait 1 second
		set event-block to LOG
		stop
		
on break of oak leaves:
	if {s.%event-block%} is true:
		if player is holding golden axe:
			cancel event
			send "&7Zniszczyles: &aTartak"
			set event-block to air
		if player can hold 1 LOG named "&aTartak":
			give 1 LOG named "&aTartak" to player
			stop
		else:
			drop 1 LOG named "&aTartak"
			stop
	else:
		wait 1 second
		set event-block to LOG
		stop

 

nadal to samo. w*****a mnie to juz :v

if( awesome ){

console.log('This is Awesome');

}else{

$('body').addClass('give-me-awesome');

}

Opublikowano

@ScoreBoard

 

17 to log, ale gdzie mam na 18 zmienic id? skoro 18 to liście. xD

if( awesome ){

console.log('This is Awesome');

}else{

$('body').addClass('give-me-awesome');

}

Opublikowano

register new ... for 18

 

Dobra... po części działa. Crafting śmiga, stawiają się liście o nazwie tartak, ale nie zamienia sie na drewno...

Po zniszczeniu tych liści dostaje drewno ale nie odnawia sie ...

on script load:
    register new shaped recipe for 18 named "&aTartak" using 17, 17, 17, 17, 264, 17, 17, 17, 17
 
on place of oak leaves:
	if name of the player's tool is "&aTartak":
		send "&7Postawiles: &aTartak"
		set {s.%event-block%} to true
		wait 1 second
		set event-block to LOG
		stop
		
on break of oak leaves:
	if {s.%event-block%} is true:
		if player is holding golden axe:
			cancel event
			send "&7Zniszczyles: &aTartak"
			set event-block to air
		if player can hold 1 LOG named "&aTartak":
			give 1 LOG named "&aTartak" to player
			stop
		else:
			drop 1 LOG named "&aTartak"
			stop
	else:
		wait 1 second
		set event-block to LOG
		stop

if( awesome ){

console.log('This is Awesome');

}else{

$('body').addClass('give-me-awesome');

}

Opublikowano

on place 18:

tab if name of block is "&aTartak":

tab tab set block to 17 named "&aTartak"

on break 17:

tab if name of block is "&aTartak":

tab tab set block to air

tab tab wait 1 second

tab tab set block to 17 named "&aTartak"

Opublikowano

on place 18:

tab if name of block is "&aTartak":

tab tab set block to 17 named "&aTartak"

on break 17:

tab if name of block is "&aTartak":

tab tab set block to air

tab tab wait 1 second

tab tab set block to 17 named "&aTartak"

 

jak do debila poproszę :v

if( awesome ){

console.log('This is Awesome');

}else{

$('body').addClass('give-me-awesome');

}

Opublikowano

Boshe piszę z telefonu, a

ty nawet wytabować nie umiesz ?

ale ten kod w skrypcie wygląda zupełnie inaczej xD

if( awesome ){

console.log('This is Awesome');

}else{

$('body').addClass('give-me-awesome');

}

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...