Skip to content

diamond-gold/DummyItemsBlocks

Repository files navigation

DummyItemsBlocks

Items and blocks added are not functional, they are just for decoration purposes.

  • Except for lingering potions which are functional as normal splash potions.

Supports all items and blocks up to Minecraft 1.20

Allows worlds with such items or blocks to be loaded

Freedom to control items and blocks added via config.yml

Encountered a bug? Want something added? Create an issue (#°Д°)

Have questions? Start a discussion ✍(◔◡◔)

Starring the GitHub repository is like sprinkling stardust—help me create magic! (。・∀・)ノ

Feeling generous? Buy me some snacks! (❤´艸`❤)

Feature Requests Bug Reports

Known issue when another plugin that add vanilla items or blocks is installed

[Server thread/CRITICAL]: InvalidArgumentException: "Deserializer is already assigned for "minecraft:shield"" (EXCEPTION) in "pmsrc/src/data/bedrock/item/ItemDeserializer" at line 55

If you encounter similar error in another plugin, please delete minecraft:shield in config.yml

Replace minecraft:shield with the item or block specified in the error message.

Special behavior

By default, the following is required to change block states by right-clicking

  • Player is in creative mode
  • Have dummyitemsblocks.changestate permission, default: op
  • Holding an arrow named Change State in either main hand or offhand
    • Can be obtained by: /give player arrow 1 {display:{Name:"Change State"}}

Customizable using the Main::setCanChangeStatesClosure() method

Examples of block state changes by right-clicking:

Block Sneak-right-click Right-click
(Soul) Campfire Toggle fire Place item
Crafter Toggle triggered Toggle crafting
Decorated Pot Toggle animation Place sherd pattern
(Sticky) Piston - Toggle extended
Turtle Egg Increase cracks Increase egg Count

There are many other blocks that can change state by right-clicking.

Acknowledgements

Referenced from various PRs on the PocketMine-MP repo

Contains code adapted from

  • #5232 Goat Horn
  • #5455 Firework Star/Rocket

Icon created using textures from: https://modrinth.com/resourcepack/vanillaxbr