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

[1.12.2] Use resource packs when creating items #277

Open
zfms4188 opened this issue Sep 29, 2023 · 0 comments
Open

[1.12.2] Use resource packs when creating items #277

zfms4188 opened this issue Sep 29, 2023 · 0 comments

Comments

@zfms4188
Copy link

`#loader contenttweaker
import mods.contenttweaker.CreativeTab;
import mods.contenttweaker.VanillaFactory;
import mods.contenttweaker.Item;
import mods.contenttweaker.ResourceLocation;

VanillaFactory.createCreativeTab("other", item:minecraft:experience_bottle).register();

function cjwp(name as string) {
val item = VanillaFactory.createItem(name) as Item;
item.setCreativeTab(creativetab:other);
var path = ResourceLocation.create("contenttweaker:items/i");
item.textureLocation = path;
item.register();
}

for a in 0 .. 30 {
cjwp("i" ~ a);
}`
It doesn't work properly and textures are missing after entering the game

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

1 participant