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

Prośba o dorobienie wiadomości, o osiągnięciu poziomu w skrypcie na drop.


xGameOver

Rekomendowane odpowiedzi

Opublikowano

poprawi ktos skrypta? chodzi mi o to ze jak ktos wbije np: 3lv kopania to zeby na chacie sie Pokazywalo to: Gracz wbil tam jakis lv. i zeby na chacie pisalo [lvl] (kopania) i [nick]

 

 

 

Variables:
{punkty.%player%} = 0
{lvl.%player%} = 0 
on mine stone:
chance of 100%:
set {PunktyGracza} to 1
add {PunktyGracza} to {punkty.%player%}
command /punkty:
trigger:
send "Posiadasz &6%{punkty.%player%}% punktow "
send "Posiadasz &6%{lvl.%player%}% lvl "
command /resetpkt [<player>]:
trigger:
if arg 1 is set:
set {punkty.%player%} to 0 
set {lvl.%player%} to 0
on mine stone:
if {punkty.%player%} is greater than 100:
set {lvl.%player%} to 1
if {punkty.%player%} is greater than 500:
set {lvl.%player%} to 2
if {punkty.%player%} is greater than 1000:
set {lvl.%player%} to 3
if {punkty.%player%} is greater than 1700:
set {lvl.%player%} to 4
if {punkty.%player%} is greater than 3000:
set {lvl.%player%} to 5
options:
fd: 4 # % wypadania diamentow ze stone
fe: 2 # % wypadania emeraldow ze stone
fg: 5 # % wypadania zlota ze stone
fi: 7 # % wypadania zelaza ze stone
fc: 9 # % wypadania wegla ze stone
fen: 1.5 # % wypadania perel endermana ze stone
fo: 5       # % wypadania obsa ze stone
ft: 0.9     # % wypadania tnt ze stone
fa: 7       # % wypadanie proszku ze stone


command /stone [<player>]:
trigger:
open chest with 1 rows named "&8» &3Drop ze stone &8» " to arg 1
wait 1 tick
format slot 0 of player with 1 of diamond named "&8» &bDiamenty" with lore "&8» &3{@fd} &8procent" to be unstealable
format slot 1 of player with 1 of emerald named "&8» &aEmeraldy" with lore "&8» &3{@fe} &eprocent" to be unstealable
format slot 2 of player with 1 of gold ingot named "&8» &6Zloto" with lore "&8» &3{@fg} &eprocent" to be unstealable
format slot 3 of player with 1 of iron ingot named "&8» &8Zelazo" with lore "&8» &3{@fi} &8procent" to be unstealable
format slot 4 of player with 1 of coal named "&8» &0Wegiel" with lore "&8» &3{@fc} &8procent" to be unstealable
format slot 5 of player with 1 of tnt named "&8» &c&lTNT" with lore "&9{@ft} &8procent" to be unstealable
format slot 6 of player with 1 of redstone named "&8» &4Redstone" with lore "&8{@fa} &8procent" to be unstealable
format slot 7 of player with 1 of ender pearl named "&8» &5Perla endermana" with lore "&8» &3{@fen} &8procent" to be unstealable
format slot 8 of player with 1 of obsidian named "&8» &7&lObsydian" with lore "&9{@fo} &8procent" to be unstealable


command /kamien:
trigger:
execute player command "/stone %player%"




on mine of diamond ore or emerald ore or iron ore or gold ore:
        cancel event
        set block to air
        send " &8» &3Drop z tej rudy jest wylaczony!"
        send " &8» &3Aby zobaczyc procent szans na drop wpisz &8/kamien&3!"
        stop


# Glówny kod
on mine of stone:
if player's gamemode is survival:
if player's tool is pickaxe:
chance of {@fi}%:
give 1 iron ore to the player
drop 10 xp
chance of {@fg}%:
give 1 gold ore to the player
drop 5 xp
chance of {@fd}%:
give 1 diamond to the player
drop 4 xp
chance of {@fo}%:
give 1 obsidian to the player
drop 4 xp
chance of {@fe}%:
give 1 emerald to the player
drop 4 xp
chance of 0.5%:
give 4 redstone to the player
drop 4 xp
chance of {@fc}%:
give 1 coal to the player
drop 13 xp
chance of {@fen}%:
give 1 ender pearl to the player
drop 5 xp
chance of {@ft}%:
give 1 tnt to the player
drop 15 xp
chance of {@fa}%:
give 1 redstone to the player
drop 3 xp
if player's tool is a diamond pickaxe of fortune 1 or fortune 2 or fortune 3:
chance of {@fi}%:
give a random number between 3 and 1 of iron ore to the player
drop 10 xp
chance of {@fg}%:
give a random number between 3 and 1 of gold ore to the player
drop 5 xp
chance of {@fd}%:
give a random number between 3 and 1 of diamond to the player
drop 4 xp
chance of {@fe}%:
give a random number between 3 and 1 of emerald to the player
drop 4 xp
chance of 0.5%:
give a random number between 5 and 1 of redstone to the player
drop 4 xp
chance of {@fo}%:
give a random number between 5 and 1 of obsidian to the player
drop 8 xp
chance of {@fc}%:
give a random number between 5 and 1 of coal to the player
drop 13 xp
chance of {@fen}%:
give a random number between 3 and 1 of ender pearl to the player
drop 5 xp
chance of {@ft}%:
give a random number between 3 and 1 of tnt to the player
drop 15 xp
chance of {@fa}%:
give a random number between 3 and 1 of redstone to the player
drop 4 xp

 

 

Nowy dokument tekstowy.txt

Opublikowano

Tam na początku kodu masz:

if {punkty.%player%} is greater than 100:
    set {lvl.%player%} to 1

To dodaj do tego jeszcze "broadcast {%player%} osiągnął {lvl.%player%} poziom!".

Opublikowano
if {punkty.%player%} is greater than 100:

set {lvl.%player%} to 1

        "broadcast {%player%} osiągnął {lvl.%player%} poziom!".

 

 

tak?

Opublikowano

Skopiuj po prostu to co dał Rayso  :) 

I jeśli umiesz tabować to stabuj, jak coś to Ci  /sk reload (nazwa) pokaże błąd i wtedy popraw odpowiednia linie ;) 

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...