Skip to content

Commit

Permalink
feat: add folia support
Browse files Browse the repository at this point in the history
  • Loading branch information
RealTriassic committed Jul 30, 2023
1 parent eea41c7 commit 54289fb
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 58 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.triassic</groupId>
<artifactId>RandomCart</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<packaging>jar</packaging>

<name>RandomCart</name>
Expand Down
114 changes: 57 additions & 57 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
###################################################################################################
# ██▀███ ▄▄▄ ███▄ █ ▓█████▄ ▒█████ ███▄ ▄███▓ ▄████▄ ▄▄▄ ██▀███ ▄▄▄█████▓ #
# ▓██ ▒ ██▒▒████▄ ██ ▀█ █ ▒██▀ ██▌▒██▒ ██▒▓██▒▀█▀ ██▒▒██▀ ▀█ ▒████▄ ▓██ ▒ ██▒▓ ██▒ ▓▒ #
# ▓██ ░▄█ ▒▒██ ▀█▄ ▓██ ▀█ ██▒░██ █▌▒██░ ██▒▓██ ▓██░▒▓█ ▄▒██ ▀█▄ ▓██ ░▄█ ▒▒ ▓██░ ▒░ #
# ▒██▀▀█▄ ░██▄▄▄▄██▓██▒ ▐▌██▒░▓█▄ ▌▒██ ██░▒██ ▒██ ▒▓▓▄ ▄██░██▄▄▄▄██▒██▀▀█▄ ░ ▓██▓ ░ #
# ░██▓ ▒██▒▒▓█ ▓██▒██░ ▓██░░▒████▓ ░ ████▓▒░▒██▒ ░██▒▒ ▓███▀ ▒▓█ ▓██░██▓ ▒██▒ ▒██▒ ░ #
# ░ ▒▓ ░▒▓░░▒▒ ▓▒█░ ▒░ ▒ ▒ ▒▒▓ ▒ ░ ▒░▒░▒░ ░ ▒░ ░ ░░ ░▒ ▒ ░▒▒ ▓▒█░ ▒▓ ░▒▓░ ▒ ░░ #
# ░▒ ░ ▒░░ ░ ▒▒ ░ ░░ ░ ▒░ ░ ▒ ▒ ░ ▒ ▒░ ░ ░ ░ ░ ▒ ░ ░ ▒▒ ░▒ ░ ▒ ░ #
# ░ ░ ░ ▒ ░ ░ ░ ░ ░ ░ ░ ░ ░ ▒ ░ ░ ░ ░ ▒ ░░ ░ ░ #
# ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ #
###################################################################################################

# This file handles the configuration for the RandomCart Minecraft plugin.
# Once you have understood the configuration, feel free to delete the comments, I know there's a lot.
# Plugin created by Triassic.


randomcart:
chance: 0.5 # The chance that a RandomCart spawns.
# Blocks that have the ability to spawn RandomCarts.
allowed-blocks:
- STONE
- DIRT
- GRASS_BLOCK

minecarts:
# miner-cart: # Identifier used internally by the plugin.
# name: "&9Miner's Cart" # Displayed in the Minecart's Chest GUI as the title.
# # List of items that will be included in this preset.
# items:
# 0: # Slot the item should be added in. Slots begin from 0.
# material: "IRON_PICKAXE" # The Item Name.
# display-name: "&fMiner's Pickaxe" # The Name of the item displayed to players.
# # Lore of the Item displayed to players.
# lore:
# - "&7From the deepest depths of the caves."
# # Item Enchantments
# enchantments:
# EFFICIENCY: # Enchantment Name.
# level: 4 # Enchantment Level.
# 1:
# material: "STONE"
# display-name: "&dSpecial Stone"
# lore:
# - "&7I don't know why!"
# amount: 64
# 2:
# material: "STONE_BRICKS"
# amount: 64
# 3:
# material: "COOKED_PORKCHOP"
# amount: 16
# 4:
# material: "COBBLESTONE"


version: 1.0.2 # DO NOT MODIFY.
###################################################################################################
# ██▀███ ▄▄▄ ███▄ █ ▓█████▄ ▒█████ ███▄ ▄███▓ ▄████▄ ▄▄▄ ██▀███ ▄▄▄█████▓ #
# ▓██ ▒ ██▒▒████▄ ██ ▀█ █ ▒██▀ ██▌▒██▒ ██▒▓██▒▀█▀ ██▒▒██▀ ▀█ ▒████▄ ▓██ ▒ ██▒▓ ██▒ ▓▒ #
# ▓██ ░▄█ ▒▒██ ▀█▄ ▓██ ▀█ ██▒░██ █▌▒██░ ██▒▓██ ▓██░▒▓█ ▄▒██ ▀█▄ ▓██ ░▄█ ▒▒ ▓██░ ▒░ #
# ▒██▀▀█▄ ░██▄▄▄▄██▓██▒ ▐▌██▒░▓█▄ ▌▒██ ██░▒██ ▒██ ▒▓▓▄ ▄██░██▄▄▄▄██▒██▀▀█▄ ░ ▓██▓ ░ #
# ░██▓ ▒██▒▒▓█ ▓██▒██░ ▓██░░▒████▓ ░ ████▓▒░▒██▒ ░██▒▒ ▓███▀ ▒▓█ ▓██░██▓ ▒██▒ ▒██▒ ░ #
# ░ ▒▓ ░▒▓░░▒▒ ▓▒█░ ▒░ ▒ ▒ ▒▒▓ ▒ ░ ▒░▒░▒░ ░ ▒░ ░ ░░ ░▒ ▒ ░▒▒ ▓▒█░ ▒▓ ░▒▓░ ▒ ░░ #
# ░▒ ░ ▒░░ ░ ▒▒ ░ ░░ ░ ▒░ ░ ▒ ▒ ░ ▒ ▒░ ░ ░ ░ ░ ▒ ░ ░ ▒▒ ░▒ ░ ▒ ░ #
# ░ ░ ░ ▒ ░ ░ ░ ░ ░ ░ ░ ░ ░ ▒ ░ ░ ░ ░ ▒ ░░ ░ ░ #
# ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ #
###################################################################################################

# This file handles the configuration for the RandomCart Minecraft plugin.
# Once you have understood the configuration, feel free to delete the comments, I know there's a lot.
# Plugin created by Triassic.


randomcart:
chance: 0.5 # The chance that a RandomCart spawns.
# Blocks that have the ability to spawn RandomCarts.
allowed-blocks:
- STONE
- DIRT
- GRASS_BLOCK

minecarts:
# miner-cart: # Identifier used internally by the plugin.
# name: "&9Miner's Cart" # Displayed in the Minecart's Chest GUI as the title.
# # List of items that will be included in this preset.
# items:
# 0: # Slot the item should be added in. Slots begin from 0.
# material: "IRON_PICKAXE" # The Item Name.
# display-name: "&fMiner's Pickaxe" # The Name of the item displayed to players.
# # Lore of the Item displayed to players.
# lore:
# - "&7From the deepest depths of the caves."
# # Item Enchantments
# enchantments:
# EFFICIENCY: # Enchantment Name.
# level: 4 # Enchantment Level.
# 1:
# material: "STONE"
# display-name: "&dSpecial Stone"
# lore:
# - "&7I don't know why!"
# amount: 64
# 2:
# material: "STONE_BRICKS"
# amount: 64
# 3:
# material: "COOKED_PORKCHOP"
# amount: 16
# 4:
# material: "COBBLESTONE"


version: ${project.version} # DO NOT MODIFY.
1 change: 1 addition & 0 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ name: RandomCart
version: '${project.version}'
main: com.triassic.randomcart.RandomCart
api-version: 1.13
folia-supported: true
authors: [ Triassic ]
description: Summons a Minecart randomly with loot inside of it when a block is broken.

0 comments on commit 54289fb

Please sign in to comment.