Custom ore generation

  • 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!

AQika

Member
Jun 28, 2023
31
3
8
I am working on a minigame with a grace period, i need a way of customizing ore generation by increasing the Y level where it should spawn, and how many. I would use worldedit for it but it doesent work with skript as far as i know. Thanks in advance
 
Hello,
modifing requires you to make a plugin but you are trying to make some sort of minigame which probably resets.
In that case how you said, it would be better to do worldedit magic.
Maybe you can use skript-reflect and take a look at the worldedit api.
 
on walk:
if player's location's y-coord < (y- level):
chance of 0.01%:
loop all blocks in radius 30 of player:
if loop-block is stone:
set loop-block to CUSTOM_ORE


I prepared a fast and sloppy code. It could be a bug, I haven't tested it. You can change it according to your needs.