#Is it possible to make this entire portion of my skript into a function?
1 messages · Page 1 of 1 (latest)
1 messages · Page 1 of 1 (latest)
you can make literally anything into a function, so yes
but i dont really see why, unless you're repeating code (in this example there are no repeats)
just create a function and pass the event-block and player
just do this
function testfunction(p: player, b: block):
And then inside put your code
But replace player with {_p} (you can use ctrl+f to make this easier)
And replace event block with {_b}
@lost flint
hi, sorry i was away from the computer