Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

I want to create a custom Fire. And want to define a Animation for 2 layers. Does anybody have a json snippet to do so?

Edited by HansPeter

1 hour ago, HansPeter said:

I want to create a custom Fire. And want to define a Animation for 2 layers. Does anybody have a json snippet to do so?

What do you mean by a custom fire? A custom block of fire? A custom fire item? What do you want it to look like?

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

  • Author

aOh, sorry for my ambiguous question

I want to create/set a custom block of fire and I also want to use the original Minecraft animiation, texture and model.

(To "place" the Fire-Block I will create my own "flint and steel" later. <-- but that is'nt the question)

 

 

Should i set the Model of the Fire in the Mehtod directly?


 

@Override
 public void registerModels() 
 {

    ....use original "FireModel"

}

 

 

In my ressources which values should I set the in the json's?

(I know the fire uses 2 layers but i don't know the right syntax to write it in the json's) So currently i have:

 

assets.myID 

-> blockstates:

 

curstomfire:json

{
    "variants": {
        "normal": { "model": "bk:endless_fire_block" }
    }
}

 

-> models.block:

curstomfire:json

{
   "parent": "block/cube_all",
   "textures": {
       "layer0": "bk:blocks/endless_fire_block_layer_0",
       "layer1": "bk:blocks/endless_fire_block_layer_1"
   }
}

 

-> textures.blocks:

 

curstomfire_layer_0:json

{
  "animation": {    "frames": [      16,      17,      18,      19,      20,      21,      22,      23,      4,      25,      26,      27,      28,      29,      30,      31,      0,      1,      2,      ,      4,      5,      6,      7,      8,      9,      10,      11,      12,      13,      14,     15    ]  
				}
}   
<--- here i want to use the original animation values inseat to create a curstom "animation".script is this possible?

 

 

curstomfire_layer_1:json

{
  "animation": {}
}

 

 

but this does not work for me...

 

Edited by HansPeter

43 minutes ago, HansPeter said:

I want to create/set a custom block of fire and I also want to use the original Minecraft animiation, texture and model.

point your block state JSON to the vanilla fire model

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

  • Author

Thank's for the fast answer.

Yehr, ok I cant figure it it.

 

I now use this in "blockstates:"

{
    "variants": {
        "normal": { "model": "minecraft:fire" }
    }
}

 but i don't geht the right Texture.

 

 

7 minutes ago, HansPeter said:

Thank's for the fast answer.

Yehr, ok I cant figure it it.

 

I now use this in "blockstates:"


{
    "variants": {
        "normal": { "model": "minecraft:fire" }
    }
}

 but i don't geht the right Texture.

 

 

what do you get?

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Well, your blockstate file has to both (a) handle all the states (b) point to models that exist. Neither is true in your code.

 

The vanilla blockstate JSON is:

{
    "multipart": [
        {   "when": {"north": false, "east": false, "south": false, "west": false, "up": false},
            "apply": [
                { "model": "fire_floor0" },
                { "model": "fire_floor1" }
            ]
        },
        {   "when": {"OR": [{"north": true}, {"north": false, "east": false, "south": false, "west": false, "up": false}]},
            "apply": [
                { "model": "fire_side0" },
                { "model": "fire_side1" },
                { "model": "fire_side_alt0" },
                { "model": "fire_side_alt1" }
            ]
        },
        {   "when": {"OR": [{"east": true}, {"north": false, "east": false, "south": false, "west": false, "up": false}]},
            "apply": [
                { "model": "fire_side0", "y": 90 },
                { "model": "fire_side1", "y": 90 },
                { "model": "fire_side_alt0", "y": 90 },
                { "model": "fire_side_alt1", "y": 90 }
            ]
        },
        {   "when": {"OR": [{"south": true}, {"north": false, "east": false, "south": false, "west": false, "up": false}]},
            "apply": [
                { "model": "fire_side0", "y": 180 },
                { "model": "fire_side1", "y": 180 },
                { "model": "fire_side_alt0", "y": 180 },
                { "model": "fire_side_alt1", "y": 180 }
            ]
        },
        {   "when": {"OR": [{"west": true}, {"north": false, "east": false, "south": false, "west": false, "up": false}]},
            "apply": [
                { "model": "fire_side0", "y": 270 },
                { "model": "fire_side1", "y": 270 },
                { "model": "fire_side_alt0", "y": 270 },
                { "model": "fire_side_alt1", "y": 270 }
            ]
        },
        {   "when": {"up": true},
            "apply": [
                { "model": "fire_up0" },
                { "model": "fire_up1" },
                { "model": "fire_up_alt0" },
                { "model": "fire_up_alt1" }
            ]
        }
    ]
}

 

So you can firstly see that there is no model that is just called "fire". Furthermore, there are a number of states that need to be handled.

 

By the way, your console should have warnings in it telling you what is missing (i.e. what states it needs handled).

Edited by jabelar

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.