
Sakuya is my waifu
Members-
Posts
40 -
Joined
-
Last visited
Everything posted by Sakuya is my waifu
-
[1.8] Rendering Entity Model
Sakuya is my waifu replied to Sakuya is my waifu's topic in Modder Support
https://lh3.googleusercontent.com/wrALcI9ZIIBfh5g9ReH1z4G2aEluOsHuJs1CFK-KFt0EAOElV7Hxy_Ftf1VsfOIePZCZNSqKft5W-b2Ci8TPozz4v9pqCDdu5fNlLhbB3sZLkp45puieq1Hhr37ySnwplAceGRVAe1Vw4qnT60XVAkQP-vwFpS3kgJNfqGj-dMGuNzvuFA13uae8FB8v4CTjz-qXBnuKCCS7EV6x8-2D_Ka_HvP3VlHekRHhIUO3ROpxpm-OPFFHk8ywQNK_dO-yOtrIJqA8WE_EO4Kw5Nvr4zH5qAWRx4XrqnyrogDG-nB_Ia9kIckkusbfyvIQ4fj2cM86NSPvYjEThgviEZkvGYtNhklIkuLKUwiDizZdColj2glZ7i81EA0dx_AQckBAsDMFlt8bnCnU-8fsCs2G_t-7cYn4aMi8NEJs-5RB5TiAJk8pAUMHOIKI0QyQFky47_plP4R8GnVL2Jg949VGw8cG0PGOApqHR8SCrlD20mF4W6gkts3KqzEKsOOD-DClAddaN2M1Xz3ru-RoIMKX50tpbI-J_bS8mOWWombREkw=w960-h540-no[/img] I won't even bother reading rest of your reply. good bye sir. -
[1.8] Rendering Entity Model
Sakuya is my waifu replied to Sakuya is my waifu's topic in Modder Support
so in client proxy: public class ClientProxy extends CommonProxy{ @Override public void registerRenders(){ Es.registerRenders(); } } and in main entity class: public static void registerRenders() { RenderingRegistry.registerEntityRenderingHandler(EntitySoul.class, new RenderSoul(Minecraft.getMinecraft().getRenderManager())); } but it tells me to add arguments to match RenderSoul if i do so, game crashes saying "Rendering entity in world java.lang.NullPointerException: Rendering entity in world" -
[1.8] Rendering Entity Model
Sakuya is my waifu replied to Sakuya is my waifu's topic in Modder Support
forgot to put main and renderer class: public class RenderSoul extends RenderLiving{ private static final ResourceLocation texture = new ResourceLocation(Reference.MOD_ID + ":textures/entity/soul.png"); public RenderSoul(RenderManager p_i46153_1_, ModelBase p_i46153_2_, float p_i46153_3_) { super(p_i46153_1_, p_i46153_2_, p_i46153_3_); } protected ResourceLocation getEntityTexture(EntitySoul entity){ return texture; } protected ResourceLocation getEntityTexture(Entity entity){ return this.getEntityTexture((EntitySoul)entity); } } and in my main mod class @EventHandler public void preInit(FMLPreInitializationEvent event) { Es.registerEntity(); } i like creating seperate classes and not putting everything in main mod class... this is how it looks right now : https://goo.gl/photos/1XgrHdPZizAVDeBa8 -
[1.8] Rendering Entity Model
Sakuya is my waifu replied to Sakuya is my waifu's topic in Modder Support
Good idea for a shrine, probably going to use that, thanks and code wizard too, a final boss which will crash your game... or or make your screen "crack" and teleport you to the matix dimension... thanks 'bruh Model: public class ModelSoul extends ModelBase{ public ModelRenderer core = new ModelRenderer(this, 0, 0); public ModelRenderer outercore; public ModelRenderer aura; public ModelSoul(){ textureWidth = 64; textureHeight = 64; this.core = new ModelRenderer(this, 32, 1); this.core.addBox(-2F, -2F, -2F, 4, 4, 4); this.core.setRotationPoint(0F, 16F, 0F); this.outercore = new ModelRenderer(this, 0 ,16); this.outercore.addBox(-3F, -3F, -3F, 6, 6, 6); this.outercore.setRotationPoint(0F, 16F, 0F); this.aura = new ModelRenderer(this, 0, 0); this.aura.addBox(-4F, -4F, -4F, 8, 8, ; this.aura.setRotationPoint(0F, 16F, 0F); } public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5){ this.setRotationAngles(f, f1, f2, f3, f4, f5, entity); this.core.render(f5); this.aura.render(f5); this.outercore.render(f5); } public void setRotationAngles(Entity entity, float f, float f1, float f2, float f3, float f4, float f5){ super.setRotationAngles(f, f1, f2, f3, f4, f5, entity); } } main entity class public class Es { public static void registerEntity() { createEntity(EntitySoul.class, "Soul", 0xF3F0CD, 0x055D61); } public static void createEntity(Class enityClass, String entityName, int solidColor, int spotColor){ int randomID = EntityRegistry.findGlobalUniqueEntityId(); EntityRegistry.registerGlobalEntityID(enityClass, entityName, randomID); EntityRegistry.registerModEntity(enityClass, entityName, randomID, neko.Kudo.Kudo.instance, 64, 1, true); EntityRegistry.addSpawn(enityClass, 2, 0, 1, EnumCreatureType.CREATURE, BiomeGenBase.forest); createEgg(randomID, solidColor, spotColor); } private static void createEgg(int randomID, int solidColor, int spotColor){ EntityList.entityEggs.put(Integer.valueOf(randomID), new EntityList.EntityEggInfo(randomID, solidColor, spotColor)); } } entity itself: public class EntitySoul extends EntityMob{ public EntitySoul(World worldIn) { super(worldIn); this.setSize(1.0F, 1.0F); } } client proxy: public class ClientProxy extends CommonProxy{ @Override public void registerRenders(){ Bs.registerRenders(); Is.registerRenders(); Es.registerEntity(); } } server proxy: public class CommonProxy { public void registerRenders(){ } } -
So couple days ago i created an entity with model and everything, worked and rendered just fine but today it just shows a white box... wat ._. any ideas? ~thanks
-
so whenever i try to aim for east or west bounds for a block it doesnt show bounding box and is unbreakable, it works fine with north and south... any ideas? Float f = 0.0625F; setBlockBounds(4 * f, 4 * f, 12 * f, 12 * f, 1.0F, 4 * f); ~thanks
-
I've never seen myself, but you can check ender dragons hitboxes ingame using F3+B. but smaller mobs don't have multiple hitboxes https://goo.gl/photos/g1nDBbodVN52gJiA7
-
So, I've created my entity class: package neko.Kudo.entity.passive; import java.util.Calendar; import net.minecraft.block.Block; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.ai.EntityAIBase; import net.minecraft.entity.ai.EntityAIHurtByTarget; import net.minecraft.entity.ai.EntityAILookIdle; import net.minecraft.entity.ai.EntityAIMoveTowardsRestriction; import net.minecraft.entity.ai.EntityAINearestAttackableTarget; import net.minecraft.entity.ai.EntityAIWander; import net.minecraft.entity.ai.EntityAIWatchClosest; import net.minecraft.entity.monster.EntityBlaze; import net.minecraft.entity.monster.EntityMob; import net.minecraft.entity.passive.EntityAmbientCreature; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.projectile.EntitySmallFireball; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.util.BlockPos; import net.minecraft.util.DamageSource; import net.minecraft.util.EnumParticleTypes; import net.minecraft.util.MathHelper; import net.minecraft.world.World; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class EntityMeep extends Entity{ public EntityMeep(World worldIn, double x, double y, double z){ super(worldIn); this.setPosition(x, y, z); } @Override protected void entityInit(){ this.getDataWatcher().addObjectByDataType(10, 5); } @Override protected void readEntityFromNBT(NBTTagCompound tagCompund) { } @Override protected void writeEntityToNBT(NBTTagCompound tagCompound) { } } and renderer: public class RenderMeep extends Render{ private static final ResourceLocation meeptexture = new ResourceLocation("textures/entity/meep/meep.png"); public RenderMeep(RenderManager rendermanager, ModelBase model, float shadowsize) { super(rendermanager); } protected ResourceLocation getEntityTexture(EntityMeep entity) { return meeptexture; } protected ResourceLocation getEntityTexture(Entity entity){ return this.getEntityTexture((EntityMeep)entity); } } and model: public class ModelMeep extends ModelBase{ public ModelRenderer core = new ModelRenderer(this, 0, 0); public ModelRenderer outercore; public ModelRenderer aura; public ModelMeep(){ textureWidth = 64; textureHeight = 64; this.core = new ModelRenderer(this, 0, 0); this.core.addBox(-4F, -4F, -4F, 8, 8, ; this.core.setRotationPoint(0F, 16F, 0F); this.outercore = new ModelRenderer(this, 0, 16); this.outercore.addBox(-3F, -3F, -3F, 6, 6, 6); this.outercore.setRotationPoint(0F, 16F, 0F); this.aura = new ModelRenderer(this, 32, 0); this.aura.addBox(-2F, -2F, -2F, 4, 4, 4); this.aura.setRotationPoint(0F, 16F, 0F); } public void render(Entity entity, float time, float limbs, float p_78088_4_, float heady, float headx, float ytrans){ this.setRotationAngles(time, limbs, p_78088_4_, heady, headx, ytrans, entity); this.core.render(ytrans); this.outercore.render(ytrans); this.aura.render(ytrans); } public void setRotationAngles(float time, float limbs, float p_78087_3_, float heady, float headx, float p_78087_6_, Entity entity){ float f6 = p_78087_3_ * (float)Math.PI * -0.1F; int i; for (i = 0; i < 4; ++i) { this.aura.rotationPointY = -2.0F + MathHelper.cos(((float)(i * 2) + p_78087_3_) * 0.25F); this.aura.rotationPointX = MathHelper.cos(f6) * 9.0F; this.aura.rotationPointZ = MathHelper.sin(f6) * 9.0F; ++f6; } f6 = ((float)Math.PI / 4F) + p_78087_3_ * (float)Math.PI * 0.03F; for (i = 4; i < 8; ++i) { this.aura.rotationPointY = 2.0F + MathHelper.cos(((float)(i * 2) + p_78087_3_) * 0.25F); this.aura.rotationPointX = MathHelper.cos(f6) * 7.0F; this.aura.rotationPointZ = MathHelper.sin(f6) * 7.0F; ++f6; } f6 = 0.47123894F + p_78087_3_ * (float)Math.PI * -0.05F; for (i = 8; i < 12; ++i) { this.aura.rotationPointY = 11.0F + MathHelper.cos(((float)i * 1.5F + p_78087_3_) * 0.5F); this.aura.rotationPointX = MathHelper.cos(f6) * 5.0F; this.aura.rotationPointZ = MathHelper.sin(f6) * 5.0F; ++f6; } } } now what ._.
-
i want to create an entity without any ai or tasks, i want it just to (awkwardly) stand i have never done entities(except model) so can anyone tell me which classes i need, cause im really confused after looking into vanilla files...
-
[1.8][SOLVED] TileEntitiy + JSON
Sakuya is my waifu replied to Sakuya is my waifu's topic in Modder Support
Oh my I rewrote everything and somehow got it to work ._. think it was blockstate causing it... idk im happy now -
[1.8][SOLVED] TileEntitiy + JSON
Sakuya is my waifu replied to Sakuya is my waifu's topic in Modder Support
both of those files are named "distillery" and my mod id is lowercase public static final String MOD_ID = "kudo"; I'll try to just extend it to block... -
[1.8][SOLVED] TileEntitiy + JSON
Sakuya is my waifu replied to Sakuya is my waifu's topic in Modder Support
assets/kudo/blockstates : { "variants": { "facing=north": { "model": "kudo:distillery" }, "facing=east": { "model": "kudo:distillery", "y": 90 }, "facing=south": { "model": "kudo:distillery", "y": 180 }, "facing=west": { "model": "kudo:distillery", "y": 270 } } } assets/kudo/models/block : { "textures": { "0": "kudo:blocks/distillery", "1": "kudo:blocks/distillery_top", "2": "blocks/iron_bars" }, "elements": [ { "name": "bot", "from": [ 0.0, 0.0, 0.0 ], "to": [ 16.0, 2.0, 16.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 14.0, 16.0, 16.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 14.0, 16.0, 16.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 14.0, 16.0, 16.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 14.0, 16.0, 16.0 ] }, "up": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] }, "down": { "texture": "#1", "uv": [ 3.0, 3.0, 13.0, 13.0 ] } } }, { "name": "corner2", "from": [ 2.0, 2.0, 0.0 ], "to": [ 14.0, 10.0, 3.0 ], "faces": { "north": { "texture": "#0", "uv": [ 2.0, 6.0, 14.0, 14.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "south": { "texture": "#0", "uv": [ 2.0, 6.0, 14.0, 14.0 ] }, "west": { "texture": "#0", "uv": [ 1.0, 0.0, 0.0, 1.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] } } }, { "name": "corner3", "from": [ 0.0, 2.0, 0.0 ], "to": [ 2.0, 10.0, 16.0 ], "faces": { "north": { "texture": "#0", "uv": [ 14.0, 6.0, 16.0, 14.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 6.0, 16.0, 14.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 6.0, 2.0, 14.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 6.0, 16.0, 14.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] } } }, { "name": "corner4", "from": [ 14.0, 2.0, 0.0 ], "to": [ 16.0, 10.0, 16.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 6.0, 2.0, 14.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 7.0, 16.0, 14.0 ] }, "south": { "texture": "#0", "uv": [ 14.0, 6.0, 16.0, 14.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 6.0, 16.0, 14.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 1.0 ] } } }, { "name": "mid", "from": [ 0.0, 10.0, 0.0 ], "to": [ 16.0, 12.0, 16.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 2.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 2.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 2.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 2.0 ] }, "up": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] }, "down": { "texture": "#1", "uv": [ 3.0, 3.0, 13.0, 13.0 ] } } }, { "name": "bar", "from": [ 3.2000000029802322, 2.0, 14.50000000745058 ], "to": [ 4.200000002980232, 10.0, 15.50000000745058 ], "faces": { "north": { "texture": "#2", "uv": [ 2.0, 0.0, 4.0, 16.0 ] }, "east": { "texture": "#2", "uv": [ 2.0, 0.0, 4.0, 16.0 ] }, "south": { "texture": "#2", "uv": [ 2.0, 0.0, 4.0, 16.0 ] }, "west": { "texture": "#2", "uv": [ 12.0, 0.0, 14.0, 16.0 ] }, "up": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "down": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] } } }, { "name": "bar2", "from": [ 5.300000004470348, 2.0, 14.50000000745058 ], "to": [ 6.300000004470348, 10.0, 15.50000000745058 ], "faces": { "north": { "texture": "#2", "uv": [ 12.0, 0.0, 14.0, 16.0 ] }, "east": { "texture": "#2", "uv": [ 12.0, 0.0, 14.0, 16.0 ] }, "south": { "texture": "#2", "uv": [ 2.0, 16.0, 4.0, 0.0 ] }, "west": { "texture": "#2", "uv": [ 2.0, 0.0, 4.0, 16.0 ] }, "up": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "down": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] } } }, { "name": "bar3", "from": [ 7.500000007450581, 2.0, 14.50000000745058 ], "to": [ 8.50000000745058, 10.0, 15.50000000745058 ], "faces": { "north": { "texture": "#2", "uv": [ 2.0, 0.0, 4.0, 16.0 ] }, "east": { "texture": "#2", "uv": [ 7.0, 0.0, 9.0, 16.0 ] }, "south": { "texture": "#2", "uv": [ 7.0, 0.0, 9.0, 16.0 ] }, "west": { "texture": "#2", "uv": [ 12.0, 0.0, 14.0, 16.0 ] }, "up": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "down": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] } } }, { "name": "bar4", "from": [ 9.700000010430813, 2.0, 14.50000000745058 ], "to": [ 10.700000010430813, 10.0, 15.50000000745058 ], "faces": { "north": { "texture": "#2", "uv": [ 7.0, 0.0, 9.0, 16.0 ] }, "east": { "texture": "#2", "uv": [ 2.0, 0.0, 4.0, 16.0 ] }, "south": { "texture": "#2", "uv": [ 12.0, 16.0, 14.0, 0.0 ] }, "west": { "texture": "#2", "uv": [ 4.0, 0.0, 2.0, 16.0 ] }, "up": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "down": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] } } }, { "name": "bar5", "from": [ 11.800000011920929, 2.0, 14.50000000745058 ], "to": [ 12.800000011920929, 10.0, 15.50000000745058 ], "faces": { "north": { "texture": "#2", "uv": [ 7.0, 0.0, 9.0, 16.0 ] }, "east": { "texture": "#2", "uv": [ 7.0, 0.0, 9.0, 16.0 ] }, "south": { "texture": "#2", "uv": [ 2.0, 16.0, 4.0, 0.0 ] }, "west": { "texture": "#2", "uv": [ 7.0, 16.0, 9.0, 0.0 ] }, "up": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "down": { "texture": "#2", "uv": [ 0.0, 0.0, 1.0, 1.0 ] } } }, { "name": "barc1", "from": [ 10.700000025331974, 3.5000000074505806, 14.50000000745058 ], "to": [ 11.80000002682209, 4.500000007450581, 15.50000000745058 ], "faces": { "north": { "texture": "#2", "uv": [ 12.0, 6.0, 14.0, 8.0 ] }, "east": { "texture": "#2", "uv": [ 7.0, 0.0, 9.0, 2.0 ] }, "south": { "texture": "#2", "uv": [ 2.0, 0.0, 4.0, 2.0 ] }, "west": { "texture": "#2", "uv": [ 7.0, 6.0, 9.0, 16.0 ] }, "up": { "texture": "#2", "uv": [ 2.0, 7.0, 4.0000000014901165, 9.0 ] }, "down": { "texture": "#2", "uv": [ 5.0, 2.0, 7.0000000014901165, 4.0 ] } } }, { "name": "barc2", "from": [ 6.300000034272671, 4.499999992549419, 14.50000000745058 ], "to": [ 7.500000037252903, 5.499999992549419, 15.50000000745058 ], "faces": { "north": { "texture": "#2", "uv": [ 12.0, 6.0, 14.0, 8.0 ] }, "east": { "texture": "#2", "uv": [ 7.0, 0.0, 9.0, 2.0 ] }, "south": { "texture": "#2", "uv": [ 6.0, 2.0, 8.0, 4.0 ] }, "west": { "texture": "#2", "uv": [ 8.0, 12.0, 10.0, 14.0 ] }, "up": { "texture": "#2", "uv": [ 2.0, 7.0, 4.0000000014901165, 9.0 ] }, "down": { "texture": "#2", "uv": [ 7.0, 8.0, 9.000000001490116, 10.0 ] } } }, { "name": "barc3", "from": [ 2.0000000447034836, 3.4999999925494194, 14.50000000745058 ], "to": [ 3.200000047683716, 4.499999992549419, 15.50000000745058 ], "faces": { "north": { "texture": "#2", "uv": [ 12.0, 6.0, 14.0, 8.0 ] }, "east": { "texture": "#2", "uv": [ 7.0, 0.0, 9.0, 2.0 ] }, "south": { "texture": "#2", "uv": [ 12.0, 5.0, 14.0, 7.0 ] }, "west": { "texture": "#2", "uv": [ 8.0, 12.0, 10.0, 14.0 ] }, "up": { "texture": "#2", "uv": [ 2.0, 7.0, 4.0000000014901165, 9.0 ] }, "down": { "texture": "#2", "uv": [ 7.0, 8.0, 9.000000001490116, 10.0 ] } } }, { "name": "barc4", "from": [ 4.200000047683716, 7.999999985098839, 14.50000000745058 ], "to": [ 5.300000049173832, 8.999999985098839, 15.50000000745058 ], "faces": { "north": { "texture": "#2", "uv": [ 12.0, 6.0, 14.0, 8.0 ] }, "east": { "texture": "#2", "uv": [ 7.0, 0.0, 9.0, 2.0 ] }, "south": { "texture": "#2", "uv": [ 12.0, 5.0, 14.0, 7.0 ] }, "west": { "texture": "#2", "uv": [ 8.0, 12.0, 10.0, 14.0 ] }, "up": { "texture": "#2", "uv": [ 2.0, 7.0, 4.0000000014901165, 9.0 ] }, "down": { "texture": "#2", "uv": [ 7.0, 8.0, 9.000000001490116, 10.0 ] } } }, { "name": "barc5", "from": [ 8.500000037252903, 6.999999985098839, 14.50000000745058 ], "to": [ 9.700000040233135, 7.999999985098839, 15.50000000745058 ], "faces": { "north": { "texture": "#2", "uv": [ 12.0, 6.0, 14.0, 8.0 ] }, "east": { "texture": "#2", "uv": [ 7.0, 5.0, 9.0, 7.0 ] }, "south": { "texture": "#2", "uv": [ 0.0, 7.0, 2.0, 9.0 ] }, "west": { "texture": "#2", "uv": [ 7.0, 12.0, 9.0, 14.0 ] }, "up": { "texture": "#2", "uv": [ 2.0, 7.0, 4.0000000014901165, 9.0 ] }, "down": { "texture": "#2", "uv": [ 7.0, 8.0, 9.000000001490116, 10.0 ] } } }, { "name": "barc6", "from": [ 12.80000002682209, 6.0, 14.50000000745058 ], "to": [ 14.000000029802322, 7.0, 15.50000000745058 ], "faces": { "north": { "texture": "#2", "uv": [ 12.0, 6.0, 14.0, 8.0 ] }, "east": { "texture": "#2", "uv": [ 7.0, 0.0, 9.0, 2.0 ] }, "south": { "texture": "#2", "uv": [ 13.0, 7.0, 15.0, 9.0 ] }, "west": { "texture": "#2", "uv": [ 7.0, 6.0, 9.0, 8.0 ] }, "up": { "texture": "#2", "uv": [ 2.0, 7.0, 4.0000000014901165, 9.0 ] }, "down": { "texture": "#2", "uv": [ 5.0, 2.0, 7.0000000014901165, 4.0 ] } } }, { "name": "top1", "from": [ 2.0, 12.0, 2.0 ], "to": [ 14.0, 14.0, 14.0 ], "faces": { "north": { "texture": "#0", "uv": [ 2.0, 1.0, 14.0, 3.0 ] }, "east": { "texture": "#0", "uv": [ 3.0, 4.0, 15.0, 6.0 ] }, "south": { "texture": "#0", "uv": [ 2.0, 7.0, 14.0, 9.0 ] }, "west": { "texture": "#0", "uv": [ 1.0, 7.0, 13.0, 9.0 ] }, "up": { "texture": "#0", "uv": [ 2.0, 2.0, 14.0, 14.0 ] }, "down": { "texture": "#0", "uv": [ 2.0, 2.0, 14.0, 14.0 ] } } }, { "name": "top2", "from": [ 4.0, 14.0, 4.0 ], "to": [ 12.0, 16.0, 12.0 ], "faces": { "north": { "texture": "#0", "uv": [ 1.0, 12.0, 9.0, 14.0 ] }, "east": { "texture": "#0", "uv": [ 6.0, 1.0, 14.0, 3.0 ] }, "south": { "texture": "#0", "uv": [ 6.0, 11.0, 14.0, 13.0 ] }, "west": { "texture": "#0", "uv": [ 2.0, 7.0, 10.0, 9.0 ] }, "up": { "texture": "#1", "uv": [ 5.0, 5.0, 11.000000000000004, 11.000000000000004 ] }, "down": { "texture": "#0", "uv": [ 4.0, 4.0, 12.0, 12.0 ] } } } ] } model work fine on simple block... -
[1.8][SOLVED] TileEntitiy + JSON
Sakuya is my waifu replied to Sakuya is my waifu's topic in Modder Support
public class ClientProxy extends CommonProxy{ @Override public void registerRenders(){ Bs.registerRenders(); } public class CommonProxy { public void registerRenders(){ } @EventHandler public void Init(FMLInitializationEvent event) { proxy.registerRenders(); -
[1.8][SOLVED] TileEntitiy + JSON
Sakuya is my waifu replied to Sakuya is my waifu's topic in Modder Support
public static void registerRenders(){ registerRender(distillery); } -
[1.8][SOLVED] TileEntitiy + JSON
Sakuya is my waifu replied to Sakuya is my waifu's topic in Modder Support
public class Bs { public static Block distillery; public static void init(){ distillery = new BlockDistillery(); } public static void register(){ GameRegistry.registerBlock(distillery, distillery.getUnlocalizedName().substring(5)); } public static void registerRenders(){ registerRender(distillery); } public static void registerRender(Block block){ Item item = Item.getItemFromBlock(block); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MOD_ID + ":" + item.getUnlocalizedName().substring(5), "inventory")); } } @EventHandler public void preInit(FMLPreInitializationEvent event) { Te.register(); Bs.init(); Bs.register(); } ... any ideas? -
[1.8][SOLVED] TileEntitiy + JSON
Sakuya is my waifu replied to Sakuya is my waifu's topic in Modder Support
this is how i registered my tile entity: public class Te { public static void register() { GameRegistry.registerTileEntity(TileEntityDistillery.class, Reference.MOD_ID); } } @EventHandler public void preInit(FMLPreInitializationEvent event) { Te.register(); } and this is my block class: public class BlockDistillery extends BlockContainer{ public BlockDistillery() { super(Material.rock); setUnlocalizedName("distillery"); setCreativeTab(Kudo.tabKudo); } @Override public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumFacing side, float hitX, float hitY, float hitZ) { if (worldIn.isRemote) return true; playerIn.openGui(Kudo.instance, GUIHandler.getGuiID(), worldIn, pos.getX(), pos.getY(), pos.getZ()); return true; } @Override public boolean isOpaqueCube() { return false; } @Override public boolean isFullCube() { return false; } @SideOnly(Side.CLIENT) public EnumWorldBlockLayer getBlockLayer() { return EnumWorldBlockLayer.CUTOUT; } @Override public int getRenderType() { return 3; } @Override public TileEntity createNewTileEntity(World worldIn, int meta){ return new TileEntityDistillery(); } } -
so i have a block which has TileEntity, it renders as an invisible block. with @Override public int getRenderType() { return 3; } it renders as an untextured block but i want it to render model of my json file... can anyone help? ~thanks
-
and that mod looks absolutely amazing ; - ; time to give up on my dreams 。:゚(。ノω\。)゚・。
-
So why don't create a new lightmap instead of resizing it? idk spent all night searching for a better solution ._. what i'm trying to create is a prism, so when light beam of beacon (or something like that) passes through it refracts and shines with colors of spectre.
-
Nice... soo if i dig around and change color of lightmap texture i can create colored lights right?
-
Modern JVMs love short-lived objects. The young generation (newly created objects) garbage collectors are very efficient at getting rid of objects, so it might even be faster (because you get less cache-misses) to use a new object every time. In the end both have probably comparable performance and it doesn't matter. So it doesnt matter if i use something like this: public static final int fuel = 2; instead of original, right?
-
so can anyone tell me how light is "created" in minecraft? how does world get illuminated, cause its not sun ofc ._. and is it possible to achieve complete darkness? And Notch said, "Let there be light," and there was light. or was it?
-
derrrp ._. just found containerfurnace class *brainfarts* gonna play around with that ; - ;
-
so for example if you change up any of those (input, output, fuel) you should have more slots right? but their positions? i don't quite understand where actual slot positions are defined... first time making tile entity with functional container and i'm like (゚ー゚
-
so i was digging in TileEntityFurnace class and at the top you can see something like this: private static final int[] slotsTop = new int[] {0}; private static final int[] slotsBottom = new int[] {2, 1}; private static final int[] slotsSides = new int[] {1}; what does those numbers mean? ~thanks