Jump to content

Recommended Posts

Posted (edited)

This is more of a question of whether this is possible, not so much how its done, that part I can figure out if I know its possible. My issue is as follows: I have a blockstate file for a block that defines a multi-part structure as to change the model depending on different things like sides. I also have a need to use a multi-layer model as to allow for a translucent glowing overlay over the model. In my testing I was not able to define both, as in once I add in the multi-layer aspect it no longer loads due to variants not being found, but attempting to place the multi-part within the variants leads to them once again not loading in, as in:

Spoiler

"forge_marker": 1,
		"defaults": {
			"model": "forge:multi-layer",
			"custom": {
				"base": "radiance:edge_lamp_white#base",
				"Solid": "radiance:edge_lamp_white#base",
				"Translucent": "radiance:edge_lamp_white#glow"
			},
			"transform": "forge:default-block"
		},
    "base": [{
      "custom": { "flip-v": true },
      "model": "radiance:edge_lamp_white"
    }],
    "glow": [{
      "model": "radiance:edge_lamp_glow", "textures": { "overlay": "radiance:blocks/glow" }
    }]

 

this creates the translucent part correctly, but separate from this I have

Spoiler

"multipart": [
        {   "when": {"OR":[{ "north": true }, {"north":false,"south":false,"west":false,"east":false}]},
            "apply": { "model": "radiance:edge_lamp_glow" }
        },
        {   "when": {"OR":[{ "east": true }, {"north":false,"south":false,"west":false,"east":false}]},
            "apply": { "model": "radiance:edge_lamp_glow", "y": 90  }
        },
        {   "when": {"OR":[{ "south": true }, {"north":false,"south":false,"west":false,"east":false}]},
            "apply": { "model": "radiance:edge_lamp_glow", "y": 180 }
        },
        {   "when": {"OR":[{ "west": true }, {"north":false,"south":false,"west":false,"east":false}]},
            "apply": { "model": "radiance:edge_lamp_glow", "y": 270 }
        },
		{   "when": { "top_left": true },
            "apply": { "model": "radiance:edge_lamp_vertical"}
        },
		{   "when": { "top_right": true },
            "apply": { "model": "radiance:edge_lamp_vertical", "y": 90 }
        },
		{   "when": { "bottom_right": true },
            "apply": { "model": "radiance:edge_lamp_vertical", "y": 180 }
        },
		{   "when": { "bottom_left": true },
            "apply": { "model": "radiance:edge_lamp_vertical", "y": 270 }
        }
    ],

 

Is it possible to have both a multi-layer model and a multipart defined? Keep in mind the code snippets provided may not be complete, they were taken from separate models that work individually, its combining them that I can't make sense of

Edited by TerdyTheTerd
Closing, but there is no close feature...why
Posted

Which Minecraft version are you using? In 1.14.4/1.15.2, the Forge blockstates format has been deprecated/removed; and the model system has been reworked such that multi-layer models are defined in the model file itself rather than the blockstates file.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted

Ahh well that likely puts me on my own then, I'm using 1.12.2, which I know many of the users here will quickly paste in a generic message about it not being supported, regardless of the question, simply for being on a different version...

 

I really just want to know if its possible to do via blockstates, otherwise I'll look into doing it another method.

Posted

I appreciate the response Choonster, others on this site are not as caring.

Closing this myself (why is there no close feature?) before a certain someone decides to remove replies and close with a generic BS response of no longer being supported. I recently replied to someone else's post trying to offer them support, and a moderator then REMOVED my reply to close their post with a generic BS response, unreal. If the stick up your ass is really that long against "unsupported" versions, then require the post to select a version, "unsupported" versions then go into a separate section, of which you can blissfully ignore, really not that difficult...you know who you are

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

    • Any way I can fix it? I tried /flywheel backend instancing, and now the issue is limited to curved train tracks.
    • It is a rendering issue with embeddium/oculus
    • So, I have a minecraft world hosted with essential on forge 1.20.1, there's 149 mods, and the forge version is 47.3.0, and it's been like that for a good 2-3 weeks, and all of a sudden, it stopped loading, and I have 0 clue as to why, and this world means A LOT to me, so if anyone out there is able to help, I would GLADLY appreciate it. here's the link if ya wanna help:   [04Dec2024 22:42:24.552] [Worker-ResourceReload-3/ERROR][net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener/]: Couldn't parse data file slabsexpanded:snow_blockblocktoslab from slabsexpanded:recipes/snow_blockblocktoslab.json com.google.gson.JsonParseException: com.google.gson.stream.MalformedJsonException: Expected name at line 16 column 4 path $.result.item at net.minecraft.util.GsonHelper.m_13780_(GsonHelper.java:526) ~[client-1.20.1-20230612.114412-srg.jar%23490!/:?] at net.minecraft.util.GsonHelper.m_263475_(GsonHelper.java:531) ~[client-1.20.1-20230612.114412-srg.jar%23490!/:?] at net.minecraft.util.GsonHelper.m_13776_(GsonHelper.java:581) ~[client-1.20.1-20230612.114412-srg.jar%23490!/:?] at net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener.m_278771_(SimpleJsonResourceReloadListener.java:41) ~[client-1.20.1-20230612.114412-srg.jar%23490!/:?] at net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener.m_5944_(SimpleJsonResourceReloadListener.java:29) ~[client-1.20.1-20230612.114412-srg.jar%23490!/:?] at net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener.m_5944_(SimpleJsonResourceReloadListener.java:17) ~[client-1.20.1-20230612.114412-srg.jar%23490!/:?] at net.minecraft.server.packs.resources.SimplePreparableReloadListener.m_10786_(SimplePreparableReloadListener.java:11) ~[client-1.20.1-20230612.114412-srg.jar%23490!/:?] at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?] at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?] at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?] at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?] at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?] at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?] at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?] Caused by: com.google.gson.stream.MalformedJsonException: Expected name at line 16 column 4 path $.result.item at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1657) ~[gson-2.10.jar%23107!/:?] at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:514) ~[gson-2.10.jar%23107!/:?] at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:422) ~[gson-2.10.jar%23107!/:?] at com.google.gson.internal.bind.TypeAdapters$28.read(TypeAdapters.java:779) ~[gson-2.10.jar%23107!/:?] at com.google.gson.internal.bind.TypeAdapters$28.read(TypeAdapters.java:725) ~[gson-2.10.jar%23107!/:?] at com.google.gson.internal.bind.TypeAdapters$34$1.read(TypeAdapters.java:1007) ~[gson-2.10.jar%23107!/:?] at net.minecraft.util.GsonHelper.m_13780_(GsonHelper.java:524) ~[client-1.20.1-20230612.114412-srg.jar%23490!/:?]
  • Topics

×
×
  • Create New...

Important Information

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