Jump to content

Recommended Posts

Posted

Hey just as written in the title my custom block side turns black if a solid block is facing that side.
I have already tried everything concerning the blockmodel.json.
I have set the ambientocclusion to false, shade to false and render_type also to cutout, but nothing seems to work.

If anything else is needed to help me with my problem don't bother to ask me for more information.

The blockmodel ingame:

Spoiler

R9yUbsu.pngkeE4KkH.png


Here is the blockmodel.json file:

Spoiler
{
	"credit": "Made by LordFetzi with Blockbench",
	"ambientocclusion": false,
	"textures": {
		"2": "fetzisasiandeco:blocks/sand",
		"particle": "fetzisasiandeco:blocks/sand"
	},
	"elements": [
		{
			"from": [0.001, 0, 0.001],
			"to": [15.999, 16, 15.999],
			"rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 8]},
			"faces": {
				"north": {"uv": [0, 0, 16, 16], "texture": "#2"},
				"east": {"uv": [0, 0, 16, 16], "texture": "#2"},
				"south": {"uv": [0, 0, 16, 16], "texture": "#2"},
				"west": {"uv": [0, 0, 16, 16], "texture": "#2"},
				"up": {"uv": [0, 0, 16, 16], "rotation": 180, "texture": "#2"},
				"down": {"uv": [0, 0, 16, 16], "rotation": 180, "texture": "#2"}
			}
		},
		{
			"from": [0.5, 16, 0.001],
			"to": [1.5, 16.5, 15.999],
			"faces": {
				"north": {"uv": [14.5, 0, 15.5, 0.5], "texture": "#2"},
				"east": {"uv": [14.5, 16, 15, 0], "rotation": 270, "texture": "#2"},
				"south": {"uv": [15.5, 0.5, 14.5, 0], "texture": "#2"},
				"west": {"uv": [15, 16, 15.5, 0], "rotation": 90, "texture": "#2"},
				"up": {"uv": [15.5, 0, 14.5, 16], "texture": "#2"},
				"down": {"uv": [0, 0, 1, 16], "texture": "#2"}
			}
		},
		{
			"from": [2.5, 16, 0.001],
			"to": [3.5, 16.5, 15.999],
			"faces": {
				"north": {"uv": [12.5, 0, 13.5, 0.5], "texture": "#2"},
				"east": {"uv": [12.5, 16, 13, 0], "rotation": 270, "texture": "#2"},
				"south": {"uv": [13.5, 0.5, 12.5, 0], "texture": "#2"},
				"west": {"uv": [13.5, 16, 13, 0], "rotation": 90, "texture": "#2"},
				"up": {"uv": [13.5, 0, 12.5, 16], "texture": "#2"},
				"down": {"uv": [0, 0, 1, 16], "texture": "#2"}
			}
		},
		{
			"from": [4.5, 16, 0.001],
			"to": [5.5, 16.5, 15.999],
			"faces": {
				"north": {"uv": [10.5, 0, 11.5, 0.5], "texture": "#2"},
				"east": {"uv": [10.5, 16, 11, 0], "rotation": 90, "texture": "#2"},
				"south": {"uv": [11.5, 0.5, 10.5, 0], "texture": "#2"},
				"west": {"uv": [11, 16, 11.5, 0], "rotation": 90, "texture": "#2"},
				"up": {"uv": [11.5, 0, 10.5, 16], "texture": "#2"},
				"down": {"uv": [0, 0, 1, 16], "texture": "#2"}
			}
		},
		{
			"from": [6.5, 16, 0.001],
			"to": [7.5, 16.5, 15.999],
			"faces": {
				"north": {"uv": [8.5, 0, 9.5, 0.5], "texture": "#2"},
				"east": {"uv": [8.5, 16, 9, 0], "rotation": 90, "texture": "#2"},
				"south": {"uv": [9.5, 0.5, 8.5, 0], "texture": "#2"},
				"west": {"uv": [9, 16, 9.5, 0], "rotation": 90, "texture": "#2"},
				"up": {"uv": [9.5, 0, 8.5, 16], "texture": "#2"},
				"down": {"uv": [0, 0, 1, 16], "texture": "#2"}
			}
		},
		{
			"from": [8.5, 16, 0.001],
			"to": [9.5, 16.5, 15.999],
			"faces": {
				"north": {"uv": [6.5, 0, 7.5, 0.5], "texture": "#2"},
				"east": {"uv": [6.5, 0, 7, 16], "rotation": 90, "texture": "#2"},
				"south": {"uv": [7.5, 0.5, 6.5, 0], "texture": "#2"},
				"west": {"uv": [7, 16, 7.5, 0], "rotation": 90, "texture": "#2"},
				"up": {"uv": [7.5, 0, 6.5, 16], "texture": "#2"},
				"down": {"uv": [0, 0, 1, 16], "texture": "#2"}
			}
		},
		{
			"from": [10.5, 16, 0.001],
			"to": [11.5, 16.5, 15.999],
			"faces": {
				"north": {"uv": [4.5, 0, 5.5, 0.5], "texture": "#2"},
				"east": {"uv": [4.5, 0, 5, 16], "rotation": 90, "texture": "#2"},
				"south": {"uv": [5.5, 0.5, 4.5, 0], "texture": "#2"},
				"west": {"uv": [5, 16, 5.5, 0], "rotation": 90, "texture": "#2"},
				"up": {"uv": [5.5, 0, 4.5, 16], "texture": "#2"},
				"down": {"uv": [0, 0, 1, 16], "texture": "#2"}
			}
		},
		{
			"from": [12.5, 16, 0.001],
			"to": [13.5, 16.5, 15.999],
			"faces": {
				"north": {"uv": [2.5, 0, 3.5, 0.5], "texture": "#2"},
				"east": {"uv": [2.5, 0, 3, 16], "rotation": 90, "texture": "#2"},
				"south": {"uv": [3.5, 0.5, 2.5, 0], "texture": "#2"},
				"west": {"uv": [3, 16, 3.5, 0], "rotation": 90, "texture": "#2"},
				"up": {"uv": [3.5, 0, 2.5, 16], "texture": "#2"},
				"down": {"uv": [0, 0, 1, 16], "texture": "#2"}
			}
		},
		{
			"from": [14.5, 16, 0.001],
			"to": [15.5, 16.5, 15.999],
			"faces": {
				"north": {"uv": [0.5, 0, 1.5, 0.5], "texture": "#2"},
				"east": {"uv": [0.5, 0, 1, 16], "rotation": 90, "texture": "#2"},
				"south": {"uv": [1.5, 0.5, 0.5, 0], "texture": "#2"},
				"west": {"uv": [1, 16, 1.5, 0], "rotation": 90, "texture": "#2"},
				"up": {"uv": [1.5, 0, 0.5, 16], "texture": "#2"},
				"down": {"uv": [0, 0, 1, 16], "texture": "#2"}
			}
		}
	],
	"display": {
		"thirdperson_righthand": {
			"rotation": [75, 45, 0],
			"translation": [0, 2.5, 0],
			"scale": [0.375, 0.375, 0.375]
		},
		"thirdperson_lefthand": {
			"rotation": [75, 45, 0],
			"translation": [0, 2.5, 0],
			"scale": [0.375, 0.375, 0.375]
		},
		"firstperson_righthand": {
			"rotation": [0, 45, 0],
			"scale": [0.4, 0.4, 0.4]
		},
		"firstperson_lefthand": {
			"rotation": [0, 225, 0],
			"scale": [0.4, 0.4, 0.4]
		},
		"ground": {
			"translation": [0, 3, 0],
			"scale": [0.25, 0.25, 0.25]
		},
		"gui": {
			"rotation": [30, 225, 0],
			"scale": [0.625, 0.625, 0.625]
		},
		"fixed": {
			"scale": [0.5, 0.5, 0.5]
		}
	},
	"groups": [
		{
			"name": "VoxelShapes",
			"origin": [0, 0, 0],
			"color": 0,
			"children": [0, 1, 2, 3, 4, 5, 6, 7, 8]
		}
	]
}

 

Posted (edited)

I don't know about the model you are using, but for the vanilla models this is function of the shapes defined in your block class (not just the model).

If you have a full face in your shapes it will stop light entering the block to internal faces.

 

Here's a thread where I try to explain it from my limited understanding. I am far from an expert on minecraft's lighting code. 🙂 

https://forums.minecraftforge.net/topic/115059-1191-unable-to-create-a-non-opaque-block/

 

Edited by warjort

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

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...

×   Pasted as rich text.   Restore formatting

  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.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I'll try it out, if it works or not I'll get back to you
    • Do you use Connector with fabric-api? The used build is not compatible with the Forge version
    • It gave me an error report. I don't understand what it means. Can you tell me what I should do?   report: [27Mar2025 13:52:28.379] [main/FATAL] [net.minecraftforge.server.loading.ServerModLoader/]: Crash report saved to ./crash-reports/crash-2025-03-27_13.52.28-fml.txt [27Mar2025 13:52:28.384] [main/ERROR] [net.minecraft.server.Main/FATAL]: Failed to start the minecraft server net.minecraftforge.fml.LoadingFailedException: Loading errors encountered: [ Mod §efabric_command_api_v2§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_model_loading_api_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_content_registries_v0§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_api_base§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_item_api_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_mining_level_api_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_renderer_indigo§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_object_builder_api_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §ewaystones§r requires §6balm§r §o7.0.0 or above§r §7Currently, §6balm§r§7 is §o§nnot installed, Mod §efabric_events_interaction_v0§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_transfer_api_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_registry_sync_v0§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_screen_handler_api_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_particles_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_renderer_api_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_resource_loader_v0§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_sound_api_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_lifecycle_events_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_data_generation_api_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_networking_api_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_item_group_api_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_transitive_access_wideners_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_rendering_fluids_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_dimensions_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_resource_conditions_api_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_recipe_api_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_screen_api_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §eapoli§r requires §6caelus§r §o3.1.0 or above§r §7Currently, §6caelus§r§7 is §o§nnot installed, Mod §efabric_client_tags_api_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_block_view_api_v2§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_models_v0§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_api§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_loot_api_v2§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_rendering_data_attachment_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_rendering_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_convention_tags_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_key_binding_api_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_biome_api_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_message_api_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_block_api_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_api_lookup_api_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_game_rule_api_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_blockrenderlayer_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0, Mod §efabric_entity_events_v1§r requires §6forge§r §o47.1.3§r §7Currently, §6forge§r§7 is §o47.4.0 ] at net.minecraftforge.fml.ModLoader.gatherAndInitializeMods(ModLoader.java:149) ~[fmlcore-1.20.1-47.4.0.jar%23154!/:?] at net.minecraftforge.server.loading.ServerModLoader.load(ServerModLoader.java:30) ~[forge-1.20.1-47.4.0-universal.jar%23158!/:?] at net.minecraft.server.Main.main(Main.java:125) ~[server-1.20.1-20230612.114412-srg.jar%23153!/:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:111) ~[fmlloader-1.20.1-47.4.0.jar%2369!/:?] at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.serverService(CommonLaunchHandler.java:103) ~[fmlloader-1.20.1-47.4.0.jar%2369!/:?] at net.minecraftforge.fml.loading.targets.CommonServerLaunchHandler.lambda$makeService$0(CommonServerLaunchHandler.java:27) ~[fmlloader-1.20.1-47.4.0.jar%2369!/:?] at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) ~[modlauncher-10.0.9.jar%2355!/:?] at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) ~[modlauncher-10.0.9.jar%2355!/:?] at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) ~[modlauncher-10.0.9.jar%2355!/:?] at cpw.mods.modlauncher.Launcher.run(Launcher.java:108) ~[modlauncher-10.0.9.jar%2355!/:?] at cpw.mods.modlauncher.Launcher.main(Launcher.java:78) ~[modlauncher-10.0.9.jar%2355!/:?] at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) ~[modlauncher-10.0.9.jar%2355!/:?] at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) ~[modlauncher-10.0.9.jar%2355!/:?] at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) ~[bootstraplauncher-1.1.2.jar:?]
  • Topics

×
×
  • Create New...

Important Information

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