Script Blocks
Adds various blocks and mechanics which assist map makers and dungeon builders.
介绍
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
常见问题
Script Blocks 支持哪些 Minecraft 版本?
Script Blocks 支持 Minecraft Java 版 1.20.1–1.21.1,共 2 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Script Blocks 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
TheRedBrain 的其他作品
查看全部 →Shield API
制作带有自定义模型的盾牌,从未如此简单!
Bundle API
Bundle API 让模组作者可以轻松添加容量超过一组物品的收纳袋,袋中可存放由物品标签指定的物品。
Better Combat Extension
为“Better Combat”模组添加更多功能。
Slot Customization API
A small API for mods to dynamically change inventory slot positions and enable/disable them.
评论
登录后评论和评分