This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
I have a block using TileEntitySpecialRenderer and a block model with the following code:
package com.kenneth.kenneths_mod.init.blocks.windmill; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; public class WindmillBlockModel extends ModelBase { //Create the components to the windmill block: public ModelRenderer MainBlock; public ModelRenderer Rotor; public ModelRenderer Blade1; public ModelRenderer Blade2; public ModelRenderer Blade3; public ModelRenderer BladeFan1; public ModelRenderer BladeFan2; public ModelRenderer BladeFan3; //Create the windmill block: public WindmillBlockModel () { this.textureWidth = 260; this.textureHeight = 100; this.BladeFan1 = new ModelRenderer(this, 0, 40); this.BladeFan1.setRotationPoint(8.0F, 8.0F, -8.0F); this.BladeFan1.addBox(20.0F, -18.0F, 0.0F, 108, 16, 1, 0.0F); this.BladeFan2 = new ModelRenderer(this, 0, 40); this.BladeFan2.setRotationPoint(8.0F, 8.0F, -8.0F); this.BladeFan2.addBox(20.0F, -18.0F, 0.0F, 108, 16, 1, 0.0F); this.BladeFan3 = new ModelRenderer(this, 0, 40); this.BladeFan3.setRotationPoint(8.0F, 8.0F, -8.0F); this.BladeFan3.addBox(20.0F, -18.0F, 0.0F, 108, 16, 1, 0.0F); this.Blade1 = new ModelRenderer(this, 0, 32); this.Blade1.setRotationPoint(8.0F, 8.0F, -8.0F); this.Blade1.addBox(0.0F, -2.0F, 0.0F, 128, 4, 1, 0.0F); this.Blade2 = new ModelRenderer(this, 0, 32); this.Blade2.setRotationPoint(8.0F, 8.0F, -8.0F); this.Blade2.addBox(0.0F, -2.0F, 0.0F, 128, 4, 1, 0.0F); this.Blade3 = new ModelRenderer(this, 0, 32); this.Blade3.setRotationPoint(8.0F, 8.0F, -8.0F); this.Blade3.addBox(0.0F, -2.0F, 0.0F, 128, 4, 1, 0.0F); this.Rotor = new ModelRenderer(this, 64, 0); this.Rotor.setRotationPoint(8.0F, 8.0F, 0.0F); this.Rotor.addBox(-2.0F, -2.0F, -16.0F, 4, 4, 16, 0.0F); this.MainBlock = new ModelRenderer(this, 0, 0); this.MainBlock.setRotationPoint(8.0F, 8.0F, 8.0F); this.MainBlock.addBox(-8.0F, -8.0F, -8.0F, 16, 16, 16, 0.0F); } public void renderAll() { //Render the parts to the windmill block: this.BladeFan1.render((float) 0.0625); this.BladeFan2.render((float) 0.0625); this.BladeFan3.render((float) 0.0625); this.Blade1.render((float) 0.0625); this.Blade2.render((float) 0.0625); this.Blade3.render((float) 0.0625); this.Rotor.render((float) 0.0625); this.MainBlock.render((float) 0.0625); //Set the rotations to the windmill blade components: this.Blade1.rotateAngleZ = this.Rotor.rotateAngleZ; this.Blade2.rotateAngleZ = this.Rotor.rotateAngleZ + 90; this.Blade3.rotateAngleZ = this.Rotor.rotateAngleZ + 180; this.BladeFan1.rotateAngleZ = this.Rotor.rotateAngleZ; this.BladeFan1.rotateAngleX = 50; this.BladeFan2.rotateAngleZ = this.Rotor.rotateAngleZ + 90; this.BladeFan2.rotateAngleX = 50; this.BladeFan3.rotateAngleZ = this.Rotor.rotateAngleZ + 180; this.BladeFan3.rotateAngleX = 50; } }
I'm just wondering what the blockstate, model and item json files would look like. Thanks in advanced.
Finds a server that says "No PvP"
*Pushes AFK player off cliff*
Steals Player's Stuff
Admin Can't do anything cause I didn't hit him so "no actual PvP".
I have a block using TileEntitySpecialRenderer and a block model with the following code:
I'm just wondering what the blockstate, model and item json files would look like. Thanks in advanced.
Finds a server that says "No PvP"
*Pushes AFK player off cliff*
Steals Player's Stuff
Admin Can't do anything cause I didn't hit him so "no actual PvP".