-
Posts
1160 -
Joined
-
Days Won
7
Everything posted by poopoodice
-
also iirc returning null in getEntityTexture is not allowed (will crash)
-
Models does not need to be registered, only renderers And what I mean by a custom player model is basically the copy and paste of the player model with some rotations and translations... anyways here's the code https://bitbucket.org/poopoodice/ava/src/master/src/main/java/poopoodice/ava/misc/AVATPRenderer.java Just want you to know the code is extremely terrible and should not be an example of doing anything. To explain a bit more: I did not replace anything in vanilla rendering (except the layers, you can't "hide" them). Instead, I hide them and render my own model. I hope there's an easier way to do this but I haven't find anything yet. You may find this more helpful
-
I haven't find the best solution yet, but any changes (e.g. rotation) made in the pre event will not work because in render method which gets call after pre event resets model's rotation angle and stuff. What I do is hard coded the rotation and position of the custom player model and render it in post event, and set the bodyparts.showModel to false for the parts that you want to render in post event.
-
You might need an itemstack te renderer
-
Look at vanilla screens, if your gui is a "pure" gui then you only need to make a custom screen (gui) class, register it, and open it using Minecraft.getInstance().displayGuiScreen(gui);
-
What do you mean by "didn't work" ?
-
AttachCapabilitiesEvent to attach the capability to the itemstacks
-
Where to get started creating a custom projectile?
poopoodice replied to thomask's topic in Modder Support
See how BowItem creates an arrow and how fireball entity make explosions when collide To be more specific: Create and register the entity, maybe make a model and renderer (remember to register it) for it if you dont want it to look like a normal item flying in the sky, and summon it with your item. -
Where to get started creating a custom projectile?
poopoodice replied to thomask's topic in Modder Support
that sounds like what exactly fireball does -
Where to get started creating a custom projectile?
poopoodice replied to thomask's topic in Modder Support
depend on what kind of "new type of projectile" you want to create, arrow and fireball can be best examples. -
Register this attribute https://github.com/denyoongi/supernova/blob/f5d2266aae29e75cab510790fcec1f7fbdeee550/src/main/java/com/jiminsdick/supernova/entities/AngelEntity.java#L64
-
any error msgs?
-
Indeed
-
These no longer exist
-
Localization with Server Only Mods
poopoodice replied to Caffeinated Pinkie's topic in Modder Support
Hold on, why do you need the texts being translated on server? -
first blit should be enough
-
this is from a previous post on the forum, but apparently it's from Mekanism ๐: //Some blit param namings , thank you Mekanism //blit(int x, int y, int textureX, int textureY, int width, int height); //blit(int x, int y, TextureAtlasSprite icon, int width, int height); //blit(int x, int y, int textureX, int textureY, int width, int height, int textureWidth, int textureHeight); //blit(int x, int y, int zLevel, float textureX, float textureY, int width, int height, int textureWidth, int textureHeight); //blit(int x, int y, int desiredWidth, int desiredHeight, int textureX, int textureY, int width, int height, int textureWidth, int textureHeight); //innerBlit(int x, int endX, int y, int endY, int zLevel, int width, int height, float textureX, float textureY, int textureWidth, int textureHeight);
-
[1.15.2] Make server summon entity based on client
poopoodice replied to TallYate's topic in Modder Support
Post the log, and have you register the packet? -
Detecting if a player is wearing specific armor [1.15.2]
poopoodice replied to Boston54's topic in Modder Support
Depends on what you want to do, but you should be able to do things in onArmorTick in ur armour class -
if ur entity extends AgeableEntity yes they grow : )