Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[vF]rufus

Members
  • Joined

  • Last visited

Everything posted by [vF]rufus

  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. What import are you using ?
  4. 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.
  5. Thank you very much ! Now i can made lamps Lock.
  6. 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 ?
  7. 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); } } }
  8. Sure Here is my MainClass And here is my GreenLamp class
  9. 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 ?

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.