Перейти к содержимому
Mineforgian

Cobblemon - Show Held Items

Shows your Pokémon's held items in the world.

Загрузки
669K
Подписчики
184
Обновлён
1 апреля 2025 г.
Лицензия
MPL-2.0

Опубликован 15 августа 2024 г.

⚠️ As of Cobblemon 1.7 this mod is no longer supported! ⚠️

The feature the this mod provides has been ported into Cobblemon as of version 1.7! 🎉


Cobblemon - Show Held Items

This is a side mod for Cobblemon so it will not do anything without Cobblemon installed.

This mod allows Pokémon's Held Items render in the world. When joining a server that does not have this mod installed, only your own Pokémon's items will be rendered.

Cubebone and Marowak holding bones.

Video Example

Technical Information

Server Configuration

The items that are hidden or shown as hats/glasses can be controlled by the server by adding a data pack to the server that replaces the "hidden_items.json", "wearable_eye_items.json" or "wearable_hat_items.json" item tag file. Hidden items will still be visible to the Pokémon's owner.

The path for hidden items is:
datapacks\[YOUR_SERVER'S_DATAPACK]\data\show-held-items\tags\item\hidden_items.json

These are the default settings of the file:

{
  "replace": true,
  "values": [
    "#cobblemon:held/is_held_item",
    "#cobblemon:berries"
  ]
}

Any modded or vanilla items can be added here.

The paths for eye items and hats are:
datapacks\[YOUR_SERVER'S_DATAPACK]\data\show-held-items\tags\item\wearable_eye_items.json
datapacks\[YOUR_SERVER'S_DATAPACK]\data\show-held-items\tags\item\wearable_hat_items.json

Here is an example using Villager Hats and Simple Hats:

Chimchar with glasses from Simple Hats

wearable_eye_items.json:

{
  "replace": false,
  "values": [
    "simplehats:clockface",
    "simplehats:sunglasses",
  ]
}
Piplup with with a hat from Villager Hats

wearable_hat_items.json:

{
  "replace": false,
  "values": [
    "#villagerhats:hats"
  ]
}



Compatibility With Other Models

If there are Pokemon that do not render their held item or if you would like to have custom Fakemon show their held items, you can add a locator in the model named "held_item" or "held_item_fixed".

The "held_item" locator will render held items the same way that players render items. This is most effective for items like the spyglass, trident and other tools. Customizing how held items are rendered.

Sometimes it doesnt look quite right to have an item held the same way as the player. So for bird or dog-like pokemon, it may be best to use "held_item_fixed". This will render the flat default item model. Customizing how held items are rendered.

To change the rotation of the item, simply change the rotation of the locator.

To support wearable hat or eye items add locators "held_item_head" and "held_item_eyes" onto the model either near the eyes or on top of the head. Wearable Items in Blockbench


If the held item isn't quite the right size you can add modifiers to the locators using Null Objects. Give the Null Object the name of the locator you wish to modify followed by square brackets and a scale value, e.g., "held_item_head[scale=2.25]".
Scaling Wearable Items

If you have any other concerns or questions, you can inquire here. Thank you!

Ченджлог

0.2.3Релиз1.21.1 · 1 апреля 2025 г.

v0.2.3:

  • Fixed crash when rendering block entites on servers.
0.2.2Релиз1.21.1 · 28 марта 2025 г.

v0.2.2:

  • Fixed crash when rendering Ash Greninja with Mega Showdown.
  • Fixed items visually stuttering when Pokemon rotate.
  • Fixed some networking issues.
0.2.1Релиз1.21.1 · 26 января 2025 г.

v0.2.1:

  • Updated new 1.6.1 models.
  • Updated more models to support wearables.
  • Added a visibility toggle in the summary menu.
  • Fixed various bugs that would cause items not to show.
0.2.0Релиз1.21.1 · 23 января 2025 г.

v0.2.0:

  • Updated new 1.6 models.
  • Added support for wearable eye and hat items.
  • Added custom models for some held items when wore on head.
  • Added ability to scale held items in Blockbench.
0.1.5Релиз1.20.1 · 2 сентября 2024 г.

v0.1.5:

  • Fixed broken kakuna model
  • Removed kotlin dependancy
  • Removed 'WTF' spam in logger, oops.
0.1.4Релиз1.20.1 · 31 августа 2024 г.

v0.1.4:

  • Added compatibility with LambDynamicLights.
  • Added held item locators to some pokemon that didn't have any.
  • Fixed critical bug to do with an unused data tracker.
0.1.3Релиз1.20.1 · 29 августа 2024 г.

v0.1.3:

  • Fixed critical bug to do with entity tracking.
  • Updates to some model held item locations.
0.1.2Релиз1.20.1 · 20 августа 2024 г.

v0.1.2:

  • Added client side compatibility with roaming Pokémon from pasture block.
  • Fixed issue where items would not update for certain players on a server.
  • Minor adjustments to how some Pokémon hold items.

Комментарии

Загружаем…