Placeable

Quick rating

Community listing page, reviews here may not be monitored by the author.

Placeable

By Foreck1

No reviews yet

Utility to manually assign any block to an item for placement. i.e. custom placeable items

Mod Loaders
Forge
Minecraft

Community voices

Reviews

List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Show per page
10
25
50
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

About

Project Details

Type
Mod
Latest Version
placeable-1.12.2-1.0.1.jar

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID

Resources

External Links

Source Issues Wiki Discord

About

Description

What

Block-Item Tweaker is a straightforward utility for modpacks that allows to assign any arbitrary block to an arbitrary item by configuring their relation in a reloadable JSON. It effectively merges both, so that when you "place" the item, the block will be placed.

Block-items can be defined to be placed by right-clicking and shift-right-clicking (vanilla behavior) or ony when shift-right-clicking (useful for items with right-click uses)

Do note you will have to manually tweak the drops of the block to drop back the item with a mod like Dropt or CraftTweaker.

Why

What can you do with this? Well, you will have to create the blocks yourself with another mod (ContentTweaker, Content Creator, BBLSOhMy, etc) or think of existing relations that make sense, but to give an example, placeable vanilla sticks, bowls, paper, books, etc, etc. Just asign a block to them. 

How

Go to config\placeable.json or create the file if it doesn't exist, then define the item:block relationship. Below is a ready-to-test example.

Use command /placeable reload to test your changes in-game

{
  "normal": {
    "minecraft:stick": "minecraft:planks",
    "minecraft:coal": {
      "block": "minecraft:stained_glass",
      "mode": "direct",
      "state": {
        "color": "red"
      }
    },
    "minecraft:coal:1": {
      "block": "minecraft:stonebrick",
      "mode": "set_item",
      "meta": 0
    },
    "minecraft:dye": "minecraft:wool",
    "minecraft:golden_apple": {
      "block": "minecraft:wool",
      "mode": "set_item"
    }
  },
  "sneaking": {
    "minecraft:coal": {
      "block": "minecraft:stained_glass",
      "mode": "direct",
      "state": {
        "color": "green"
      }
    },
    "minecraft:iron_ingot": "minecraft:iron_block"
  }
}

Item metadata is definided directly on the item key; block meta/state must be defined in the dedicated fields.

Entries have a "mode" field, which can be "direct", "held_item", or "set_item". This is to solve the problem of some block placement logic possibly requiring the player to be actually holding a stack of the block.

  1. the default if not defined is "held_item" mode, which just uses the specified item
     
  2. in "set_item" mode, it'll temporarily change the player's held item to the block, try to do the placement, then change it back to whatever the original item was
     
  3. in "direct" mode, it directly sets the block in the world without going through the normal block item logic (particularly useful for placing blocks that don't have associated items, like fire)

Do note this mod's placement bypasses the forge block placement events, which means other mods might not be able to tell that the player placed the blocks; a potentiual issue with e.g. claim protection mods and the like.

Here is a demo of the mod as seen in Rebirth of the Night

Who

Graciously coded in its entirety by phantamanta44

Idea and logo by Foreck

Addenda

PSA: mixinbooter versions 11.5 to 11.14 are incompatible with Fermium and thus BBLSOhMy if you want to use both loaders, it is recommended to downgrade mixinbooter or wait for a fix

Used in the demo video are Papers: BBLSOhMy's litter blocks; Bowl: ContentTweaker; and Stick: remodeled/retextured grate from Better With Mods

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Downloads
Last Updated
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works