Jump to content

[1.16.5] ¿ is there some way to make a switch statement inside a json file ?


perromercenary00

Recommended Posts

hay
im updating  blocks from and old mod 

and i gave this block a creative tool that changes blocks in a circular pattern im changing it soo i want it to fisically show on the top side the values from deep and radios who cames from block properties 

public static final IntegerProperty LEVEL = IntegerProperty.create("level", 0, 15);

public static final IntegerProperty DEEP = IntegerProperty.create("deep", 0, 15);

seudoslab.png
something like this but prettier 

know like it is i have to make block state whit around 1536 variants
"variants": {
    "facing=east,LEVEL=3,DEEP=7": {

pointing to  around 256 tool_circular_replace.json  variants of the original slab to cover all the combination of LEVEL and DEEP values 

soo i need to make json block model whit something like 

	{
  "parent": "basemmod:block/parent_slabw2numbers",
  "textures": {
    "particle": "minecraft:block/brick",
    "interior": "minecraft:block/brick",
    "exterior": "minecraft:block/brick",
    "borde":    "minecraft:block/brick",
	    "numberred":   {
        "variants": {
            "LEVEL=0": "basemmod:block/rn0",
            "LEVEL=1": "basemmod:block/rn1",
            "LEVEL=2": "basemmod:block/rn2",
            "LEVEL=N": "basemmod:block/rnN"
        },
    "numbergreen":   {
        "variants": {
            "DEEP=0": "basemmod:block/gn0",
            "DEEP=1": "basemmod:block/gn1",
            "DEEP=2": "basemmod:block/gn2",
            "DEEP=N": "basemmod:block/gnN"
        },
  }
}
	

 

soo ¿ its posible to have some kind of switch statement to control what texture is send to the block model based on the block properties ? 

 

 

 

Link to comment
Share on other sites

You can't pass parameters to models from the block states. You only select (and rotate) them based on the properties.

Maybe a MultiPart block states?

https://minecraft.fandom.com/wiki/Model#Example:_Redstone_Wire

The "when" sounds like what you are asking for?

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.

Link to comment
Share on other sites

i kinda make it 

output.gif

its only requires to make the parent_model and the block state for the base block plus 2 more parent_blocks for the level counter and deep counter and only 32 json blocks to cover for all the combinations of numbers and its too much 

Captura-de-pantalla-de-2022-07-03-20-47-

 

 

is there some short way to do this ??
or it just die like this 


	{
  "multipart" : [ 
  
  { "when" : {"facing" : "south"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/tool_circular_replacer","y" : 180}
  }, 
  
  { "when" : {"facing" : "north"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/tool_circular_replacer"}
  }, 
  
  { "when" : {"facing" : "east"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/tool_circular_replacer","y" : 90}
  },
    
  { "when" : {"facing" : "west"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/tool_circular_replacer","y" : 270}
  }, 
  
  { "when" : {"facing" : "down"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/tool_circular_replacer","x" : 90}
  }, 
  
  { "when" : {"facing" : "up"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/tool_circular_replacer","x" : 270}
  }, 
  
  
  
  
  { "when" : {"facing" : "south", "level" : "0"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n0","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "level" : "0"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n0"}
  },
  
  { "when" : {"facing" : "east", "level" : "0"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n0","y" : 90}
  },
  
  { "when" : {"facing" : "west", "level" : "0"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n0","y" : 270}
  },
    
  { "when" : {"facing" : "down", "level" : "0"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n0","x" : 90}
  },
  
  { "when" : {"facing" : "up", "level" : "0"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n0","x" : 270}
  },
  
 
  { "when" : {"facing" : "south", "deep" : "0"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n0","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "deep" : "0"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n0"}
  },
  
  { "when" : {"facing" : "east", "deep" : "0"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n0","y" : 90}
  },
  
  { "when" : {"facing" : "west", "deep" : "0"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n0","y" : 270}
  },
    
  { "when" : {"facing" : "down", "deep" : "0"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n0","x" : 90}
  },
  
  { "when" : {"facing" : "up", "deep" : "0"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n0","x" : 270}
  }, 
    
  
  
  
  
    { "when" : {"facing" : "south", "level" : "1"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n1","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "level" : "1"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n1"}
  },
  
  { "when" : {"facing" : "east", "level" : "1"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n1","y" : 90}
  },
  
  { "when" : {"facing" : "west", "level" : "1"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n1","y" : 270}
  },
    
  { "when" : {"facing" : "down", "level" : "1"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n1","x" : 90}
  },
  
  { "when" : {"facing" : "up", "level" : "1"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n1","x" : 270}
  },
  
 
  { "when" : {"facing" : "south", "deep" : "1"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n1","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "deep" : "1"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n1"}
  },
  
  { "when" : {"facing" : "east", "deep" : "1"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n1","y" : 90}
  },
  
  { "when" : {"facing" : "west", "deep" : "1"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n1","y" : 270}
  },
    
  { "when" : {"facing" : "down", "deep" : "1"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n1","x" : 90}
  },
  
  { "when" : {"facing" : "up", "deep" : "1"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n1","x" : 270}
  },
  
  
  
  
    { "when" : {"facing" : "south", "level" : "2"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n2","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "level" : "2"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n2"}
  },
  
  { "when" : {"facing" : "east", "level" : "2"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n2","y" : 90}
  },
  
  { "when" : {"facing" : "west", "level" : "2"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n2","y" : 270}
  },
    
  { "when" : {"facing" : "down", "level" : "2"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n2","x" : 90}
  },
  
  { "when" : {"facing" : "up", "level" : "2"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n2","x" : 270}
  },
  
 
  { "when" : {"facing" : "south", "deep" : "2"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n2","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "deep" : "2"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n2"}
  },
  
  { "when" : {"facing" : "east", "deep" : "2"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n2","y" : 90}
  },
  
  { "when" : {"facing" : "west", "deep" : "2"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n2","y" : 270}
  },
    
  { "when" : {"facing" : "down", "deep" : "2"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n2","x" : 90}
  },
  
  { "when" : {"facing" : "up", "deep" : "2"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n2","x" : 270}
  },
  
  
  
  
    { "when" : {"facing" : "south", "level" : "3"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n3","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "level" : "3"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n3"}
  },
  
  { "when" : {"facing" : "east", "level" : "3"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n3","y" : 90}
  },
  
  { "when" : {"facing" : "west", "level" : "3"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n3","y" : 270}
  },
    
  { "when" : {"facing" : "down", "level" : "3"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n3","x" : 90}
  },
  
  { "when" : {"facing" : "up", "level" : "3"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n3","x" : 270}
  },
  
 
  { "when" : {"facing" : "south", "deep" : "3"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n3","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "deep" : "3"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n3"}
  },
  
  { "when" : {"facing" : "east", "deep" : "3"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n3","y" : 90}
  },
  
  { "when" : {"facing" : "west", "deep" : "3"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n3","y" : 270}
  },
    
  { "when" : {"facing" : "down", "deep" : "3"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n3","x" : 90}
  },
  
  { "when" : {"facing" : "up", "deep" : "3"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n3","x" : 270}
  },
  
  
  
  
  
    { "when" : {"facing" : "south", "level" : "4"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n4","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "level" : "4"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n4"}
  },
  
  { "when" : {"facing" : "east", "level" : "4"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n4","y" : 90}
  },
  
  { "when" : {"facing" : "west", "level" : "4"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n4","y" : 270}
  },
    
  { "when" : {"facing" : "down", "level" : "4"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n4","x" : 90}
  },
  
  { "when" : {"facing" : "up", "level" : "4"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n4","x" : 270}
  },
  
 
  { "when" : {"facing" : "south", "deep" : "4"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n4","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "deep" : "4"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n4"}
  },
  
  { "when" : {"facing" : "east", "deep" : "4"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n4","y" : 90}
  },
  
  { "when" : {"facing" : "west", "deep" : "4"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n4","y" : 270}
  },
    
  { "when" : {"facing" : "down", "deep" : "4"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n4","x" : 90}
  },
  
  { "when" : {"facing" : "up", "deep" : "4"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n4","x" : 270}
  },
  
  
  
  
  
    { "when" : {"facing" : "south", "level" : "5"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n5","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "level" : "5"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n5"}
  },
  
  { "when" : {"facing" : "east", "level" : "5"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n5","y" : 90}
  },
  
  { "when" : {"facing" : "west", "level" : "5"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n5","y" : 270}
  },
    
  { "when" : {"facing" : "down", "level" : "5"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n5","x" : 90}
  },
  
  { "when" : {"facing" : "up", "level" : "5"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n5","x" : 270}
  },
  
 
  { "when" : {"facing" : "south", "deep" : "5"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n5","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "deep" : "5"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n5"}
  },
  
  { "when" : {"facing" : "east", "deep" : "5"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n5","y" : 90}
  },
  
  { "when" : {"facing" : "west", "deep" : "5"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n5","y" : 270}
  },
    
  { "when" : {"facing" : "down", "deep" : "5"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n5","x" : 90}
  },
  
  { "when" : {"facing" : "up", "deep" : "5"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n5","x" : 270}
  },
  
  
  
  
  
    { "when" : {"facing" : "south", "level" : "6"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n6","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "level" : "6"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n6"}
  },
  
  { "when" : {"facing" : "east", "level" : "6"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n6","y" : 90}
  },
  
  { "when" : {"facing" : "west", "level" : "6"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n6","y" : 270}
  },
    
  { "when" : {"facing" : "down", "level" : "6"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n6","x" : 90}
  },
  
  { "when" : {"facing" : "up", "level" : "6"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n6","x" : 270}
  },
  
 
  { "when" : {"facing" : "south", "deep" : "6"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n6","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "deep" : "6"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n6"}
  },
  
  { "when" : {"facing" : "east", "deep" : "6"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n6","y" : 90}
  },
  
  { "when" : {"facing" : "west", "deep" : "6"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n6","y" : 270}
  },
    
  { "when" : {"facing" : "down", "deep" : "6"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n6","x" : 90}
  },
  
  { "when" : {"facing" : "up", "deep" : "6"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n6","x" : 270}
  },
  
  
  
  
  
    { "when" : {"facing" : "south", "level" : "7"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n7","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "level" : "7"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n7"}
  },
  
  { "when" : {"facing" : "east", "level" : "7"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n7","y" : 90}
  },
  
  { "when" : {"facing" : "west", "level" : "7"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n7","y" : 270}
  },
    
  { "when" : {"facing" : "down", "level" : "7"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n7","x" : 90}
  },
  
  { "when" : {"facing" : "up", "level" : "7"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n7","x" : 270}
  },
  
 
  { "when" : {"facing" : "south", "deep" : "7"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n7","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "deep" : "7"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n7"}
  },
  
  { "when" : {"facing" : "east", "deep" : "7"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n7","y" : 90}
  },
  
  { "when" : {"facing" : "west", "deep" : "7"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n7","y" : 270}
  },
    
  { "when" : {"facing" : "down", "deep" : "7"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n7","x" : 90}
  },
  
  { "when" : {"facing" : "up", "deep" : "7"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n7","x" : 270}
  },
  
  
  
  
  
  
    { "when" : {"facing" : "south", "level" : "8"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n8","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "level" : "8"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n8"}
  },
  
  { "when" : {"facing" : "east", "level" : "8"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n8","y" : 90}
  },
  
  { "when" : {"facing" : "west", "level" : "8"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n8","y" : 270}
  },
    
  { "when" : {"facing" : "down", "level" : "8"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n8","x" : 90}
  },
  
  { "when" : {"facing" : "up", "level" : "8"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n8","x" : 270}
  },
  
 
  { "when" : {"facing" : "south", "deep" : "8"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n8","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "deep" : "8"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n8"}
  },
  
  { "when" : {"facing" : "east", "deep" : "8"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n8","y" : 90}
  },
  
  { "when" : {"facing" : "west", "deep" : "8"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n8","y" : 270}
  },
    
  { "when" : {"facing" : "down", "deep" : "8"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n8","x" : 90}
  },
  
  { "when" : {"facing" : "up", "deep" : "8"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n8","x" : 270}
  },
  
  
  
  
  
  
  { "when" : {"facing" : "south", "level" : "9"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n9","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "level" : "9"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n9"}
  },
  
  { "when" : {"facing" : "east", "level" : "9"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n9","y" : 90}
  },
  
  { "when" : {"facing" : "west", "level" : "9"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n9","y" : 270}
  },
    
  { "when" : {"facing" : "down", "level" : "9"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n9","x" : 90}
  },
  
  { "when" : {"facing" : "up", "level" : "9"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n9","x" : 270}
  },
  
 
  { "when" : {"facing" : "south", "deep" : "9"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n9","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "deep" : "9"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n9"}
  },
  
  { "when" : {"facing" : "east", "deep" : "9"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n9","y" : 90}
  },
  
  { "when" : {"facing" : "west", "deep" : "9"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n9","y" : 270}
  },
    
  { "when" : {"facing" : "down", "deep" : "9"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n9","x" : 90}
  },
  
  { "when" : {"facing" : "up", "deep" : "9"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n9","x" : 270}
  },
	  { "when" : {"facing" : "south", "level" : "10"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n10","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "level" : "10"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n10"}
  },
  
  { "when" : {"facing" : "east", "level" : "10"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n10","y" : 90}
  },
  
  { "when" : {"facing" : "west", "level" : "10"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n10","y" : 270}
  },
    
  { "when" : {"facing" : "down", "level" : "10"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n10","x" : 90}
  },
  
  { "when" : {"facing" : "up", "level" : "10"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n10","x" : 270}
  },
  
 
  { "when" : {"facing" : "south", "deep" : "10"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n10","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "deep" : "10"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n10"}
  },
  
  { "when" : {"facing" : "east", "deep" : "10"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n10","y" : 90}
  },
  
  { "when" : {"facing" : "west", "deep" : "10"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n10","y" : 270}
  },
    
  { "when" : {"facing" : "down", "deep" : "10"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n10","x" : 90}
  },
  
  { "when" : {"facing" : "up", "deep" : "10"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n10","x" : 270}
  },
	  { "when" : {"facing" : "south", "level" : "11"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n11","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "level" : "11"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n11"}
  },
  
  { "when" : {"facing" : "east", "level" : "11"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n11","y" : 90}
  },
  
  { "when" : {"facing" : "west", "level" : "11"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n11","y" : 270}
  },
    
  { "when" : {"facing" : "down", "level" : "11"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n11","x" : 90}
  },
  
  { "when" : {"facing" : "up", "level" : "11"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n11","x" : 270}
  },
  
 
  { "when" : {"facing" : "south", "deep" : "11"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n11","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "deep" : "11"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n11"}
  },
  
  { "when" : {"facing" : "east", "deep" : "11"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n11","y" : 90}
  },
  
  { "when" : {"facing" : "west", "deep" : "11"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n11","y" : 270}
  },
    
  { "when" : {"facing" : "down", "deep" : "11"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n11","x" : 90}
  },
  
  { "when" : {"facing" : "up", "deep" : "11"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n11","x" : 270}
  },
	  { "when" : {"facing" : "south", "level" : "12"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n12","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "level" : "12"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n12"}
  },
  
  { "when" : {"facing" : "east", "level" : "12"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n12","y" : 90}
  },
  
  { "when" : {"facing" : "west", "level" : "12"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n12","y" : 270}
  },
    
  { "when" : {"facing" : "down", "level" : "12"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n12","x" : 90}
  },
  
  { "when" : {"facing" : "up", "level" : "12"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n12","x" : 270}
  },
  
 
  { "when" : {"facing" : "south", "deep" : "12"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n12","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "deep" : "12"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n12"}
  },
  
  { "when" : {"facing" : "east", "deep" : "12"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n12","y" : 90}
  },
  
  { "when" : {"facing" : "west", "deep" : "12"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n12","y" : 270}
  },
    
  { "when" : {"facing" : "down", "deep" : "12"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n12","x" : 90}
  },
  
  { "when" : {"facing" : "up", "deep" : "12"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n12","x" : 270}
  },
	  { "when" : {"facing" : "south", "level" : "13"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n13","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "level" : "13"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n13"}
  },
  
  { "when" : {"facing" : "east", "level" : "13"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n13","y" : 90}
  },
  
  { "when" : {"facing" : "west", "level" : "13"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n13","y" : 270}
  },
    
  { "when" : {"facing" : "down", "level" : "13"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n13","x" : 90}
  },
  
  { "when" : {"facing" : "up", "level" : "13"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n13","x" : 270}
  },
  
 
  { "when" : {"facing" : "south", "deep" : "13"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n13","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "deep" : "13"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n13"}
  },
  
  { "when" : {"facing" : "east", "deep" : "13"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n13","y" : 90}
  },
  
  { "when" : {"facing" : "west", "deep" : "13"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n13","y" : 270}
  },
    
  { "when" : {"facing" : "down", "deep" : "13"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n13","x" : 90}
  },
  
  { "when" : {"facing" : "up", "deep" : "13"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n13","x" : 270}
  },
	  { "when" : {"facing" : "south", "level" : "14"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n14","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "level" : "14"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n14"}
  },
  
  { "when" : {"facing" : "east", "level" : "14"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n14","y" : 90}
  },
  
  { "when" : {"facing" : "west", "level" : "14"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n14","y" : 270}
  },
    
  { "when" : {"facing" : "down", "level" : "14"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n14","x" : 90}
  },
  
  { "when" : {"facing" : "up", "level" : "14"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n14","x" : 270}
  },
  
 
  { "when" : {"facing" : "south", "deep" : "14"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n14","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "deep" : "14"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n14"}
  },
  
  { "when" : {"facing" : "east", "deep" : "14"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n14","y" : 90}
  },
  
  { "when" : {"facing" : "west", "deep" : "14"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n14","y" : 270}
  },
    
  { "when" : {"facing" : "down", "deep" : "14"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n14","x" : 90}
  },
  
  { "when" : {"facing" : "up", "deep" : "14"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n14","x" : 270}
  },
	  { "when" : {"facing" : "south", "level" : "15"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n15","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "level" : "15"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n15"}
  },
  
  { "when" : {"facing" : "east", "level" : "15"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n15","y" : 90}
  },
  
  { "when" : {"facing" : "west", "level" : "15"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n15","y" : 270}
  },
    
  { "when" : {"facing" : "down", "level" : "15"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n15","x" : 90}
  },
  
  { "when" : {"facing" : "up", "level" : "15"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/radious_n15","x" : 270}
  },
  
 
  { "when" : {"facing" : "south", "deep" : "15"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n15","y" : 180 }
  },
  
  { "when" : {"facing" : "north", "deep" : "15"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n15"}
  },
  
  { "when" : {"facing" : "east", "deep" : "15"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n15","y" : 90}
  },
  
  { "when" : {"facing" : "west", "deep" : "15"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n15","y" : 270}
  },
    
  { "when" : {"facing" : "down", "deep" : "15"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n15","x" : 90}
  },
  
  { "when" : {"facing" : "up", "deep" : "15"},
    "apply" : {"model" : "basemmod:block/tool_circular_replacer/deepness_n15","x" : 270}
  }
	  
  
  
    
  
  ]
}
	

 

 

Link to comment
Share on other sites

You know you can use datagen to generate your jsons programmatically using builders?

https://forge.gemwire.uk/wiki/Datageneration

that is how minecraft actually creates its files. See net.minecraft.data.models.BlockGenerators

If you know the forumula, you could generate your "when"s in a for loop.

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.

Link to comment
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.
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.



×
×
  • Create New...

Important Information

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