Jump to content

Ore with drop wich varies depending the time of the world


Maxime le français

Recommended Posts

Hello,

Fews month ago I start to modding in 1.10.2, today I restart my mod but in 1.16.4, 

I rewritten my coded, and I have question about the loot table of my blocks, before it was in the block's class, now it's in the loot table but I have a problem, is it possible to have different loot if it is day or night? I succeed to do that in 1.10.2 with the method isDayTime() int the World class, but I don't know how do that in 1.16.4 or I don't even know if it's possible.

I hope you can help me and I thanks you, 

I'm sorry for my english, I did what I could to make my message as understandable as possible,

Thanks you !

Link to comment
Share on other sites

 I make this, it's good?

 

{
  "type": "minecraft: block",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        "conditions": [
        {
        "minecraft: time_check",
          I check if the value is day,
        }
          {
          "type": "minecraft: item",
          "name": "eclipsium: lunarium_shard",
        }
        {
          "condition": "minecraft: time_check",
          I check if the value isn't day,
        }
        {
          "type" : "minecraft: élément ",
          " nom ":" eclipsium: solarium_shard "
        }
        ],
      ]
    }
  ]
}

 

Edited by Maxime le français
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.

Announcements



×
×
  • Create New...

Important Information

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