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
#i need scripts for my server
1 messages · Page 1 of 1 (latest)
what have you tried so far
honestly, i know nothing about script and im looking to learn something to create a server so far literally nothing i cant figure much out
are you familiar with syntax and shit or purely new
purely new
https://sovdee.gitbook.io/skript-tutorials
this has some basics you should learn
https://docs.skriptlang.org/docs.html and here is list of all events etc
alright
for the mining
you should look into events (block break event)
loops, list variables
and also look how to set a block
wheres the block break event
on break of coal_ore:
trigger:
give coal to player
send "&a+1 Coal"
this is where i am right now
what do i do to change it to a bedrock block
i doubt that thing even compiles
trigger is only for commands
skript doesn't use underscores in item/block names
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
search the docs you wanna "set block" ¯_(ツ)_/¯
ok
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
you can try cancel event right after the event is triggered
what should i use for the smelting
Smelting what
ok
To what
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"
i dont think you are done with the ore thing yet
since it will bug out if server crashes and leave bedrock behind
and gives you that item
oh
what should i do then to prevent that
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
thats alot
this is the harder part but you can do it
eventually