Advent of Ascension Wiki

1.7.10版本的玩家请注意,本Mod的1.7.10版本在此wiki上正式停止支持。这也意味着,在绝大多数页面上,关于1.7.10版本的内容会被移除。如果您需要关于1.7.10版本的信息,您可以尝试翻阅相应页面在2019年2月之前的历史版本(点击页面右上角的“历史”标签可以查看所有历史版本)
如果您希望评论、询问相关信息,或是表达自己的顾虑,请至官方Discord服务器或移步社区主页

READ MORE

Advent of Ascension Wiki
Advertisement
Advent of Ascension Wiki


Usage

Template:DropsInfo is a template used for displaying information regarding loot tables. There are two parts to using Template:DropsInfo: setting the main parameters, and adding the rows.

Main parameters

To start using Template:DropsInfo, you must decide if you want to set the main parameters. The main parameters change a few things about the table as a whole, such as the table's title.

Template:DropsInfo has the following main parameters, the list below shows a description for how each parameter is used. For most practical purposes, only the type and dimension parameters will be used.

  • type - determines which loot table the table is representing. Set this to either mob, chest, or custom.
    • If set to mob, will cause the following to occur:
      • The title of the table will read Unique drops.
      • An extra row will be placed at the bottom of the table. The row contains the following sentence: This mob also drops items from the <dimension> Loot Table. <dimension> is replaced with whatever is set by the dimension parameter. If the dimension parameter is not set, it will default to saying Overworld.
      • The third column from the left will be titled Looting.
    • If set to chest, the following will occur:
      • The title of the table will read Chest loot.
      • The bottom row of the table mentioning the dimension loot table will not be present.
      • The third column from the left will be titled Luck.
    • If set to custom, the following will occur:
      • The title of the table will be set to whatever the custom parameter is set to. If the custom parameter is not set, defaults to nothing.
      • The extra row on the bottom of the table for the world loot tables will not be present.
      • The third column from the left will display whatever is set in the otherlooting parameter. If the otherlooting parameter is not set, defaults to nothing.
    • If the type parameter is not set, defaults to mob.
  • dimension - when set, will change the name of the dimension in the sentence on the bottom of the table. If not set, the parameter defaults to Overworld. Note that this parameter is only used when the type parameter is set to mob.
  • custom - this parameter is only usable when the type parameter is set to custom. When set, this parameter changes the title of the table to match what the parameter is set to. If the type parameter is set to custom, but the custom parameter is not set, defaults to nothing.
  • otherlooting - this parameter is only usable when the type parameter is set to custom. When set, this parameter changes the title of the third column from the left to what the parameter is set to. If the type parameter is set to custom, but the otherlooting parameter is not set, defaults to nothing.

Main parameter usage

As most loot tables in the mod come in the form of mob drops, the only main parameter that you will likely need to set is the dimension parameter. In the case that a loot table is not being used for mob drops, the other parameters can be utilized to tweak the table to fit your needs.

Adding loot

Once the main parameters are set, you can start adding loot to the template. Loot is handled by inserting another template (called Template:DropsInfo/Drop) into the Template:DropsInfo. How you would do this is shown below.

In order to add a drop in Template:DropsInfo, you have to insert Template:DropsInfo/Drop like so:

{{DropsInfo
|dimension=
|{{DropsInfo/Drop|parameters}}
{{DropsInfo/Drop|parameters}}
{{DropsInfo/Drop|parameters}}
etc...
}}

You can add as many Template:DropInfo/Drop into the Tmplate:DropsInfo as you want. Do not add more | after the first one. The parameters of Template:DropsInfo/Drop can be filled out to fill in the columns/rows on the bigger Template:DropsInfo.

The parameters for Template:DropsInfo/Drop are like so:

{{DropsInfo/Drop
|item=
|quantity=
|weight=
|chance=
|notes=
|looting=
|group=
}}

Parameter information for Template:DropsInfo/Drops.

Template parameters

ParameterDescriptionTypeStatus
Itemitem

Setting this parameter will fill the box in the "Item" column of Template:DropsInfo. Only put the name of the item (and not code for a picture or link), a picture and link will be generated automatically based on the input.

Default
N/A
Example
|item=Carrot
Unknownsuggested
Quantityquantity

Setting this parameter fills the box in the "Quantity" column of Template:DropsInfo..

Default
N/A
Example
|quantity=2-5
Unknownoptional
Weightweight

Setting this parameter will fix the box in the "Weight" column of Template:DropsInfo.

Default
N/A
Example
|weight=1
Unknownoptional
Chancechance

no description

Unknownoptional
Lootinglooting

no description

Unknownoptional
Notesnotes

Setting this parameter will display what the parameter is set to in the "Notes" column in the Template:DropsInfo.

Default
N/A
Example
|notes=This mob can drop more then one of these.
Stringoptional
Groupgroup

Changes the color of the background of the row. Set this to a number from 1 to 10.

Default
If not set, or set to a number besides 1-10, defaults to no color.
Example
group=1
Numberoptional

An example of how this template works is below.

The following code produces the below template:

{{DropsInfo
|dimension = Creeponia
|totalweight1=100
|{{DropsInfo/Drop|item=Carrot|quantity=0-4|weight=1|chance=4|group=1}}
{{DropsInfo/Drop|item=Carrot|quantity=0-4|weight=1|chance=4|group=2}}
{{DropsInfo/Drop|item=Carrot|quantity=0-4|weight=1|chance=4|group=3}}
{{DropsInfo/Drop|item=Carrot|quantity=0-4|weight=1|chance=4|group=4}}
{{DropsInfo/Drop|item=Carrot|quantity=0-4|weight=1|chance=4|group=5}}
{{DropsInfo/Drop|item=Carrot|quantity=0-4|weight=1|chance=4|group=6}}
{{DropsInfo/Drop|item=Carrot|quantity=0-4|weight=1|chance=4|group=7}}
{{DropsInfo/Drop|item=Carrot|quantity=0-4|weight=1|chance=4|group=8}}
{{DropsInfo/Drop|item=Carrot|quantity=0-4|weight=1|chance=4|group=9}}
{{DropsInfo/Drop|item=Carrot|quantity=0-4|weight=1|chance=4|group=10}}
}}
独有掉落
物品 数量 抢夺 概率 注释
无掉落 0-4 N/A N/A N/A
Carrot.png 胡萝卜 0-4 N/A N/A N/A
Carrot.png 胡萝卜 0-4 N/A N/A N/A
Carrot.png 胡萝卜 0-4 N/A 表达式错误:缺少/的操作数。% N/A
Carrot.png 胡萝卜 0-4 N/A 表达式错误:缺少/的操作数。% N/A
Carrot.png 胡萝卜 0-4 N/A 表达式错误:缺少/的操作数。% N/A
Carrot.png 胡萝卜 0-4 N/A 表达式错误:缺少/的操作数。% N/A
Carrot.png 胡萝卜 0-4 N/A 表达式错误:缺少/的操作数。% N/A
Carrot.png 胡萝卜 0-4 N/A 表达式错误:缺少/的操作数。% N/A
Carrot.png 胡萝卜 0-4 N/A 表达式错误:缺少/的操作数。% N/A
Advertisement