« All Events
5 PM – Minecraft Modding with Java – Gamas
January 14, 2023 @ 5:00 pm - 6:00 pm
Today We Did
- We created saturn_bear texture and SaturnBearModel.java via blockbench.
- We started creating SaturnBear entity in IntelliJ but not done
Homework
- Continue with the project to add SaturnBear:
- Copy SaturnHogRenderer.java and create SaturnBearRenderer.java
- change from saturn_hog.png to saturn_bear.png
- change from SaturnHogModel to SaturnBearModel.
- Do not change SaturnHogEntity.
- Inside ModEntities.java add SATURN_BEAR.
- Look at how we did SATURN_HOG
- keep SaturnHogEntity
- change from saturn_hog to saturn_bear
- Inside ClientEventBusSubscriber.java do the following
-
RenderingRegistry.registerEntityRenderingHandler(
ModEntities.SATURN_BEAR.get(), SaturnBearRenderer::new
);
- Inside AYCEssentialsMod.java, inside setup method add one line
-
GlobalEntityTypeAttributes.put(ModEntities.SATURN_BEAR.get(),
SaturnHogEntity.createAttribute().build());