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.

Featured Replies

Posted

I have built a custom torch type by extending the vanilla TorchBlock class (I am aware I will also need to handle the WallTorchBlock class at some point),  The issue I am quite literally running into is that the torch blocks are solid.  They are not full blocks, rather their hitbox matches their model.  I am just confused why the blocks seem to have taken on a new property when I haven't made any changes to their base class as far as I can tell.  Is there an additional step I am not seeing here?

 

I pulled the getCollisonBoundingBoxFromPool() method from an old forum post here, but I doubt it is still viable given the age of that post.

 

package djknarnia.abyssal.block;

import net.minecraft.block.TorchBlock;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.world.World;


public class FlareBlock extends TorchBlock {

	public FlareBlock(Properties properties) {
		super(properties);
	}
	
  /*
	public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int wx, int wy, int wz) {
		return null;
	}
	*/
}

 

https://github.com/DJKnarnia/Abyssal-Minecraft-Mod

 

Edited by DJKnarnia
Problem was solved.

  • Author

I actually appear to have solved the problem.  The issue was the material I had set on the block when registering them.  I copied over the properties of the torch block directly and the block began behaving properly.

 

BlockList.flare = (FlareBlock) new FlareBlock(TorchBlock.Properties.from(Blocks.TORCH)).setRegistryName(location("flare")),

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

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.