#i need scripts for my server

1 messages · Page 1 of 1 (latest)

vagrant cove
#

could someone help me create a mining skript ex: you break a block it gives you an item and then it turns to bedrocks for a certain amount of time and then turns back to the block
and then also could someone help me create a smelting skript ex: you right click with an item on a furnance, it turns to the smelting verison of the furnance taking the item from you, and then shortly after it gives you a "smelted" verison of that item

sinful salmon
#

what have you tried so far

vagrant cove
sinful salmon
#

are you familiar with syntax and shit or purely new

vagrant cove
#

purely new

sinful salmon
#

https://docs.skriptlang.org/docs.html and here is list of all events etc

vagrant cove
#

alright

sinful salmon
#

for the mining
you should look into events (block break event)
loops, list variables

#

and also look how to set a block

vagrant cove
#

alr

#

would you say that this will be easy or nop

sinful salmon
#

you should be able to do it as a newb

#

after some trial and error

vagrant cove
#

wheres the block break event

sinful salmon
#

website even has a search bar

vagrant cove
#

this is where i am right now

#

what do i do to change it to a bedrock block

sinful salmon
#

i doubt that thing even compiles

vagrant cove
#

oh damn

#

it doesnt work

sinful salmon
#

trigger is only for commands
skript doesn't use underscores in item/block names

vagrant cove
#

ok

#

on break of coal_ore:
give coal to player
send "&a+1 Coal"

#

this works i js tested

#

now how do i turn it to bedrock

sinful salmon
#

search the docs you wanna "set block" ¯_(ツ)_/¯

vagrant cove
#

how do i remove the drops and xp

#

on break of coal_ore:
give coal to player
send "&a+1 Coal"
set block to bedrock
wait 5 seconds
set block to coal_ore

sudden citrus
vagrant cove
#

wy,

#

your the goat tysm

#

ok now i need help with the smelting

vagrant cove
sudden citrus
#

Smelting what

vagrant cove
#

ok

sudden citrus
#

To what

vagrant cove
#

so what i want

#

is you take an item

#

and right click on a furnance

#

and then it turns to like the flaming verison of the furnance

#

and after like 25 seconds it "smelts you item"

sinful salmon
#

i dont think you are done with the ore thing yet
since it will bug out if server crashes and leave bedrock behind

vagrant cove
#

and gives you that item

vagrant cove
#

what should i do then to prevent that

sinful salmon
#

you want to add block to list variable when it gets broken
remove it from the list variable when it becomes block again
when server starts/skript loads
loop the list variable
and if block is bedrock set it to whatever block it is supposed to be
and ofc remove it from the list once its set again

vagrant cove
#

thats alot

sinful salmon
#

this is the harder part but you can do it
eventually

vagrant cove
#

so actually

#

what do i even do there

#

@scenic ice

spring wigeon
#

I think I have a snippet for this actually

#

let me check

#
    set {_blockState} to (block state of {_block})
    wait {_delay}
    force update {_blockState} without physics updates```
just call the fuction after the block is broken, and set it to bedrock