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

Item Stages

Allows items to be restricted to a stage.

Загрузки
128K
Подписчики
13
Обновлён
26 марта 2024 г.
Лицензия
LGPL-2.1-only

Опубликован 8 июня 2023 г.

Item Stages

This mod is an addon for the GameStages API. It allows for items and blocks to be placed into custom progression systems.  You should check out the GameStage API mod's description for more info. To give a brief run down, stages are parts of the progression system set up by the modpack or server. Stages are given to players through a command, which is typically ran by a questing mod, advancement, or even a Command Block.

Nodecraft sponsor banner

This project is sponsored by Nodecraft. Use code DARKHAX for 30% off your first month of service!

Setup

This mod uses CraftTweaker for configuration.

This mod adds one new ZenScript method for adding item stage restrictions. You can use a specific item/block id, or an ore dictionary entry. If an ore dictionary is used, all entries for that oredict will be restricted. mods.ItemStages.addItemStage(String stage, Item/Block/OreDict);

Effects

When something is restricted by this mod, several things will happen to prevent the player from using the item.

  • Holding a restricted item will cause it to be dropped immediately. (Configurable)
  • Equipping the item to offhand, armor, or bauble slot will cause it to be dropped. (Configurable)
  • Players can not right click or left click with the item. (Configurable)
  • The tooltip will be replaced with a restricted message.
  • The item will not be visible in JEI

Example Script

// Example Script

// Locks stone to stage one mods.ItemStages.addItemStage("one", <minecraft:stone>);

// Locks all registered records to stage two mods.ItemStages.addItemStage("two", <ore:record>);

// Locks all items from a mod to a stage
mods.ItemStages.stageModItems("one", "minecraft");

// Locks a liquid to a stage. This only affects JEI
mods.ItemStages.stageLiquid("nine", <liquid:water>);

Ченджлог

8.0.3Релиз1.20.1 · 26 марта 2024 г.
  • Fix restrictions created with CraftTweaker scripts not being created on dedicated clients. (2ceaff5)

This project is made possible by Patreon support from players like you. Thank you!

  • lothrazar
  • Spencer Gilbert
  • mums spaghetti
  • Pongo Sapiens
  • noobanidus
  • Darkosto
10.0.1Релиз1.20.3 · 12 января 2024 г.

This project is made possible by Patreon support from players like you. Thank you!

  • lothrazar
  • Spencer Gilbert
  • Pongo Sapiens
  • noobanidus
  • Darkosto
9.0.2Релиз1.20.2 · 8 января 2024 г.

This project is made possible by Patreon support from players like you. Thank you!

  • lothrazar
  • Spencer Gilbert
  • Pongo Sapiens
  • noobanidus
  • Darkosto
9.0.1Релиз1.20.2 · 7 января 2024 г.

This project is made possible by Patreon support from players like you. Thank you!

  • lothrazar
  • Spencer Gilbert
  • Pongo Sapiens
  • noobanidus
  • Darkosto
8.0.2Релиз1.20.1 · 14 декабря 2023 г.
  • Add Russian localization. Thanks to TheAnaxMan. (6bd52a6)

This project is made possible by Patreon support from players like you. Thank you!

  • lothrazar
  • Spencer Gilbert
  • Pongo Sapiens
  • noobanidus
  • Darkosto
8.0.1Релиз1.20.1 · 17 июля 2023 г.

This project is made possible by Patreon support from players like you. Thank you!

  • Spencer Gilbert
  • Pongo Sapiens
  • Charles Bernal
  • noobanidus
  • Darkosto
  • Borealis German
6.0.1Релиз1.19.4 · 14 июля 2023 г.
  • Port to MC 1.19.4, thanks to remplerus

This project is made possible by Patreon support from players like you. Thank you!

  • Spencer Gilbert
  • Pongo Sapiens
  • Charles Bernal
  • Darkosto
  • Borealis German
7.0.1Релиз1.20 · 14 июля 2023 г.

This project is made possible by Patreon support from players like you. Thank you!

  • Spencer Gilbert
  • Pongo Sapiens
  • Charles Bernal
  • Darkosto
  • Borealis German

Комментарии

Загружаем…