Infinite Blocks icon

Infinite Blocks -----

Create blocks that are infinite (just like creative mode)



Infinite Blocks
- Hand out blocks that can be used infinitely -

This plugin enables you to create blocks that - even in survival - work as if you were in creative mode. Placing the block will not consume it. Since the data is stored to the block you can also distribute the block using dispensers or by tossing it to another player.

In order to install the plugin, simply throw it into your plugin folder and restart/reload your server.

The plugin has two commands:
  • /infiniteblocksreload: Command to reload the configuration.
    Permission: infiniteblocks.reload
  • /infiniteblock <item> [player] [itemname]: Hand out an infinite block of the given type to either yourself or another player. Optionally you can also provide a custom name for the item
    Permission: infiniteblocks.infiniteblock

If you don't like the default messages sent by the plugin - you can change every message in the configuration or even disable it by setting it to ''.
Code (YAML):

# Please do not delete any entries of this Config.
#  --------------------------------------------------------------------------------------
# |In order to deactivate any functions please mind about these tips:                    |
# |For numbers: Set the Value to 0.                                                      |
# |For texts: Change to ''.                                                              |
# |For booleans: Set to false.                                                           |
# |For lists: Set NONE as the only value                                                 |
#  --------------------------------------------------------------------------------------
# Please read the information above the entries before modifying them

Config
:

  Prefix
:
    # This prefix is shown in front of the chosen plugin messages. At the end of the prefix you should reset the color codes using &r.
    # The prefix can be added to every message using %PREFIX%.
    plugin-prefix
: '&c [Infinite Blocks ]&r'

  # At this part of the config you can set all plugin messages except console outputs and help lists.
  Messages
:

    # This message gets send to a player who has not got the permission to run a specific command.
    no-permission
: ' %PREFIX% &4You are not allowed to execute that command.'

    # This message gets send to a player who has reloaded the config files.
    reloaded-config
: ' %PREFIX% &aThe Config has been reloaded.'
 
    # This message will be sent when the item given as a parameter for /infiniteblock is invalid
    invalid-item
: ' %PREFIX% &4The item you specified does not exist'
 
    # This message will be sent when the player given as a parameter for /infiniteblock is invalid
    invalid-player
: ' %PREFIX% &4The player you specified does not exist or is not online'
 
    # This message will be sent to a player who obtains an infinite item
    # %ITEM% = lowercase name of the item, %ITEMNAME% = Customname if specified in command, otherwise same as %ITEM%
    obtained-infinite-item
: ' %PREFIX% &2You obtained infinite &c%ITEMNAME%'
 
    # This message will be sent to a player who gives an infinite item to another player
    # %ITEM% = lowercase default name of the item, %ITEMNAME% = Customname if specified in command, otherwise same as %ITEM%,
    # %PLAYER% = receiving players name, %DISPLAY% = receiving players display name
    handed-out-infinite-item
: ' %PREFIX% &2You gave infinite &c%ITEMNAME% &2to &6%PLAYER%'

    # REQUIRES VAULT
    # This message will be sent to a player when who tries to place an infinite block while not having enough balance
    # %AMOUNT% = the amount needed to place the block
    placing-failed-missing-balance
: ' %PREFIX% &4You do not have the required funds (&c%AMOUNT%&4) to place this block'
 
    # This message will be sent when the command /infiniteblock is used incorrectly
    infiniteblock-help
: |
     %PREFIX% &4Wrong usage of &6/infiniteblock
      &cCommand syntax: &6/infiniteblock <item> [player] [itemname]

  Settings
:
    # REQUIRES VAULT
    blockUsageCost
:
      # Any material not explicitly defined below will deduct the following amount
      defaultUsageCost
: 0.0
      usageCostPerMaterial
:
        STONE
: 0.0
        OAK_LOG
: 0.0

    # Lore settings for infinite blocks
    lore
:
      # A list of strings to add as the lore for infinite blocks
      # %AMOUNT% = Cost to place that infinite block
      loreList
:
       - '&aThis is an infinite block'
       - '&6Cost per use
: &c%AMOUNT%'

      # Whether the lore shall be force updated when the block is used
      # Setting this to true will override any lore on the block, including ones added by other means
      # Setting this to false will add the lore only once and only update infinite blocks without any lore
      forceUpdate
: false

  # Permissionlist:
  # infiniteblocks.reload: Permission to reload the config.
  # infiniteblocks.infiniteblock: Permission to hand out infinite blocks
  # infiniteblocks.ignoreCost: Permission to ignore vault balance deduction when using infinite blocks
New features in 1.2.0 (check update notes for details):
  • Configurable lore for infinite blocks.
    Let your players know everything they need to know about the block using the lore.

New features in 1.1.0 (check update notes for details):
  • Vault & Economy support to automatically deduct a configurable amount once a player uses an infinite block. Not having the required funds will prevent the block from being placed.

If you got any suggestions for this plugin or you are left with problems or questions, feel free to message me here on SpigotMC or let me know on Discord: fabsi_

If you like this resource please consider leaving a review or a donation. Any amount is appreciated!

[​IMG]
Have a nice day! :)
Resource Information
Author:
----------
Total Downloads: 686
First Release: Mar 28, 2022
Last Update: Mar 15, 2024
Category: ---------------
All-Time Rating:
5 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings