RUST Component Blocker v0.1.9

No permission to download
You can download a maximum of 0 files within 24 hours
Component Blocker removes entities and items completely from the game. This plugin is for server owners who want to restrict the availability of items or entities in the game world.

Features​

  • Remove any item or game object from the world
  • Configurable messages and localization
  • Ingredient refund on crafting of blocked item
  • Block structure upgrades to any tier (configurable)

Notes​

Entities include in-game prefabs such as rocks, trees, or buildings. These may be blocked using the entity asset resource path, qualified or unqualified. Note: Prefabs generated by procgen may not be removed, this includes large rocks, radtowns, mountains, sphere tank, etc.

Items are not entities, and only exist in containers, inventory, or (temporarily) on the ground (in a "bag"). For admins, the items will still appear in the console but may not be created until they are unblocked.

The block list is very permissive and checks a variety of properties to determine candidates for deletion. The blocking behavior does not differentiate between items and blueprints, they are both removed.

If you use Crafting Controller, disable "craftRefund" in ComponentBlocker.json and block items with both plugins or you well get double resources refunded.

Commands​

This plugin provides both chat and console commands using the same syntax. When using a command in chat, prefix it with a forward slash: `/`.
  • blocker [term] -- Blocks item, entity, construction grade or asset path.
  • blocklist -- Print everything currently in the block list.
  • listinv [term] -- List itemMod specifications for all inventory items (or inventory items with itemMods with names that match the search terms)

Usage​

The blocker chat command is a toggled list, meaning that using the same command again will remove the item from the list.

Adding an item by shortname to the block list:
Code:
Please, Log in or Register to view codes content!
Removing block by running the exact same command:
Code:
Please, Log in or Register to view codes content!
Alternatively, adding an item by full name:
Code:
Please, Log in or Register to view codes content!
Please note the quotations, they are necessary for names that include spaces.

Adding an entity by resource path to block list:
Code:
Please, Log in or Register to view codes content!
Blocking structure tiers will prevent players from upgrading to any given tier
Code:
Please, Log in or Register to view codes content!
Blocking collectible (stone/wood/ore):
Code:
Please, Log in or Register to view codes content!
Viewing everything currently on the block list:
Code:
Please, Log in or Register to view codes content!
From server console:
Code:
Please, Log in or Register to view codes content!

Permissive Blocking Behavior​

When blocking an item by name where multiple items match said name, use the /listinv command to find more specific names depending on item skin or classification.

An example of an item that matches this criteria is "pants". Adding the default pants to your inventory and after using the /listinv command, you can identify the name to block this specific item name without blocking all items with "pants" in the name.

Hooks Used​

The following hooks are affected by this mod:

  • OnItemCraft
  • OnEntitySpawned
  • OnItemAddedToContainer
  • OnItemDeployed
  • OnPlantGather
  • OnQuarryGather
  • OnStructureUpgrade

Developer API​

Code:
Please, Log in or Register to view codes content!

API Example​

Code:
Please, Log in or Register to view codes content!
Author
Box2
Downloads
0
Views
36
First release
Last update
Rating
0.00 star(s) 0 ratings

Share this resource

Similar resources

Набор компонентов, которые могут использоваться другими плагинами.
0.00 star(s) 0 ratings
Downloads
0
Updated
RUST  Bed Rename Blocker v2.0.1 GP100.00
Prevents players from renaming beds / sleeping bags they do not own.
0.00 star(s) 0 ratings
Downloads
0
Updated
Управление пропами для блокировки части карт + декорации
0.00 star(s) 0 ratings
Downloads
0
Updated
CS 2  Blocker Passes v1.0.3 GP100.00
Плагин, который блокирует проходы, если на сервере нет необходимого количества игроков
0.00 star(s) 0 ratings
Downloads
0
Updated
RUST  Building Blocker v2.4.0 GP100.00
Fully prevents building in the building blocked zone
0.00 star(s) 0 ratings
Downloads
0
Updated