Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.16.1] Block RenderType
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 1
Luis_ST

[1.16.1] Block RenderType

By Luis_ST, December 5, 2020 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

Luis_ST    0

Luis_ST

Luis_ST    0

  • Creeper Killer
  • Luis_ST
  • Members
  • 0
  • 122 posts
Posted December 5, 2020 (edited)

I creat a Glass Block which is called Tinted Glass so my problem is the RenderType the block is Translucent but i dont get normal black outlines

Look there a can't upload my picture of the in game block:

https://drive.google.com/file/d/1KNW5KPiNZbml95sNRnAZHUpXPBndSnWm/view?usp=sharing

 

This is the code to set it Translucent :

	private void setup(final FMLCommonSetupEvent event) {

    	RenderTypeLookup.setRenderLayer(CaveBlocks.TINTED_GLASS.get(), RenderType.getTranslucent());
    	
    }

 

Edited December 5, 2020 by Luis_ST
add code
  • Quote

Share this post


Link to post
Share on other sites

TheGreyGhost    818

TheGreyGhost

TheGreyGhost    818

  • Reality Controller
  • TheGreyGhost
  • Members
  • 818
  • 3280 posts
Posted December 6, 2020

Howdy

 

My guess is - your VoxelShape is wrong

https://greyminecraftcoder.blogspot.com/2020/02/block-shapes-voxelshapes-1144.html

https://github.com/TheGreyGhost/MinecraftByExample/tree/master/src/main/java/minecraftbyexample/mbe02_block_partial

 

-TGG

 

 

 

 

  • Quote

Share this post


Link to post
Share on other sites

poopoodice    109

poopoodice

poopoodice    109

  • Dragon Slayer
  • poopoodice
  • Members
  • 109
  • 882 posts
Posted December 6, 2020

Also you should be doing in on client only - client setup not common setup.

  • Quote

Share this post


Link to post
Share on other sites

Luis_ST    0

Luis_ST

Luis_ST    0

  • Creeper Killer
  • Luis_ST
  • Members
  • 0
  • 122 posts
Posted December 6, 2020

okay i have change the FMLCommonSetupEvent to FMLClientSetupEvent and i add this but it looks like forward

 

	@Override
	public VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context) {
		
		return VoxelShapes.fullCube();
		
	}

	@Override
	public VoxelShape getRaytraceShape(BlockState state, IBlockReader worldIn, BlockPos pos) {
		
		return VoxelShapes.fullCube();
		
	}
	
	@Override
	public VoxelShape getRenderShape(BlockState state, IBlockReader worldIn, BlockPos pos) {
		
		return VoxelShapes.fullCube();
		
	}

 

  • Quote

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 1
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • e2rifia
      (1.16.2) Making a new capability (3)

      By e2rifia · Posted 2 minutes ago

      @Mod(Main.MODID) //@Mod.EventBusSubscriber(modid = Main.MODID) public class Main{ public static final String MODID = "main"; @SubscribeEvent public static void setup(final FMLCommonSetupEvent event) { System.out.println("I'm setting up!"); MinecraftForge.EVENT_BUS.register(new CapabilityAttatcher()); MagicCapability.register(); } }  
    • loordgek
      (1.16.2) Making a new capability (3)

      By loordgek · Posted 4 minutes ago

      what dint work, show your new code
    • Klarks
      [1.16.4] How i can open a container by clicking on my mob

      By Klarks · Posted 15 minutes ago

      Is it ok that i am saving a player uuid as a string in datamanager private static final DataParameter<String> OWNER = EntityDataManager.createKey(MyEntity.class, DataSerializers.STRING); @OnlyIn(Dist.CLIENT) public UUID getOwner() { return UUID.fromString(this.dataManager.get(OWNER)); } public void setOwner(UUID name) { this.dataManager.set(OWNER ,name.toString()); }
    • e2rifia
      (1.16.2) Making a new capability (3)

      By e2rifia · Posted 29 minutes ago

      Is @EventBusSubscriber what's getting in the way of setup? It didn't work...
    • diesieben07
      (1.16.2) Making a new capability (3)

      By diesieben07 · Posted 35 minutes ago

      You don't need to, no. Why?
  • Topics

    • e2rifia
      12
      (1.16.2) Making a new capability (3)

      By e2rifia
      Started 2 hours ago

    • Klarks
      11
      [1.16.4] How i can open a container by clicking on my mob

      By Klarks
      Started 14 hours ago

    • Heinzchen
      2
      Update mod to 1.16.5

      By Heinzchen
      Started 15 hours ago

    • XenoPyax
      3
      [1.16.4] Render Player in gui

      By XenoPyax
      Started 3 hours ago

    • metword
      16
      [1.16.4] Config file will not update.

      By metword
      Started Wednesday at 04:20 PM

  • Who's Online (See full list)

    • e2rifia
    • Pixel_oof
    • Beethoven92
    • Heinzchen
    • loordgek
    • Klarks
    • AzizD
    • Pl00py_R
    • Dragrise96
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.16.1] Block RenderType
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community