Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

texture cannot be displayed #57

Open
Atara6431 opened this issue Jun 26, 2022 · 5 comments
Open

texture cannot be displayed #57

Atara6431 opened this issue Jun 26, 2022 · 5 comments

Comments

@Atara6431
Copy link

I create a new sword successfully,but the texture cannot be displayed,I put a png in texture/items/sword1.
I also try to only change your test items texture_path
food_items:
example_food_item:
name: test_food # Always use "_" for spaces.
id: 1001 # required
meta: 0 # optional | default is 0
is_potion: false # if true, The animation of eating will be like a potion. | optional default is false
texture_path: newapple # required
max_stack_size: 32 # optional | default is 64
can_always_eat: true # This allows you to always eat the item even if the player is not hungry | optional default is false
food_restore: 4 # use only integer numbers for this value. | required
saturation_restore: 15.0 # use only float numbers for this value. | required
it still can't load the texture in texture/items/newapple
besides,some types like your armor_items can't be loaded,
armor_items:
example_helmet:
name: feather
id: 1003
meta: 0
type: helmet # helmet | chestplate | leggings | boots - required
texture_path: iron_helmet
defense_points: 5 # required
durability: 500 # required
This is your preset. I haven't made any changes,but in the game , the texture of this also can't be displayed
image

@Atara6431
Copy link
Author

You should close the plugin if you don't have time to fix it

@Willtom999
Copy link

did you configure the texture pack? @Atara6431

@DemonicDev
Copy link

in pack\textures make a file called item_texture.json
{

"resource_pack_name": "vanilla",
"texture_name": "atlas.items",
"texture_data": {
	"test_texture": { # (look the api , and there where you give the texture name... put in this line the same)
		"textures": "textures/items/test_texture" #i guess it can be everything, just the path, and in this example it will display the test_texture.png
	},
	"texture2": {
		"textures": "textures/items/OP_Sword" # i guess this will work too... but i have to look, how it is working with the customArmor ^^, i hope i could help :D
	}
	
}

}
@Atara6431
structurepack.zip

@DemonicDev
Copy link

What did i say , it works :D
Bild_2022-10-14_212654297
structurepack_armor_edition.zip
but @Refaltor77 & @Atara6431 there is still the bugs with the models, that means... the armor_items are displayed... but the models of that armor isnt displaying , but i will try to search a way of fixing / implementing that ^^
Bild_2022-10-14_212943949
like you see helmet item has texture but not at my skin :/, so we have to find a way with the models, sadly models work only with set how i know, so you would have to make a whole set of that armor haha ^^'

@DemonicDev
Copy link

btw i would recommend you to make a plugin, to load/ make your custom items, instead of the config.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants