Space skript.

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Tayple

Member
Jun 7, 2019
3
0
0
Hi,

I am trying to make a skript like this plugin: https://www.spigotmc.org/resources/space.59572/
Using only Skript, Skellet, MundoSK, SkRayFall etc... Basically without skript-mirror and skript-yaml etc...
So I would like to know if it’s possible for skript to know if you are in a room that is sealed so that you can breath. And the second thing I can’t figure out how to make is a crafting table using a dispenser (to make custom items). I would love to know how you guys would try making this.
Thanks, Tayple.
 
So I would like to know if it’s possible for skript to know if you are in a room that is sealed so that you can breath
Yes its possibly, but whether its Skript or a Java plugin, its quite difficult to write. I did it once back in the day attempting to make a space script, and it took like 3 of us to figure it out (Unfortunately I do not have that code saved anywhere) Long story short you need to create a function that keeps looping blocks in a radius 1 around the previous block, keep this going in a certain sized area looking for air, and after x number of loops or distance from a certain middle point, have it check for solid blocks. If it keeps going past x loops/blocks then its know the room is not sealed off.

I can’t figure out how to make is a crafting table using a dispenser (to make custom items). I would love to know how you guys would try making this.
You could just use a click event, when a player clicks a crafting table, cancel the event and open a dispenser inventory instead.
If you were able to use Skript-mirror you could just add your own recipes to the server which would be usable in the crafting table.
 
Yes its possibly, but whether its Skript or a Java plugin, its quite difficult to write. I did it once back in the day attempting to make a space script, and it took like 3 of us to figure it out (Unfortunately I do not have that code saved anywhere) Long story short you need to create a function that keeps looping blocks in a radius 1 around the previous block, keep this going in a certain sized area looking for air, and after x number of loops or distance from a certain middle point, have it check for solid blocks. If it keeps going past x loops/blocks then its know the room is not sealed off.


You could just use a click event, when a player clicks a crafting table, cancel the event and open a dispenser inventory instead.
If you were able to use Skript-mirror you could just add your own recipes to the server which would be usable in the crafting table.

Thanks for the answer I’ll try figuring it out, but what I’m trying to do with the dispenser is make like a second kind of crafting table, the dispenser would be in my case a metal compressor. So that for example I can make a new shapeless recipe that only works in a dispenser.
 
Status
Not open for further replies.