Jump to content

Generator Skript [v1.2]


vYaori

Recommended Posts

Epic Generators
By vYaori/Xorzn/Your Dad

This is a pretty powerful generator skript with yaml support, you can edit max gen places in plugins/EpicGenerators/config.yml.
Note: This is my first published project, so dont booli if it has lots of redundant lines :3

Commands:
/generator gui - claim your generators here
/generator reload - reloads the config file

Actions:
Right Click On Generator - Upgrade Generator
Break Generator - Get Generator

Required Addons:
- Skript-Yaml
- SkBee

Config.yml:
Note: Radius: 0.1 = 1 Chunk

Prefix: '&7[&dEpicGen&7]'

Settings:
    Radius: 0.1
    SpawnDelay: 10 seconds
    MaxPlace: 10
    Lore:
    - '&7▎ &aDrops: {drop}'
    - '&7▎ &aPlace To Activate'

Message:
    Place: '&aSuccessfully placed generator! &7({current}/{max})'
    Break: '&aSuccessfully broke generator! &7({current}/{max})'
    MaxGens: '&cYou have too many generators!'
    OwnerError: '&cYou don''''t own this generator!'


Gens.yml:
Cost handler has to be edited in the script options, its default to {balance::%player's uuid%}

Wood:
    Name: '&6Wood Generator'
    Block: oak wood
    Drop: oak wood
    Cost: 0
    Pre-Made: true
    Lore:
    - '&7Line 1'
    - '&7Line 2'

Stone:
    Name: '&7Stone Generator'
    Block: stone
    Drop: stone
    Cost: 150
    Pre-Made: true
    Lore:
    - '&7Line 1'
    - '&7Line 2'

Iron:
    Name: '&fIron Generator'
    Block: iron block
    Drop: iron ingot
    Cost: 300
    Pre-Made: true
    Lore:
    - '&7Line 1'
    - '&7Line 2'


Updates (Version 1.2):
- Code Cleanup
- Fixed Major Bug (Gens Wont Work Without This Fix)
 


Donation: yaoricoronel567@gmail.com (Paypal)
Support: Xorzn (Discord)
Download: 

EpicGen.sk

Edited by vYaori
Version 1.2 - Major Bug Fix
  • Like 1
Link to comment
Share on other sites

  • vYaori changed the title to Generator Skript [v1.2]
  • 2 weeks later...
8 hours ago, YT_TangledWires said:

Also the generators aren't dropping any items.

Turns out it was dropping them, just in the wrong world. I fixed this by changing the line "set {_loc} to location({_x},{_y},{_z}, world "%{_c}%'s world")" to "set {_loc} to location({_x},{_y},{_z}, "myworldname")"

  • Like 2

Owner of WiredGens (wiredgens.minehut.gg)

 

Plugin Developer and Skripter

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...