Мова

Script Blocks

Script Blocks

Modrinth

Adds various blocks and mechanics which assist map makers and dungeon builders.

1.1k завантажень 9 підписників оновлено 3mo ago
остання v0.0.8 Modrinth
Fabric 1.20.1 – 1.21.1 AdventureGame-mechanicsLibrary

Script Blocks

This mod adds multiple blocks designed to help building adventure maps and dungeons.

Important

This mod is currently in its alpha stage, which means:

  • Not all features are implemented.
  • Existing features may not be in their final form.
  • Breaking changes can happen.
  • Existing features may be removed.
  • Expect bugs and crashes.
  • Documentation is very minimal.
  • Back up your worlds when using this mod.

Features

This mod implements a lot of different features, I will give a short and incomplete overview here.
All details will be explained in the wiki (not yet written).

Script Blocks

The basic idea is to build a "script" outside the visible parts of the dungeon.

There are blocks that can detect a player, interactable blocks, etc., which all "trigger" a configurable block position.
Then there are blocks which have functionality when they are "triggered", like mob spawners, blocks which change state, message sender, jigsaw placer, advancement giver, etc.
There are also utility blocks like counter, delay and relay blocks.

The blocks are designed to be used in jigsaw structures.
They are configurable via an in game UI, like the existing jigsaw blocks.

Dialogues

Dialogues are data driven and can be referenced via the 'dialogue block'.
Each dialogue is a list of strings and a list of answers. When the player chooses an answer, several things can happen:

  • another dialogue opens
  • an advancement is granted
  • a loot table is generated and the items given to the player
  • a message is send to the player
  • a block at a configurable position is triggered (refer to Script Blocks)
  • a block at a configurable position is interacted with (similar to a right-click)
    An answer can be (un)locked via an advancement and can have an item cost.

Shops

Shops are data driven and can be referenced via special blocks.
A shop can have multiple deals, which can be (un)locked via advancements.
A deal has an item stack as offer and a list of item stacks as price.

Use Relay Blocks

When interacting with these blocks, they relay the interaction to another block.
For now they come in the form of all existing doors and trapdoors.

Teleporter blocks and locations

Teleporter blocks can teleport the player and optionally the players party to a position in a dimension.
The position can be configured:

  • the players spawn point or the world spawn.
  • a specific position in a specific dimension set by another teleporter block.
  • a 'location'.

Locations are data driven. They reference a structure and a 'control block position'.
The structure must be configured, so that the block at the 'control block position' is a 'location control block'.
The 'location control block' tells the teleporter the teleport target position.

Locations can be (un)locked by advancements and can have an item cost.
They can either be public or player specific.
Public locations are located in the overworld. Private locations are located in a 'player_locations_dimension'. Each player has one, they are dynamically generated for each player entering the world.

Housing

A housing block has an owner and an area of influence (AOI).
In the AOI only the owner can place, break or interact with blocks. Even players in adventure mode can break or place blocks here.
The owner can add other players to different lists, which grants them various rights in the AOI, like placing, breaking or interacting with blocks.

Housing blocks have two different modi to determine their owner.

  • Interaction, the owner can be set by interacting with the housing block. The owner can revoke ownership of the housing block.
  • Dimension, when the housing block is placed in a 'player_locations_dimension', the player owning the dimension also owns the housing block

Версії

Alpha
0.0.8
fabric · 1.21.1 · 3mo ago
# 0.0.8 ## Additions - added "scriptblocks:removed_on_teleport" data component, which holds a list of strings - Teleporter Blocks can now remove status…
82
Alpha
0.0.7
fabric · 1.21.1 · 8mo ago
# 0.0.7 ## Additions - "Boss Controller Block" can now trigger a block when no players are present in its defined area - added optional…
100
Alpha
0.0.6
fabric · 1.21.1 · 8mo ago
# 0.0.6 ## Additions - added Use Relay Lectern Block, another variant of the Use Relay Block - added Area Filler Block, when triggered fills a configurable…
30
Alpha
0.0.5
fabric · 1.21.1 · 13mo ago
# 0.0.5 - data-driven features refactor, items are now defined as itemStacks in the known format - added an optional additional dimension for public…
104
Alpha
0.0.4
fabric · 1.21.1 · 15mo ago
# 0.0.4 - added Teleporter(Trap)Doors, can be broken in survival and keep their settings - several small fixes
132
Alpha
0.0.3
fabric · 1.21.1 · 15mo ago
# 0.0.3 - updated to 1.21.1 - added (optional) compatibility with Lootables - now depends on Slot Customization API - now depends on Fzzy Config - removed…
108
Alpha
0.0.2
fabric · 1.20.1 · 25mo ago
- added missing localization strings - added background gradient to all creative screens - added missing biome definitions
388
Alpha
0.0.1
fabric · 1.20.1 · 25mo ago
First alpha release.\ Bugs and crashes are very possible.\ Make backups of your worlds or better, don't use this mod with existing worlds.\ Updates may make…
141

Коментарі 0

Поки немає коментарів. Будь першим, хто поділиться думкою.

Завантажити Script Blocks

Файли надаються напряму з першоджерела. Modgrid не зберігає та не змінює їх.