So this is my code, trying to make a item system with item creating enchanting etc, this is for the recipes and at the marked line the ingredient is air, this throws an big red error at my face thru the console.
function itemRegisterRecipe(recipeData: objects, itemData: objects):
set {item_recipe::%{_itemData::1}%::*} to {_recipeData::*}
broadcast {item_recipe::%{_itemData::1}%::*}
register shaped recipe:
id: "valoria:%{i.id::%{_itemData::1}%}%"
result: diamond sword of unbreaking 5 named "&bStrong Sword"
shape: "abc", "xyz", "wtf"
ingredients:
set ingredient of "a" to {item_recipe::%{_itemData::1}%::2}
set ingredient of "b" to **{item_recipe::%{_itemData::1}%::3}** #HERE!
set ingredient of "c" to {item_recipe::%{_itemData::1}%::4}
set ingredient of "x" to {item_recipe::%{_itemData::1}%::5}
set ingredient of "y" to {item_recipe::%{_itemData::1}%::6}
set ingredient of "z" to {item_recipe::%{_itemData::1}%::7}
set ingredient of "w" to {item_recipe::%{_itemData::1}%::8}
set ingredient of "t" to {item_recipe::%{_itemData::1}%::9}
set ingredient of "f" to {item_recipe::%{_itemData::1}%::10}
What happened?
So this is my code, trying to make a item system with item creating enchanting etc, this is for the recipes and at the marked line the ingredient is air, this throws an big red error at my face thru the console.
Error in the Console:
error.txt
Steps to reproduce
have a ingredient in a recipe which is air
Expected behavior
No errors
SkBee Version
v3.6.3
Server Version
1.21
SkBee Info
[16:37:17 INFO]: --- [SkBee Loading Info] --- [16:37:17 INFO]: - NBT Elements successfully loaded [16:37:17 INFO]: - Text Component Elements successfully loaded [16:37:17 INFO]: - Advancement Elements successfully loaded [16:37:17 INFO]: - BossBar Elements successfully loaded [16:37:17 INFO]: - Bound Elements successfully loaded [16:37:17 INFO]: - Damage Source elements successfully loaded [16:37:17 INFO]: - Display Entity elements successfully loaded [16:37:17 INFO]: - Fishing elements successfully loaded [16:37:17 INFO]: - Game Event Elements successfully loaded [16:37:17 INFO]: - Item Component Elements successfully loaded [16:37:17 INFO]: - Particle Elements successfully loaded [16:37:17 INFO]: - RayTrace elements successfully loaded [16:37:17 INFO]: - Recipe Elements successfully loaded [16:37:17 INFO]: - Scoreboard Elements successfully loaded [16:37:17 INFO]: - Scoreboard Objective Elements successfully loaded [16:37:17 INFO]: - Statistic Elements successfully loaded [16:37:17 INFO]: - Structure Elements successfully loaded [16:37:17 INFO]: - Minecraft Tag elements successfully loaded [16:37:17 INFO]: - Team Elements successfully loaded [16:37:17 INFO]: - Tick Manager elements successfully loaded [16:37:17 INFO]: - Villager Elements successfully loaded [16:37:17 INFO]: - Virtual Furnace Elements disabled via config [16:37:17 INFO]: - World Border Elements successfully loaded [16:37:17 INFO]: - World Creator Elements successfully loaded [16:37:17 INFO]: - Chunk Generator Elements successfully loaded [16:37:17 INFO]: --- [Server Info] --- [16:37:17 INFO]: Server Version: 1.21-130-b1b5d4c (MC: 1.21) [16:37:17 INFO]: Skript Version: 2.9.4 [16:37:17 INFO]: Skript Addons: [16:37:17 INFO]: - PermSk v2.0.0 [16:37:17 INFO]: - SkBriggy v1.4.2 [16:37:17 INFO]: SkBee Version: 3.6.3 [16:37:17 INFO]: SkBee Website: https://github.com/SkriptHub/SkBee
Additional Information
No response