mojira.dev

Test Pattern

Assigned

No issues.

Comments

[media: minecraft_support_not_working.png]

Here is another block, called a “canvas”, in the shape of carpet (grass_carried_top texture) that might better demonstrate the issue. Next to it is vanilla carpet (white) and the blocks that can be placed on it comparatively. The canvas is using the following file

{
	"format_version": "1.26.10",
	"minecraft:block": {
		"description": {
			"identifier": "canvas:grass_path_top",
			"menu_category": {"category": "nature"
			},
			"traits":{
				"minecraft:placement_direction": {
					"enabled_states": ["minecraft:facing_direction"]
				},
				"minecraft:placement_position": {
					"enabled_states": ["minecraft:block_face"]
				}
			}
		},
		"components": {
			// default carried canvas [up facing]
			"minecraft:geometry": {
				"identifier":"geometry.tp_canvas.map"
			},
			"minecraft:material_instances": {
				"*": {
					"face_dimming": true,
					"texture": "canvas:grass_path_top"
				}
			},
			"minecraft:support":{"shape":"fence"},
			"minecraft:placement_filter":{"conditions": [{"allowed_faces": ["all"]}]},
			"minecraft:connection_rule":{
				"accepts_connections_from": "none"
			},
			"minecraft:selection_box": {
				"origin": [-8.0, 0.0, -8.0],
				"size": [16.0, 1.0, 16.0]
			},
			"minecraft:collision_box": {
				"origin": [-8.0, 0.0, -8.0],
				"size": [16.0, 1.0, 16.0]
			},
			"minecraft:flammable":true,
			"minecraft:destructible_by_mining": {"seconds_to_destroy": 0.15},
			"minecraft:destruction_particles": {
				"particle_count":13,
				"texture": "canvas:quartz_block_side"
			},
			"minecraft:map_color": "#007c00"
		},
		"permutations": [
			{
				"condition": "q.block_state('minecraft:block_face') == 'down' && q.block_state('minecraft:facing_direction') == 'north'",
				"components": {
					"minecraft:transformation": { 
						"rotation": [180, 0, 0]
					},
					"minecraft:liquid_detection": {
						"detection_rules": [
							{
								"liquid_type": "water",
								"can_contain_liquid": true,
								"on_liquid_touches": "no_reaction",
								"stops_liquid_flowing_from_direction": ["up","down"]
							}
						]
					}
				}
			},
			{
				"condition": "q.block_state('minecraft:block_face') == 'down' && q.block_state('minecraft:facing_direction') == 'south'",
				"components": {
					"minecraft:transformation": { 
						"rotation": [180, 180, 0]
					},
					"minecraft:liquid_detection": {
						"detection_rules": [
							{
								"liquid_type": "water",
								"can_contain_liquid": true,
								"on_liquid_touches": "no_reaction",
								"stops_liquid_flowing_from_direction": ["up","down"]
							}
						]
					}
				}
			},
			{
				"condition": "q.block_state('minecraft:block_face') == 'down' && q.block_state('minecraft:facing_direction') == 'west'",
				"components": {
					"minecraft:transformation": { 
						"rotation": [180, 90, 0]
					},
					"minecraft:liquid_detection": {
						"detection_rules": [
							{
								"liquid_type": "water",
								"can_contain_liquid": true,
								"on_liquid_touches": "no_reaction",
								"stops_liquid_flowing_from_direction": ["up","down"]
							}
						]
					}
				}
			},
			{
				"condition": "q.block_state('minecraft:block_face') == 'down' && q.block_state('minecraft:facing_direction') == 'east'",
				"components": {
					"minecraft:transformation": { 
						"rotation": [180, 270, 0]
					},
					"minecraft:liquid_detection": {
						"detection_rules": [
							{
								"liquid_type": "water",
								"can_contain_liquid": true,
								"on_liquid_touches": "no_reaction",
								"stops_liquid_flowing_from_direction": ["up","down"]
							}
						]
					}
				}
			},
			{
				"condition": "q.block_state('minecraft:block_face') == 'up' && q.block_state('minecraft:facing_direction') == 'north'",
				"components": {
					"minecraft:transformation": { 
						"rotation": [0, 0, 0]
					},
					"minecraft:liquid_detection": {
						"detection_rules": [
							{
								"liquid_type": "water",
								"can_contain_liquid": true,
								"on_liquid_touches": "no_reaction",
								"stops_liquid_flowing_from_direction": ["up","down"]
							}
						]
					}
				}
			},
			{
				"condition": "q.block_state('minecraft:block_face') == 'up' && q.block_state('minecraft:facing_direction') == 'south'",
				"components": {
					"minecraft:transformation": { 
						"rotation": [0, 180, 0]
					},
					"minecraft:liquid_detection": {
						"detection_rules": [
							{
								"liquid_type": "water",
								"can_contain_liquid": true,
								"on_liquid_touches": "no_reaction",
								"stops_liquid_flowing_from_direction": ["up","down"]
							}
						]
					}
				}
			},
			{
				"condition": "q.block_state('minecraft:block_face') == 'up' && q.block_state('minecraft:facing_direction') == 'west'",
				"components": {
					"minecraft:transformation": { 
						"rotation": [0, 90, 0]
					},
					"minecraft:liquid_detection": {
						"detection_rules": [
							{
								"liquid_type": "water",
								"can_contain_liquid": true,
								"on_liquid_touches": "no_reaction",
								"stops_liquid_flowing_from_direction": ["up","down"]
							}
						]
					}
				}
			},
			{
				"condition": "q.block_state('minecraft:block_face') == 'up' && q.block_state('minecraft:facing_direction') == 'east'",
				"components": {
					"minecraft:transformation": { 
						"rotation": [0, 270, 0]
					},
					"minecraft:liquid_detection": {
						"detection_rules": [
							{
								"liquid_type": "water",
								"can_contain_liquid": true,
								"on_liquid_touches": "no_reaction",
								"stops_liquid_flowing_from_direction": ["up","down"]
							}
						]
					}
				}
			},
			{
				"condition": "q.block_state('minecraft:block_face') == 'north'",
				"components": {
					"minecraft:transformation": { 
						"rotation": [-90, 0, 180]
					},
					"minecraft:liquid_detection": {
						"detection_rules": [
							{
								"liquid_type": "water",
								"can_contain_liquid": true,
								"on_liquid_touches": "no_reaction",
								"stops_liquid_flowing_from_direction": ["north","south"]
							}
						]
					}
				}
			},
			{
				"condition": "q.block_state('minecraft:block_face') == 'south'",
				"components": {
					"minecraft:transformation": { 
						"rotation": [90, 0, 0] 
					},
					"minecraft:liquid_detection": {
						"detection_rules": [
							{
								"liquid_type": "water",
								"can_contain_liquid": true,
								"on_liquid_touches": "no_reaction",
								"stops_liquid_flowing_from_direction": ["north","south"]
							}
						]
					}
				}
			},
			{
				"condition": "q.block_state('minecraft:block_face') == 'west'",
				"components": {
					"minecraft:transformation": { 
						"rotation": [0, -90, 90] 
					},
					"minecraft:liquid_detection": {
						"detection_rules": [
							{
								"liquid_type": "water",
								"can_contain_liquid": true,
								"on_liquid_touches": "no_reaction",
								"stops_liquid_flowing_from_direction": ["east","west"]
							}
						]
					}
				}
			},
			{
				"condition": "q.block_state('minecraft:block_face') == 'east'",
				"components": {
					"minecraft:transformation": { 
						"rotation": [0, 90, -90]
					},
					"minecraft:liquid_detection": {
						"detection_rules": [
							{
								"liquid_type": "water",
								"can_contain_liquid": true,
								"on_liquid_touches": "no_reaction",
								"stops_liquid_flowing_from_direction": ["east","west"]
							}
						]
					}
				}
			}
		]
	}
}

… that said, this MAY fix you issue… but for me, the issue is still there… but just making sure others are not repeating the troubleshooting im doing…

older addons (pre-1.26.0) used

"register_to_creative_menu": true,

(or false) without error. if left in the json block file for 1.26+ they will throw the version error. While not spelled out in any change log, many older developers just had this in their blocks and had left it there. it was removed in:

1.16.100 ​

experimental

Holiday Creator Features

Versioned

  • Added events

Description ​

  • Removed is_experimental

  • Removed register_to_creative_menu

…so its just an oversight on the dev side for long time developers, like me.

Someone really messed up… Ive lost 12 hours today trying to chase this one down… here is one fix… dont have // notations in any “minecraft:crafting_items_catalog“ or you’ll get “minecraft:minecraft” in front of the menu entries AND blocks listed… Then there is the forcing of js version from 2.4 to 2.6 which Ive never seen happen on an update before…

01:15:07[Scripting][verbose]-Plugin [Phantom Frames v0.15.7] - promoted [@minecraft/server] from [2.4.0] to [2.6.0] requested by [Phantom Frames v0.15.7 - 1.0.0].

01:15:07[Scripting][verbose]-Plugin [Phantom Frames v0.15.7] - promoted [@minecraft/server-bindings] from [2.4.0] to [2.6.0] requested by [@minecraft/server - 2.4.0].

not going to enter all my logs…

01:36:49[Scripting][verbose]-Plugin Discovered [Phantom Frames v0.15.7] PackId [eab735c8-7ff8-41ef-81c5-250b4228741f_0.15.7] ModuleId [1dd0c10a-3066-4170-a304-a80bb889a8d1]

01:36:50[Blocks][error]-block_definitions | C:/Users/seeit/AppData/Roaming/Minecraft Bedrock/Users/Shared/games/com.mojang/development_behavior_packs/Phantom_Frames_BP_DEV | blocks/utility/frame_placeholder.json | Unexpected version for the loaded data

01:36:50[Blocks][error]-block_definitions | C:/Users/seeit/AppData/Roaming/Minecraft Bedrock/Users/Shared/games/com.mojang/development_behavior_packs/Phantom_Frames_BP_DEV | blocks/utility/frame_particles.json | Unexpected version for the loaded data

01:36:50[Blocks][error]-block_definitions | C:/Users/seeit/AppData/Roaming/Minecraft Bedrock/Users/Shared/games/com.mojang/development_behavior_packs/Phantom_Frames_BP_DEV | blocks/utility/frame_break.json | Unexpected version for the loaded data

01:36:50[Blocks][error]-block_definitions | C:/Users/seeit/AppData/Roaming/Minecraft Bedrock/Users/Shared/games/com.mojang/development_behavior_packs/Phantom_Frames_BP_DEV | blocks/nature/dyed/dyed_9.json | Unexpected version for the loaded data

01:36:50[Blocks][error]-block_definitions | C:/Users/seeit/AppData/Roaming/Minecraft Bedrock/Users/Shared/games/com.mojang/development_behavior_packs/Phantom_Frames_BP_DEV | blocks/nature/dyed/dyed_8.json | Unexpected version for the loaded data

01:36:50[Blocks][error]-block_definitions | C:/Users/seeit/AppData/Roaming/Minecraft Bedrock/Users/Shared/games/com.mojang/development_behavior_packs/Phantom_Frames_BP_DEV | blocks/nature/dyed/dyed_7.json | Unexpected version for the loaded data

01:36:50[Blocks][error]-block_definitions | C:/Users/seeit/AppData/Roaming/Minecraft Bedrock/Users/Shared/games/com.mojang/development_behavior_packs/Phantom_Frames_BP_DEV | blocks/nature/dyed/dyed_6.json | Unexpected version for the loaded data

01:36:50[Blocks][error]-block_definitions | C:/Users/seeit/AppData/Roaming/Minecraft Bedrock/Users/Shared/games/com.mojang/development_behavior_packs/Phantom_Frames_BP_DEV | blocks/nature/dyed/dyed_5.json | Unexpected version for the loaded data

01:36:50[Blocks][error]-block_definitions | C:/Users/seeit/AppData/Roaming/Minecraft Bedrock/Users/Shared/games/com.mojang/development_behavior_packs/Phantom_Frames_BP_DEV | blocks/nature/dyed/dyed_4.json | Unexpected version for the loaded data… (500 more)

the frustrating things is everything works perfectly fine, but the logs can stop spamming.

night_vision

is still

nightVison

in loot tables but not listed. Likewise,

long_night_vision

is still

long_nightVision

This camel case discrepancy issue effects potion, splash_potion and lingering_potion variants.

From my testing, all other potion id’s listed on the Minecraft Wiki are listed in the correct case format.

Note: the generation of the potion in a loot table uses a function

"function": "set_potion",

and an id

"id": "long_nightVision"

If you use the listed one "night_vision", you get a water bottle.

Ref: Minecraft Wiki Potion Metadata

Thank you v-baselod, I cannot share an unreleased addon that is intended for a store release to the open public without an NDA. However I will share a prerelease example with GoldenHelmet here on Jira to confirm my discovery. I’m also very busy preparing for release, so I do not have the bandwidth to create example addons for Mojang. I'm just one person. 🙂

[media]
[media]
[media]
[media]