#help skript minehut

1 messages · Page 1 of 1 (latest)

brave oak
#

how do i make that when someone is Creative AND op can bypass the skript i put it in

mighty pasture
#

if player is op:

#

if gamemode of player is creative:

left patrol
#

theres conditions for this

brave oak
#

cant i do like:
if gamemode of player is creative:
(checks if is op and if yes it bypasses and if not it doesnt bypass)

mighty pasture
#

if player is not op:

#

if gamemode of player is not creative:

#

wait

brave oak
#

i mean how to do to bypass the skript

mighty pasture
brave oak
#

okay

#

wait and btw how do i enter minehut server settings without activating

mighty pasture
#

idk

brave oak
#

on break:
# Allow Creative players to break anything
if player is in creative mode:
allow event
stop

# Suspicious sand can always be broken by survival
if event-block is suspicious sand:
    allow event
    stop

# Generator blocks list
if event-block is stone or coal ore or iron ore or gold ore or diamond ore or emerald ore or redstone ore or lapis ore or nether quartz ore or nether gold ore or ancient debris or iron block or gold block or diamond block or emerald block or spawner or spruce log or stripped spruce log or spruce wood or stripped spruce wood or spruce planks or spruce leaves:

    # Only act as generator if on suspicious sand
    if block below event-block is suspicious sand:
        cancel event
        give player 1 of event-block
        set block at event-block to event-block
    else:
        allow event  # breaks normally

else:
    cancel event
    send "&cYou can only break generator blocks!" to player
#

the notes are for other admin to understand whats it for

#

dont delete them

mighty pasture
#

where is the op ine

#

i just see creative

brave oak
#

its not there thats why im asking

mighty pasture
#

or "creative or op"

brave oak
#

and

mighty pasture
#

ok

brave oak
#

cancel event is for bypassing the skript?

#

is that my whole script edited?

mighty pasture
brave oak
#

ohh okay

#

can you explain what it does??

mighty pasture
#

nvm

#

i messed it up

brave oak
#

np

mighty pasture
brave oak
#

a gen server

#

when mined it doesnt drop, it gets onto the inventory directly and regens

mighty pasture
#

so your code is like

#

just break the blocks in the region?

brave oak
#

not like that

#

do u know whats a gen server?

mighty pasture
brave oak
#

idk how to explain

#

like

#

when u break the blocks (selected blocks not every) and it doesnt drop, gets directly into inv and it regens

mighty pasture
#

so just whitelist all the allow to break blocks

brave oak
#

huh

thick prism
#
player does not have permission "op"```
mighty pasture
#
    if event-block is dirt:
      cancel event
      give player drops of blocks using player's tool
#

this is an example

thick prism
#

What do you mean not like that 😭

mighty pasture
brave oak
#

and i already have something of that that works

mighty pasture
#
on load:
  add dirt, coal ore, diamond ore to {-allowed_blocks::*}

on break:
  if {-allowed_blocks::*} contains event-block:
    if gamemode of player is not creative:
      if player is not op:
        cancel event
        give player drops of block using player's tool```
mighty pasture
brave oak
#

maybe il come up with something more simple

#

sorry to waste ur timee

left patrol
tidal sunBOT
#

It is recommended that you don't use AI agents for multiple reasons:


2) Blindly trusting code from any source is a bad idea, especially on production servers. Even if the code that was generated appears to work, you have no clue what vulnerabilities it introduces or fails to protect against.

3) Using AI to write your code takes away from your learning and doesn't challenge you to develop problem solving skills.```
While AI can be used as a tool, it is necessary to understand what it is doing and check any code it creates. Since this is a learning community, we want to support your personal growth. As a result, we don't allow generated content in our help channels ([Rule 8](<#welcome-to-skunity message>))
mighty pasture
#

this is my example ```
on load:
set {-allowed_blocks::*} to dirt, coal ore, diamond ore

on break:
if {-allowed_blocks::*} contains event-block:
if gamemode of player is not creative:
if player is not op:
cancel event
give player drops of block using player's tool```

#

you can check it out

brave oak
left patrol
#

right

brave oak
#

its notes for other admins to understand faster what it does

left patrol
#

sure

brave oak
#

dont believeme if you dont want to dude we do things like that