Git Product home page Git Product logo

decorations's Introduction

I have frozen my personal support for public plugins. The plugins will remain public on GitHub (though archived) for anyone that would like to keep them updated. This my final decision on the matter. No support will be provided - you will be ignored - regardless of private or public inquiry.

Decorations

Poggit Decorations HitCount Discord Chat

Xenophilicy

Information

With this plugin you can allow your players to purchase and spawn in custom geometry entities using the Decorations shop UI! Everything is configurable in the decorations.json config file including price, spawn limits, entity scale, and more!

Enhancments or feature requests

Please see the current TODO list for some things that are currently being fixed or added before requesting something be added so there aren't any duplicate or invalid issues being created.


Usage

Use /deco to access the main interface. From there you can enter the shop or view your archived decorations. By selecting an item in your archive, you have the option to sell or spawn the decoration. In the shop, you can select what category you'd like to browse. Once you pick a category, choose an item to purchase and proceed to the pre-purchase form. The pre-purchase form is where you can choose how many to buy, but also choose where you'd like the item to be exported to once you purchase it (inventory or decoration archive). Once bought, you can spawn it by tapping the item on the block of where you want it to be. You have the ability, as the decoration owner, to view the decoration options by hitting it. This screen allows you to sell, archive, and pick up the decoration for easier transport or movement adjustments. You can also edit the entity's yaw and pitch along with fine tune the XYZ coodinates using sliders!


Adding models

This plugin allows users like YOU to add your very own custom models and texures simply by dragging your files into the directory found at /plugin_data/Decorations/decorations and adding an entry into a category in the decorations.json file! The two files required to create an entity are the geometry JSON file, and the texture PNG file. Once you have acquired both of those and copied them to the correct directory, you can add them into the Decoration configuration file with the instructions below!

JSON Configuration

Please see the default JSON file here for a more detailed example of how categories and entries should be entered. Here is the JSON file broken down into separate parts.

Category name

"dishes": {

Category format

"format": "§dDishes",

Entity list

"entities": [

Entry ID

"id": "mug",

Geometry file name

"geometry": "mug.geo.json",

Geometry identifier

"identifier": "geometry.mug",

Entity texture

"texture": "mug.png"

Entity rotation

"rotation": {
  "yaw": 30,
  "pitch": 0
},

Entity size

"scale": 0.4,

Allowed size

"scale-range": {
  "min": 0.1,
  "max": 2
},

Entry format

"format": "§6Coffee mug",

Entity buy price

"price": 20,

Entity spawn limit

"limit": 3,

Entity name tag

"nametag": "§aDrink me!"

The following table is used to determine a key's optionality.

Key Optionality Default
Category name required -
Category name required -
Entity list required -
Entry ID required -
File name required -
Identifier required -
Texture requried -
Rotation optional Player's
Size optional 1
Allowed size optional None
Format optional Entry ID
Price optional Free (0)
Limit optional Unlimited
Nametag optional None

In the end, your JSON entry will look something like this:

{
  "dishes": {
    "format": "§dDishes",
    "entities": [
      {
        "id": "mug",
        "model": {
          "geometry": "mug.geo.json",
          "identifier": "geometry.mug",
          "texture": "mug.png"
        },
        "rotation": {
          "yaw": 30,
          "pitch": 0
        },
        "scale": 0.4,
        "scale-range": {
          "min": 0.1,
          "max": 2
        },
        "format": "§6Coffee mug",
        "price": 20,
        "limit": 3,
        "nametag": "§aDrink me!"
      }
    ]
  }
}

TODO

These are things that are planned or in-progress

  • Fine tuning
    • Add yaw/pitch control using the Deco UI
    • Add default rotation to configuration
    • Allow for live yaw and pitch control using player attachment
    • Enable vector tuning using the Deco UI (XYZ)
    • Add a scale range in the configuration to allow players to customize entity size
  • Glitches
    • Fix issues with owner spawning in models
  • Allow commands to be executed when interacting with foreign decorations
  • UXP
    • Catch errors thrown by removed deocorations (from the decorations.json file)
    • Allow deocrations to be mass despawned for moderation (by type, ID, owner, etc.)

Credits

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.