-
Posts
8 -
Joined
-
Last visited
Everything posted by xieao
-
[SOLVED] [1.15.1] Translucent blocks with see-through bottoms
xieao replied to kwpugh's topic in Modder Support
Hey! try to use this in your block properties: Block.Properties#func_226896_b_() Is to set the block to none solid. To look like this: public class BlockGobberGlass extends GlassBlock { public BlockGobberGlass(Properties properties) { super(properties.func_226896_b_()); } @OnlyIn(Dist.CLIENT) public void addInformation(ItemStack stack, @Nullable IBlockReader world, List<ITextComponent> tooltip, ITooltipFlag flag) { super.addInformation(stack, world, tooltip, flag); tooltip.add(new StringTextComponent(TextFormatting.BLUE + "A very sturdy glass block, drops the block when broken")); } } -
[Solved] [1.14.3] Entity Renderer not rendering
xieao replied to PhilipChonacky's topic in Modder Support
This solved the problem for me First register your entity with custom client factory like this .setCustomClientFactory((spawnEntity, world) -> new ExempleEntity(world)) And then use NetworkHooks#getEntitySpawningPacket to get Entity Spawning Packet @Override public IPacket<?> createSpawnPacket() { return NetworkHooks.getEntitySpawningPacket(this); } that's it ? -
How to fix intelji idea not updating code during debug
xieao replied to TheRPGAdventurer's topic in Modder Support
Goto: File > Settings > Build, Execution, Deployment > Debugger > HotSwap and set "Reload classes after compilation" to "Always" -
Try to use this to sync your tileentity to the client side: IBlockState state = getWorld().getBlockState(getPos()); getWorld().notifyBlockUpdate(getPos(), state, state, 3);