Skocz do zawartości
  • 0

Problem ze skryptem


Hubix

Pytanie

mam tutaj skrypty:

-na stowniarke:

on place of 121:
    if name of player's tool is "&cGenerator stone'a":
        set block above location of event-block to stone
on break of stone:
    block under location of event-block is 121:
        set block at location of event-block to stone
on script load:
    register new shaped recipe for 121 named "&cGenerator stone'a" using 331, 57, 331, 42, 1, 42, 331, 33, 331

i na obsydianiarke:

on place of netherrack:
    if name of player's tool is "&cGenerator obsydianu":
        set block above location of event-block to obsidian
on break of obsidian:
    block under location of event-block is netherrack:
        set block at location of event-block to obsidian
on script load:
    register new shaped recipe for netherrack named "&cGenerator obsydianu" using 331, 57, 331, 42, 49, 42, 331, 33, 331

nie mam pojęcia jak naprawić żeby sie regenerowały po wykopaniu

Odnośnik do komentarza
https://skript.pl/temat/15937-problem-ze-skryptem/
Udostępnij na innych stronach

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

options:    
    stoneSVIP: 0.5
    stoneVIP: 1
    stoneGracz: 2
    obsSVIP: 2
    obsVIP: 4
    obsGracz: 6
on place of end stone:
    if name of player's tool is "&cGenerator stone'a":
        add location of block to {stowniarka::*}
        add location of block above block to {stone::*}
        set block above location of event-block to stone
on break of stone:
    loop {stone::*}:
        if loop-value is location of targeted block:
            player has permission "stowniarka.SVIP":
                wait {@stoneSVIP} second
                set block to stone
            else:
                player has permission "stowniarka.VIP":
                    wait {@stoneVIP} second
                    set block to stone
                else:
                    wait {@stoneGracz} second
                    set block to stone
on break end stone:
    loop {stowniarka::*}:
        if loop-value is location of targeted block:
            remove location of block from {stowniarka::*}
            remove location of block above from {stone::*}
            cancel event
            set block to air
            drop end stone named "&cGenerator stone'a"
on place of netherrack:
    if name of player's tool is "&cGenerator obsidianu":
        add location of block to {obsiadianiarka::*}
        add location of block above block to {obs::*}
        set block above location of event-block to obsidian
on break of obsidian:
    loop {obs::*}:
        if loop-value is location of targeted block:
            player has permission "obsiadianiarka.SVIP":
                wait {@obsSVIP} second
                set block to obsidian
            else:
                player has permission "obsiadianiarka.VIP":
                    wait {@obsVIP} second
                    set block to obsidian
                else:
                    wait {@obsGracz} second
                    set block to obsidian
on break netherrack:
    loop {obsiadianiarka::*}:
        if loop-value is location of targeted block:
            remove location of block from {obsiadianiarka::*}
            remove location of block above from {obs::*}
            cancel event
            set block to air
            drop netherrack named "&cGenerator obsidianu"
on script load:
    register new shaped recipe for end stone named "&cGenerator stone'a" using redstone, diamond block, redstone, iron block, stone, iron block, redstone, piston, redstone
    register new shaped recipe for netherrack named "&cGenerator obsidianu" using redstone, diamond block, redstone, iron block, obsidian, iron block, redstone, piston, redstone
command /stoniarka:
    trigger:
        give 1 netherrack named "&cGenerator obsidianu" to player

 

 

prosze dodałem 3 rangi SVIP VIP i Gracz każdy ma inny czas do ustalenia w configu "options" licze na + za pomoc

Odnośnik do komentarza
https://skript.pl/temat/15937-problem-ze-skryptem/#findComment-111133
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...