Jump to content

Can not get BEWLR working


Cyanki

Recommended Posts

I want to make a weapon that have custom attack animation so I decide to use BEWLR but it wont work for some reason:

the   " System.out.println("Show your code");" in class BEWLR wont print

Item name ExoSickle

Registration:

Quote
public static RegistryObject<Item> exosickle_item = ITEMS.register("exo_sickle",() -> new ExoSickle(new Item.Properties().tab(TAB)));

 

Item class:

Quote
public class ExoSickle extends Item {
    public ExoSickle(Properties p_41383_) {
        super(p_41383_);
    }
    @Override
    public void initializeClient(Consumer<IItemRenderProperties> consumer)
    {
        consumer.accept(new IItemRenderProperties()
        {
            @Override
            public BlockEntityWithoutLevelRenderer getItemStackRenderer()
            {
                return new ExoSickleRender();
            }
        });
    }
}

 

BEWLR?

Quote
public class ExoSickleRender extends BlockEntityWithoutLevelRenderer {
    public ExoSickleRender()
    {
        super(Minecraft.getInstance().getBlockEntityRenderDispatcher(), Minecraft.getInstance().getEntityModels());
    }
    @Override
    public void renderByItem(ItemStack stack, ItemTransforms.TransformType transform, PoseStack poseStack, MultiBufferSource buffer, int light, int overlay)
    {
        System.out.println("Show your code");
    }
}

 

 

Edited by Cyanki
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.