90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

Barricade

Barricade is a mod that implements more barrier types meant for use within modded mapmaking.

This mod may also change barrier and light block rendering, to be friendlier to directional based barriers.

You can enable the above by applying the Barricade Rendering resource pack.

Client-side Only

This mod is able to run on clients without having it on the server. When run like this, the mod will only apply the rendering functionalities to any block with the barricade:operator loader json. If you wish to implement this model type for your own barriers in a resource pack, copy from the models found in the mod's source.

You may specify which items activate rendering by adding/modifying json found in assets/<namespace>/barricade/operator_items.

The Barriers

This mod adds three barrier block types, Directional, Entity, and Advanced Barrier blocks. Directional barriers block movement from specific directions, whereas entity barriers block specific types of entities.

All items may be accessed through the /give command or through the Operator Utilities creative menu tab.

Default Directional Barriers

  • barricade:down_barrier - Blocks out entities from below.
  • barricade:up_barrier - Blocks out entities from above.
  • barricade:east_barrier - Blocks out entities from the east.
  • barricade:west_barrier - Blocks out entities from the west.
  • barricade:north_barrier - Blocks out entities from the north.
  • barricade:south_barrier - Blocks out entities from the south.
  • barricade:horizontal_barrier - Blocks out entities from all horizontal directions.
  • barricade:vertical_barrier - Blocks out entities from all vertical directions.

Default Entity Barriers

  • barricade:hostile_barrier - Blocks out mobs considered hostile, and neutral mobs that are more-so hostile.
  • barricade:mob_barrier - Blocks out all non player entities.
  • barricade:passive_barrier - Blocks out mobs considered passive, and neutral mobs that are more-so passive.
  • barricade:player_barrier - Exclusively blocks out players.

Advanced Barrier

The Advanced Barrier is a block entity based barrier that can be both an entity barrier and a directional barrier. What an Advanced Barrier will do can be modified through the barricade:blocked_directions and barricade:blocked_entities components on the associated item.

Example /give commands.

/give @s barricade:advanced_barrier[barricade:blocked_directions=[south,north]] - Blocks south and north.

/give @s barricade:advanced_barrier[barricade:blocked_directions={west,up}] - Blocks west and up.

/give @s barricade:advanced_barrier[barricade:blocked_directions={west,north,south}] - Blocks all horizontal directions besides east.

/give @s barricade:advanced_barrier[barricade:blocked_entities={entities:["#minecraft:skeletons"]}] - Blocks all skeletons.

/give @s barricade:advanced_barrier[barricade:blocked_entities={entities:["#minecraft:zombies","minecraft:player"],inverted:true}] - Blocks everything but zombies and players.

/give @s barricade:advanced_barrier[barricade:blocked_entities={backing_texture_location:"barricade:item/barricade/entity/player",entities:["minecraft:player"]},barricade:blocked_directions={west,north,south,east}] - Blocks only players from all horizontal directions.


Project members

Mod Garden

Mod Garden

Organization

Pug

Member

Kneelawk

Member

Sylv

Member

UltrusBot

Member

Details

Licensed MPL-2.0
Published 4 months ago
Updated a month ago