Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[vF]rufus

Members
  • Posts

    9
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

[vF]rufus's Achievements

Tree Puncher

Tree Puncher (2/8)

1

Reputation

  1. I'm modding from 1 mounth i think And thanks
  2. Can you post some example code, because i'm new to modding ?
  3. Hi, can anyone help me with that ? I really want and i search very long time, but nothing found .. So i have glass and i want to connect each other like Tinker's Construct clear glass. Thanks.
  4. Thank you very much ! Now i can made lamps Lock.
  5. Ok, but i maked to lamps : GreenLampON and GreenLampOFF. It works perfect but the texture isn't updating And also in MainClass where i usually put the material of a block it wants boolean... When i click the fix thing it puts "false" in the brackets. And one last question. All of this needs to be in GreenLamp class right ? Then what setBlockName should i put and the texture name ?
  6. Ok, but when its ones activated then stays in that texture .. For testing i putted 3 various textures. Here is the code : package net.rufus.mb.blocks; import java.util.Random; import net.minecraft.block.Block; import net.minecraft.block.BlockRedstoneLight; import net.minecraft.init.Blocks; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import net.rufus.mb.MainClass; public class GreenLamp extends BlockRedstoneLight { private boolean field_150171_a; public GreenLamp(boolean p_i45421_1_) { super(p_i45421_1_); setCreativeTab(MainClass.MoreBlocks); setBlockName("GreenLamp"); setBlockTextureName(MainClass.modid + ":GreenLampIdle"); } public void onBlockAdded(World p_149726_1_, int p_149726_2_, int p_149726_3_, int p_149726_4_) { if (!p_149726_1_.isRemote) { if (this.field_150171_a && !p_149726_1_.isBlockIndirectlyGettingPowered(p_149726_2_, p_149726_3_, p_149726_4_)) { p_149726_1_.scheduleBlockUpdate(p_149726_2_, p_149726_3_, p_149726_4_, this, 4); } else if (!this.field_150171_a && p_149726_1_.isBlockIndirectlyGettingPowered(p_149726_2_, p_149726_3_, p_149726_4_)) { p_149726_1_.setBlock(p_149726_2_, p_149726_3_, p_149726_4_, MainClass.BlueBrick, 0, 2); } } } public void onNeighborBlockChange(World p_149695_1_, int p_149695_2_, int p_149695_3_, int p_149695_4_, Block p_149695_5_) { if (!p_149695_1_.isRemote) { if (this.field_150171_a && !p_149695_1_.isBlockIndirectlyGettingPowered(p_149695_2_, p_149695_3_, p_149695_4_)) { p_149695_1_.scheduleBlockUpdate(p_149695_2_, p_149695_3_, p_149695_4_, this, 4); } else if (!this.field_150171_a && p_149695_1_.isBlockIndirectlyGettingPowered(p_149695_2_, p_149695_3_, p_149695_4_)) { p_149695_1_.setBlock(p_149695_2_, p_149695_3_, p_149695_4_, MainClass.RedBrick, 0, 2); } } } public void updateTick(World p_149674_1_, int p_149674_2_, int p_149674_3_, int p_149674_4_, Random p_149674_5_) { if (!p_149674_1_.isRemote && this.field_150171_a && !p_149674_1_.isBlockIndirectlyGettingPowered(p_149674_2_, p_149674_3_, p_149674_4_)) { p_149674_1_.setBlock(p_149674_2_, p_149674_3_, p_149674_4_, MainClass.GreenLamp, 0, 2); } } }
  7. Sure Here is my MainClass And here is my GreenLamp class
  8. Hello, i'm new to modding and i want to make my custom textured redstone lamp. From my knowledge i know that the blocks needs extending from other if you want to add similar. I get the lamp working, but when activate it, she puts the original redstone lamp texture and dont use mine. So can anyone help me ?
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.