Giter Site home page Giter Site logo

clydeplayzyt590 / dummyitemsblocks-fork Goto Github PK

View Code? Open in Web Editor NEW

This project forked from davycraft648/dummyitemsblocks-fork

0.0 0.0 0.0 254 KB

DummyItemsBlocks with PM-NG fork support

Home Page: https://poggit.pmmp.io/p/DummyItemsBlocks

License: MIT License

PHP 100.00%

dummyitemsblocks-fork's Introduction

DummmmmmmmmyItemsBlocks

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
Chiseled Bookshelf - Toggle book slots
Decorated Pot - Place sherd pattern
Pitcher Crop Toggle upper state Increase growth
(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
  • #5827 Chiseled Bookshelf

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

dummyitemsblocks-fork's People

Contributors

diamond-gold avatar poggit-bot avatar clydenoiq avatar davycraft648 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.