A PocketMine-MP plugin that replaces a block to another block when breaks, then back to the original block after a certain time

Overview

BlockReplacer

Discord GitHub license Poggit-CI Poggit-Download

A PocketMine-MP plugin that replaces a block to another block when breaks, then back to the original block after a certain time

How to Install

  1. Download the plugin from here here
  2. Put the BlockReplacer.phar file into the plugins folder.
  3. Restart the server.
  4. Done!

Additional Notes

License

MIT License

Copyright (c) 2021 AIPTU

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Comments
  • Crash when i add Oak_log and crash when i mine ore

    Crash when i add Oak_log and crash when i mine ore


    # Do not change this (Only for internal use)!
    config-version: 1
    
    # Cooldown used when the block to be replaced with the previous block
    # Default: 60 seconds
    cooldown: 5 
    
    # If true, the drop will be automatically added to your inventory
    auto-pickup: false
    
    # Block the id to be replaced
    blocks:
      - "minecraft:oak_log"
      - "minecraft:spruce_log"
      - "minecraft:birch_log"
      - "minecraft:jungle_log"
      - "minecraft:acacia_log"
      - "minecraft:dark_oak_log" 
      - "minecraft:redstone_ore"
    
    # Block replacement ids
    blocks-replace: "minecraft:bedrock"
    
    # This is used if you want block replaces work in certain world names
    # Empty it if you want block replaces work in all over the world names
    # example:
    # worlds:
    #   - "exampleworld"
    worlds: []
    ...
    
    bug help wanted question 
    opened by MadooxMc 9
  • Bug

    Bug

    ---
    # Do not change this (Only for internal use)!
    config-version: 1.5
    
    # The time in seconds when the block will be replaced with the previous block.
    cooldown: 10
    
    # Dropped items will be automatically added to the player's inventory.
    # If the player inventory is full, the item will automatically be dropped near the player.
    auto-pickup: true
    
    # Default block to use as a replacement.
    # If the block has meta, you can use the format "id:meta".
    default-replace: "bedrock"
    # List of blocks to be replaced.
    # If the block has a meta, you can use the format "id:meta".
    list-blocks:
      - "cobblestone=stone" # Cobblestone will be replaced to stone.
      - "dirt=grass"
      - "oak_log=oak_log:1"
      - "coal_ore" # It will be replaced to the default replacement block.
      - "diamond_ore"
      - "gold_ore"
      - "iron_ore"
      - "wheat_block=air"
      - "pumpkin=air"
      - "beetroot=air"
    
    # Set this to true if you want to use the blacklisted-worlds settings.
    # If both enable-world-blacklist and disable-world-blacklist are set to the same setting,
    # block will be replaced for all worlds.
    enable-world-blacklist: true
    # If enable-world-blacklist is set to true, block will be replaced for all worlds,
    # except the worlds mentioned here.
    blacklisted-worlds:
      - "Island"
    
    # Set this to true if you want to use the whitelisted-worlds settings.
    # If both enable-world-blacklist and disable-world-blacklist are set to the same setting,
    # block will not be replaced for all worlds.
    enable-world-whitelist: true
    # If enable-world-whitelist is set to true, block will not be replaced for all worlds,
    # except the worlds mentioned here.
    whitelisted-worlds:
      - "mine"
      - "Hypixel - Skyblock Hub"
    ...
    ---
    # Do not change this (Only for internal use)!
    config-version: 1.5
    
    # The time in seconds when the block will be replaced with the previous block.
    cooldown: 10
    
    # Dropped items will be automatically added to the player's inventory.
    # If the player inventory is full, the item will automatically be dropped near the player.
    auto-pickup: true
    
    # Default block to use as a replacement.
    # If the block has meta, you can use the format "id:meta".
    default-replace: "bedrock"
    # List of blocks to be replaced.
    # If the block has a meta, you can use the format "id:meta".
    list-blocks:
      - "cobblestone=stone" # Cobblestone will be replaced to stone.
      - "dirt=grass"
      - "oak_log=oak_log:1"
      - "coal_ore" # It will be replaced to the default replacement block.
      - "diamond_ore"
      - "gold_ore"
      - "iron_ore"
      - "wheat_block=air"
      - "pumpkin=air"
      - "beetroot=air"
    
    # Set this to true if you want to use the blacklisted-worlds settings.
    # If both enable-world-blacklist and disable-world-blacklist are set to the same setting,
    # block will be replaced for all worlds.
    enable-world-blacklist: false
    # If enable-world-blacklist is set to true, block will be replaced for all worlds,
    # except the worlds mentioned here.
    blacklisted-worlds:
    - ""
    # Set this to true if you want to use the whitelisted-worlds settings.
    # If both enable-world-blacklist and disable-world-blacklist are set to the same setting,
    # block will not be replaced for all worlds.
    enable-world-whitelist: true
    # If enable-world-whitelist is set to true, block will not be replaced for all worlds,
    # except the worlds mentioned here.
    whitelisted-worlds:
      - "mine"
      - "Hypixel - Skyblock Hub"
    ...
    

    so i have enabled block replacement for only 2 worlds mine and Hypixel - Skyblock Hub But Its Replacing For all worlds such as islands.

    opened by DaDevGuy 5
  • Replacing block in every world

    Replacing block in every world

    I have enabled whitelist world, despite that it's working in every World

    ---
    # Do not change this (Only for internal use)!
    config-version: 1.5
    
    # The time in seconds when the block will be replaced with the previous block.
    cooldown: 60 
    
    # Dropped items will be automatically added to the player's inventory.
    # If the player inventory is full, the item will automatically be dropped near the player.
    auto-pickup: true
    
    # Default block to use as a replacement.
    # If the block has meta, you can use the format "id:meta".
    default-replace: "bedrock"
    # List of blocks to be replaced.
    # If the block has a meta, you can use the format "id:meta".
    list-blocks:
      - "cobblestone=stone" # Cobblestone will be replaced to stone.
      - "dirt=grass"
      - "oak_log=oak_log:1"
      - "coal_ore" # It will be replaced to the default replacement block.
      - "diamond_ore"
      - "gold_ore"
      - "iron_ore"
    
    # Set this to true if you want to use the blacklisted-worlds settings.
    # If both enable-world-blacklist and disable-world-blacklist are set to the same setting,
    # block will be replaced for all worlds.
    enable-world-blacklist: false
    # If enable-world-blacklist is set to true, block will be replaced for all worlds,
    # except the worlds mentioned here.
    blacklisted-worlds:
      - "blacklistedworld"
      - "blacklistedworld2"
    
    # Set this to true if you want to use the whitelisted-worlds settings.
    # If both enable-world-blacklist and disable-world-blacklist are set to the same setting,
    # block will not be replaced for all worlds.
    enable-world-whitelist: true
    # If enable-world-whitelist is set to true, block will not be replaced for all worlds,
    # except the worlds mentioned here.
    whitelisted-worlds:
      - "Mines"
      - "whitelistecworld2"
    ...
    
    bug help wanted Solved 
    opened by LuciferVerma 4
  • Oak not work for me but ore regen and i have remove the line

    Oak not work for me but ore regen and i have remove the line

    ---
    # Do not change this (Only for internal use)!
    config-version: 1
    
    # Cooldown used when the block to be replaced with the previous block
    # Default: 60 seconds
    cooldown: 5 
    
    # If true, the drop will be automatically added to your inventory
    auto-pickup: true
    
    # Block the id to be replaced
    blocks:
      - "minecraft:17:0"
      - "minecraft:17:1"
      - "minecraft:17:2"
    
    # Block replacement ids
    blocks-replace: "minecraft:bedrock"
    
    # This is used if you want block replaces work in certain world names
    # Empty it if you want block replaces work in all over the world names
    # example:
    # worlds:
    #   - "exampleworld"
    worlds: []
    ...
    
    bug Solved 
    opened by MadooxMc 4
  • Regeneration is not working for non ops

    Regeneration is not working for non ops

    If a non op player is breaking the blocks they are getting the the blocks instead of replacing it, but If a op player is breaking the block it works perfectly, it regens the block, but it's not working for non op players,

    I have a general ideas why it's happening, i think it's not working bc of bypass permission, but can you look into it.

    And i have messed around some things and Found the solution. I just Removed default: op in plugin.yml

    question 
    opened by LuciferVerma 3
  • Suggestion

    Suggestion

    add compatibility with world protection plugins like worldprotect, bedcoreprotect, festival etc so we can make public mining areas where they can mine the certain blocks without mining blocks they arent supposed to be

    enhancement invalid Solved 
    opened by EmporiumNetwork 2
  • Per blocks replace

    Per blocks replace

    is it possible to replace a different block? like minecraft:gold_ore = minecraft:bedrock minecraft:coal = minecraft:stone minecraft:log = minecraft:planks

    Thanks

    enhancement Solved 
    opened by chisi21 2
  • How to use ??

    How to use ??

    Not work with

    ---
    # Do not change this (Only for internal use)!
    config-version: 1
    
    # Cooldown used when the block to be replaced with the previous block
    # Default: 60 seconds
    cooldown: 5 
    
    # If true, the drop will be automatically added to your inventory
    auto-pickup: true
    
    # Block the id to be replaced
    blocks:
      - "minecraft:coal_ore"
      - "minecraft:diamond_ore"
      - "minecraft:emerald_ore"
      - "minecraft:gold_ore"
      - "minecraft:iron_ore"
      - "minecraft:lapis_ore" 
      - "minecraft:redstone_ore"
    
    # Block replacement ids
    blocks-replace: "minecraft:bedrock"
    
    # This is used if you want block replaces work in certain world names
    # Empty it if you want block replaces work in all over the world names
    # example:
    # worlds:
    #   - "exampleworld"
    worlds: []
       - end2
    
    bug invalid question 
    opened by MadooxMc 1
Releases(2.0.0)
Owner
AIPTU
"Hello World."
AIPTU
Plugin Notify OP Or Staff Has Permission antixraype.check when someone breaks ore

General Plugin Notify OP Or Staff Has Permission antixraype.check when someone breaks ore If the message repeats many times, check if the player is us

Nguyễn Đạt 3 Mar 15, 2022
A PocketMine-MP plugin to regulate player hunger and prohibit eating certain foods easily

NoEats A PocketMine-MP plugin to regulate player hunger and prohibit eating certain foods easily. Features Managing hunger. Permission bypass. Support

null 2 Jan 16, 2022
BetterMobs - a plugin Remixed, by MadoxMC, the original plugin is maked by tgwaste

BetterMobsOverworld BetterMobs is a plugin Remixed, by MadoxMC, the original plugin is maked by tgwaste. MadoxMC Just Edited This plugin to Make 3 Compatible Plugins to add Mobs on your Overworld Worlds, NetherWorlds & EndWorlds, MadoxMC Idea.

MadoxMC 4 Dec 15, 2022
BetterMobs is a plugin Remixed, by MadoxMC, the original plugin is maked by tgwaste.

BetterMobs is a plugin Remixed, by MadoxMC, the original plugin is maked by tgwaste. MadoxMC Just Edited This plugin to Make 3 Compatible Plugins to add Mobs on your Overworld Worlds, NetherWorlds & EndWorlds, MadoxMC Idea.

MadoxMC 10 Dec 15, 2022
A tool that can be used to verify BC breaks between two versions of a PHP library.

Roave Backward Compatibility Check A tool that can be used to verify BC breaks between two versions of a PHP library. Pre-requisites/assumptions Your

Roave, LLC 530 Dec 27, 2022
The main scope of this extension is to help phpstan to detect the type of object after the Assert\Assertion validation.

PHPStan beberlei/assert extension PHPStan beberlei/assert Description The main scope of this extension is to help phpstan to detect the type of object

PHPStan 33 Jan 2, 2023
WeExpire is an opensource tool for creating emergency notes that can be read by your trusted contacts only after your death or if you are seriously injured

WeExpire is an opensource tool for creating emergency notes that can be read by your trusted contacts only after your death or if you are

Francesco 36 Nov 24, 2022
A plugin manager for PocketMine-MP downloads plugin from PocketMine-MP official plugin repository

oh-my-pmmp A plugin manager for PocketMine-MP Getting Started Prerequisites Your server MUST RUN the latest version of PocketMine. Installation From P

thebigcrafter 6 Jan 4, 2023
AnsibleBoy aims to use the Asnible `facts` as data, which can then be visualized in a table format

AnsibleBoy - Ansible Frontend Hub About AnsibleBoy aims to use the Ansible facts as data, which can then be visualized as a table ToDo (note that this

Ron 23 Jul 14, 2022
This module integrates Silverstripe CMS with Google Translate API and then allows content editors to use automatic translation for every translatable field.

Autotranslate This module integrates Silverstripe CMS with Google Translate API and then allows content editors to use automatic translation for every

null 4 Jan 3, 2022
A web app for the resolution of a mobile game in wich you have 4 images and a list of letters, then a few boxes to fill with the word connecting the four images.

4images_1mot_solutions A web app for the resolution of a mobile game in wich you have 4 images and a list of letters, then a few boxes to fill with th

FOTSO Claude 3 Jan 13, 2022
This Plugin runs commands when a player does a certain emote

The EmoteCommands Plugin This Plugin runs commands when a player does a certain emote You will need a pocketmine server of at least version 4.0.0 Usag

DiamondStrider1 1 Jan 24, 2022
This is a port of the original WireGuard UI bits as implemented by Netgate in pfSense 2.5.0 to a package suitable for rapid iteration and more frequent updating on future releases of pfSense.

This is a port of the original WireGuard*** UI bits as implemented by Netgate in pfSense 2.5.0 to a package suitable for sideloading and more frequent updating on future releases of pfSense. This also includes some improvments such as a proper status page (found under Status / WireGuard Status) and improved assigned interface handling.

R. Christian McDonald 195 Dec 23, 2022
Quickly and easily preview and test your Magento 2 order confirmation page, without hacks or spending time placing new order each time

Preview Order Confirmation Page for Magento 2 For Magento 2.0.x, 2.1.x, 2.2.x and 2.3.x Styling and testing Magento's order confirmation page can be a

MagePal :: Magento Extensions 71 Aug 12, 2022
A PocketMine-MP plugin that counts the played time of players.

PlayedTime - v0.0.1 BETA VERSION! This is a test/beta version of PlayedTime. It can contain bugs and not fully tested things. A plugins that allows yo

supercrafter333 7 Aug 11, 2022
A PocketMine-MP plugin that allows you to mute players permanently and for a specific time.

BetterMute - v1.1.1 A PocketMine-MP plugin that allows you to mute players permanently and for a specific time. Features easy mute players permanent o

supercrafter333 7 Dec 21, 2022
A PocketMine/Altay Plugin to morph yourself into a block

BlockMorph A PocketMine/Altay Plugin to morph yourself into a block Command To morph yourself into a block use this command: /blockmorph [BlockID|Bloc

Matze 7 Mar 22, 2022
PHPCheckstyle is an open-source tool that helps PHP programmers adhere to certain coding conventions.

PHPCheckstyle Overview PHPCheckstyle is an open-source tool that helps PHP programmers adhere to certain coding conventions. The tools checks the inpu

PHPCheckstyle 157 Dec 5, 2022
Prevent players from passing a certain point in your server worlds

WorldBorder Info ~ Prevent players from passing a certain point in your server worlds! Stops glitchers trying to get past the border locking them in a

Hydro 1 Mar 27, 2022