Yanny's Stone Age

Yanny's Stone Age

51.3k Downloads

[1.16.4] Additional axes with NBT data in config

Terpo opened this issue ยท 0 comments

commented

Is your feature request related to a problem? Please describe.
It is already possible to add additional axes to the tag "ages_api:axes" but as far as I know it is not possible to use NBT data in tags.
Example trying to add tetra axes in CraftTweaker:

var axes = <tag:ages_api:axes>;
var tetraAxe = <item:tetra:modular_double>.withTag({
	"double/head_left": "double/basic_axe_left" as string, 
	"double/head_right": "double/butt_right" as string
});
var tetraDoubleAxe = <item:tetra:modular_double>.withTag({
	"double/head_left": "double/basic_axe_left" as string, 
	"double/head_right": "double/basic_axe_right" as string
});

axes.addItems(tetraAxe);
axes.addItems(tetraDoubleAxe);

As tags do not support NBT, it only adds "tetra:modular_double" which could be a pickaxe too.

Describe the solution you'd like
Add a config option for additional axes that support NBT data. If a items contains for NBT then needed thats ok too. So as an example based on CraftTweaker syntax:

<item:tetra:modular_double>.withTag({
	"double/head_left": "double/basic_axe_left" as string, 
	"double/head_right": "double/basic_axe_right" as string
})

should accept:

<item:tetra:modular_double>.withTag({
   "double/basic_axe_right_material": "basic_axe/oak" as string, 
   "double/basic_axe_left_material": "basic_axe/stone" as string, 
   "double/handle": "double/basic_handle" as string, 
   honing_progress: 280 as int, "double/head_left": "double/basic_axe_left" as string, 
   HideFlags: 1 as int, "double/head_right": "double/basic_axe_right" as string, 
   id: "50f3c9f7-04ae-4de1-b5b5-f4c40a486c91" as string, 
   "double/basic_handle_material": "basic_handle/stick" as string})
.withDamage(1)

I am not sure how to do NBT data in configs but it should work somehow as recipes can also contain NBT information:
https://github.com/yanny7/StoneAge/blob/1.16/src/main/resources/data/stone_age/recipes/stone_tablet.json

This could not only be helpful to Tetra but also to Tinkers Construct and other modular tools mods.