#So I'm developing this skript

1 messages · Page 1 of 1 (latest)

pastel novaBOT
#

void suggests that you read this embed

Formatting Code In Discord
Why?

Code blocks make it easier for helpers to identify potential errors -- help them help you!

The Format

```vb
on chat:
broadcast "This is how you format code!"
```

How It Looks
on chat:
    broadcast "This is how you format code!"
Extra Info

On US keyboards, the grave character (`) is located above the tab key on the top left of the keyboard

pale silo
#

Btw all of those stats exist in the game by default
Idk why you custom coding them

upper rock
#

use code blocks

#

and i'll gladly help u

upper rock
#
command /example:
    trigger:
        send "example" to player
upper rock
#

@timid granite untested but

upper rock
#

i just realized i made a error

#

will fix it rn

#
on join:
    if {placed.%uuid of player%} is not set:
        set {placed.%uuid of player%} to 0
    if {breaked.%uuid of player%} is not set:
        set {breaked.%uuid of player%} to 0
    if {deaths.%uuid of player%} is not set:
        set {deaths.%uuid of player%} to 0
    if {kills.%uuid of player%} is not set:
        set {kills.%uuid of player%} to 0
on place:
    add 1 to {placed.%uuid of player%}
on break:
    add 1 to {breaked.%uuid of player%}
on death of player:
    add 1 to {deaths.%uuid of victim%}
    if attacker is a player:
        add 1 to {kills.%uuid of attacker%}

command /statistics [<player>]:
    aliases: stats 
    cooldown: 3 seconds
    cooldown bypass: stats.cooldown.bypass
    usage: &cIncorrect usage: /statistics/stats (player)
    trigger:
        if arg-1 is not set:
            if player has permission "stats.self":
                send "&4 | Statistics:" to player
                send "&4 | " to player
                send "&4 | Blocks Placed: {placed.%uuid of player%}" to player
                send "&4 | Blocks Broken: {breaked.%uuid of player%}" to player
                send "&4 | " to player
                send "&4 | Kills: {kills.%uuid of player%}" to player
                send "&4 | Deaths: {deaths.%uuid of player%}" to player
                send " " to player
        else:
            if player has permission "stats.others":
                send "&4 | Statistics:" to player
                send "&4 | " to player
                send "&4 | Blocks Placed: {placed.%uuid of arg-1%}" to player
                send "&4 | Blocks Broken: {breaked.%uuid of arg-1%}" to player
                send "&4 | " to player
                send "&4 | Kills: {kills.%uuid of arg-1%}" to player
                send "&4 | Deaths: {deaths.%uuid of arg-1%}" to player
                send " " to player
pale silo
#

block and breaks and kill statistics are already tracked by minecraft by default

upper rock
#

also they want a command for it clearly

pale silo
#

yea so just make the command?

upper rock
#

did u even look at the script

pale silo
#

Yea but it also has other stuff which is pointless and just hurts performance

upper rock
#

and sends 1 line when u break, kill, or place

#

ts will not affect performance 💀

pale silo
#

and everytime you break kill and place
it being 1 line doesn't matter

upper rock
#

it wont affect performance

#

assuming u aint got a 100mb server

pale silo
upper rock
pale silo
#

Bc your loading variables which cost ram

upper rock
#

so

#

tell me

#

in any other script

#

do u load variables

#

90% of good scripts have variables

pale silo
#

Yes but only when you need to

upper rock
#

whats ur point here

upper rock
#

tf u on

#

we aint playing on 100mb servers

pale silo
#

Having useless variables for each player does cost ram

upper rock
#

most servers are like 1-10gb

upper rock
#

its for the command

pale silo
#

Bc you can just not have the variable?

#

Same as setting using variable for player's health

upper rock
#

tell me how you make a script the exact same way

#

without variables

pale silo
#

Just use statistics

#
west cairn
pale silo
#

They exist for this very reason

timid granite
#

because bedrock players can't really check the statistics or at least console players can't

pale silo
timid granite
#

Well thank you guys for your help