You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: wikis/summoningrituals/docs/binding/entity.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Summoning Entity
2
2
3
-
`SummoningEntity` is a utility binding that allows you to easily create complex instances of `EntityInput`s and `EntityOutput`s via the `EntityInputBuilder` and `EntityOutputBuilder`. The builders offer functionality to add tooltips, offset and spread values, as well as NBT to entities, which is otherwise not possible, if you only provide a simple [entity input](../recipe/inputs.md#entity-inputs) or [entity output](../recipe/outputs.md#entity-outputs) instance.
3
+
`SummoningEntity` is a utility binding that allows you to easily create complex instances of `EntityInput`s and `EntityOutput`s via the `EntityInputBuilder` and `EntityOutputBuilder`. The builders offer functionality to add tooltips, offset and spread values, as well as NBT to entities, which is otherwise not possible if you only provide a simple [entity input](../recipe/inputs.md#entity-inputs) or [entity output](../recipe/outputs.md#entity-outputs) instance.
After obtaining the `EntityInputBuilder` instance through the binding, you can chain more functions to it. It is not required to finish the builder because the `entityInputs` function accepts builder instances as well.
30
+
After obtaining the `EntityInputBuilder` instance through the binding, you can chain additional functions to it. It is not required to finish the builder because the `entityInputs` function also accepts builder instances.
31
31
32
32
- properties:
33
33
-`entity`
@@ -63,10 +63,10 @@ After obtaining the `EntityInputBuilder` instance through the binding, you can c
63
63
- assigns the given validator to the `EntityInput`
64
64
65
65
> [!TIP] What is a validator?
66
-
> You might ask why a custom `validator` is required if `data` is already provided. For inputs, the `data` property is only used for rendering purposes in recipe viewers. If you give an entity a sword via the `data` property, it will be displayed in the recipe viewer page, but it won't be checked if the entity actually has a sword when being sacrificed.
66
+
> You might ask why a custom `validator` is required if `data` is already provided. For inputs, the `data` property is only used for rendering purposes in recipe viewers. If you give an entity a sword via the `data` property, it will be displayed on the recipe viewer page, but it won't check whether the entity actually has a sword when being sacrificed.
67
67
>
68
68
> **Why is that?<br>**
69
-
> Because vanilla Minecraft only checks entity data (NBT) for exact matches, there is no way to always cover all desired functionality. If you want to ensure that an entity has at least 10 HP, this wouldn't be possible because Minecraft would check for the exact value only. That's why you have to use a custom validator with your own logic to check if the respective values are correct.
69
+
> Because vanilla Minecraft only checks entity data (NBT) for exact matches, there is no way to always cover all desired functionality. If you want to ensure that an entity has at least 10 HP, this wouldn't be possible because Minecraft would check only for the exact value. That's why you have to use a custom validator with your own logic to check whether the respective values are correct.
70
70
71
71
```js
72
72
.entityInputs([
@@ -88,7 +88,7 @@ After obtaining the `EntityInputBuilder` instance through the binding, you can c
88
88
89
89
## Entity Output Builder
90
90
91
-
After obtaining the `EntityOutputBuilder` instance through the binding, you can chain more functions to it. It is not required to finish the builder because the `entityOutputs` function accepts builder instances as well.
91
+
After obtaining the `EntityOutputBuilder` instance through the binding, you can chain additional functions to it. It is not required to finish the builder because the `entityOutputs` function also accepts builder instances.
92
92
93
93
- properties:
94
94
-`entity`
@@ -111,7 +111,7 @@ After obtaining the `EntityOutputBuilder` instance through the binding, you can
111
111
- required: no
112
112
- default: empty list
113
113
-`offset`
114
-
- description: specifies the offset to the altar block where to spawn the output entity at
114
+
- description: specifies the offset from the altar block where the output entity is spawned
Copy file name to clipboardExpand all lines: wikis/summoningrituals/docs/binding/item.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Summoning Item
2
2
3
-
`SummoningItem` is a utility binding that allows you to easily create complex instances of `ItemOutput`s via the `ItemOutputBuilder`. The builder offers functionality to add offset and spread values to an item output, which is otherwise not possible, if you only provide a simple [item output](../recipe/outputs.md#item-outputs) instance.
3
+
`SummoningItem` is a utility binding that allows you to easily create complex instances of `ItemOutput`s via the `ItemOutputBuilder`. The builder offers functionality to add offset and spread values to an item output, which is otherwise not possible if you only provide a simple [item output](../recipe/outputs.md#item-outputs) instance.
After obtaining the `ItemOutputBuilder` instance through the binding, you can chain more functions to it. It is not required to finish the builder because the `itemOutputs` function accepts builder instances as well.
23
+
After obtaining the `ItemOutputBuilder` instance through the binding, you can chain additional functions to it. It is not required to finish the builder because the `itemOutputs` function also accepts builder instances.
24
24
25
25
- properties:
26
26
-`item`
27
27
- description: specifies the output item; defined via the binding function to obtain the builder
28
28
- type: `ItemStack`
29
29
- required: yes
30
30
-`offset`
31
-
- description: specifies the offset to the altar block where to spawn the output item at
31
+
- description: specifies the offset from the altar block where the output item is spawned
0 commit comments