Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [SOLVED] [1.15.2] Found validation problem in {}.pools[0].entries[0]: Unreachable entry!
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
MyRedAlien43

[SOLVED] [1.15.2] Found validation problem in {}.pools[0].entries[0]: Unreachable entry!

By MyRedAlien43, February 25, 2020 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

MyRedAlien43    0

MyRedAlien43

MyRedAlien43    0

  • Tree Puncher
  • MyRedAlien43
  • Members
  • 0
  • 37 posts
Posted February 25, 2020 (edited)

I've been trying to add loot tables to my blocks + override vanilla ones but it posts this warning message despite what I do, and it's becoming annoying.
The loot tables work, but I want to get rid of this warning message so I can actually do this right.
What does this mean?

Example loot table json (most of them are like this):

{
    "type": "minecraft:block",
    "pools": [
        {
            "name": "organic_grass",
            "rolls": 1,
            "entries": [
                {
                    "type": "minecraft:alternatives",
                    "children": [
                        {
                            "type": "minecraft:item",
                            "conditions": [
                                {
                                    "condition": "minecraft:match_tool",
                                    "predicate": {
                                        "enchantments": [
                                            {
                                                "enchantment": "minecraft:silk_touch",
                                                "levels": {
                                                    "min": 1
                                                }
                                            }
                                        ]
                                    }
                                }
                            ],
                            "name": "undergroundadditions:organic_grass"
                        },
                        {
                            "type": "minecraft:item",
                            "functions": [
                                {
                                    "function": "minecraft:set_count",
                                    "count": 4
                                },
                                {
                                    "function": "minecraft:explosion_decay"
                                }
                            ],
                            "name": "undergroundadditions:dirt_chunk"
                        },
                        {
                            "type": "minecraft:item",
                            "conditions": [
                                {
                                    "condition": "minecraft:random_chance",
                                    "chance": 0.125
                                }
                            ],
                            "name": "undergroundadditions:grass_seeds"
                        }
                    ]
                }
            ]
        }
    ]
}

 

Edited February 26, 2020 by MyRedAlien43
  • Quote

Share this post


Link to post
Share on other sites

desht    91

desht

desht    91

  • Creeper Killer
  • desht
  • Members
  • 91
  • 244 posts
Posted February 25, 2020

Your pool is of type "alternatives", which means "select one sub-entry from a list".  Your second sub-entry (dirt_chunk) has no condition, so it's always successful; therefore the third entry (grass_seeds) will never be reached.

  • Quote

Share this post


Link to post
Share on other sites

MyRedAlien43    0

MyRedAlien43

MyRedAlien43    0

  • Tree Puncher
  • MyRedAlien43
  • Members
  • 0
  • 37 posts
Posted February 25, 2020
4 hours ago, desht said:

Your pool is of type "alternatives", which means "select one sub-entry from a list".  Your second sub-entry (dirt_chunk) has no condition, so it's always successful; therefore the third entry (grass_seeds) will never be reached.

what condition can I put there?

  • Quote

Share this post


Link to post
Share on other sites

Draco18s    2402

Draco18s

Draco18s    2402

  • Reality Controller
  • Draco18s
  • Members
  • 2402
  • 15924 posts
Posted February 25, 2020
31 minutes ago, MyRedAlien43 said:

what condition can I put there?

Any condition you want.

What's your goal?

  • Quote

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Share this post


Link to post
Share on other sites

MyRedAlien43    0

MyRedAlien43

MyRedAlien43    0

  • Tree Puncher
  • MyRedAlien43
  • Members
  • 0
  • 37 posts
Posted February 26, 2020
14 hours ago, Draco18s said:

Any condition you want.

What's your goal?

I want for it to always give dirt chunks when broken, but only grass seeds within a chance.

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7592

diesieben07

diesieben07    7592

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7592
  • 55029 posts
Posted February 26, 2020

As I understand it you'd have to use multiple entries then.

  • Quote

Share this post


Link to post
Share on other sites

MyRedAlien43    0

MyRedAlien43

MyRedAlien43    0

  • Tree Puncher
  • MyRedAlien43
  • Members
  • 0
  • 37 posts
Posted February 26, 2020
12 minutes ago, diesieben07 said:

As I understand it you'd have to use multiple entries then.

like this?

{
    "type": "minecraft:block",
    "pools": [
        {
            "rolls": 1,
            "entries": [
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "function": "minecraft:set_count",
                            "count": 4
                        },
                        {
                            "function": "minecraft:explosion_decay"
                        }
                    ],
                    "name": "undergroundadditions:dirt_chunk"
                },
                {
                    "type": "minecraft:item",
                    "conditions": [
                        {
                            "condition": "minecraft:random_chance",
                            "chance": 0.125
                        }
                    ],
                    "name": "undergroundadditions:grass_seeds"
                }
            ]
        }
    ]
}

 

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7592

diesieben07

diesieben07    7592

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7592
  • 55029 posts
Posted February 26, 2020

Looks right. But I am not 100% sure how multiple entries behave - i.e. if they always all generate.

  • Quote

Share this post


Link to post
Share on other sites

MyRedAlien43    0

MyRedAlien43

MyRedAlien43    0

  • Tree Puncher
  • MyRedAlien43
  • Members
  • 0
  • 37 posts
Posted February 26, 2020
13 minutes ago, diesieben07 said:

Looks right. But I am not 100% sure how multiple entries behave - i.e. if they always all generate.

What do you mean? Also, it works.

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7592

diesieben07

diesieben07    7592

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7592
  • 55029 posts
Posted February 26, 2020

If it works then disregard my comment.

  • Thanks 1
  • Quote

Share this post


Link to post
Share on other sites

Draco18s    2402

Draco18s

Draco18s    2402

  • Reality Controller
  • Draco18s
  • Members
  • 2402
  • 15924 posts
Posted February 26, 2020
3 hours ago, MyRedAlien43 said:

What do you mean? Also, it works.

diesieben07's comment was in reference to the fact that by just looking at the json he can't be sure that it's correct. It looks right, but not completely sure. The only way to find out is to run the game and test it.

  • Quote

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Share this post


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

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Wintersky20
      Modifying / Replacing Vanilla Blocks (1.16.X)

      By Wintersky20 · Posted 27 minutes ago

      Ok , I'll try it  Thanks for the replay I'll let you know if is working 
    • AurenX
      Modifying / Replacing Vanilla Blocks (1.16.X)

      By AurenX · Posted 32 minutes ago

      Note: I am using registry events instead of deferred registry so if someone chimes in on a difference that works better than listen to them. this method still works so i am yet to be motivated to change. I am able to replace blocks using the RegistryEvent.Register<Block>. I get the old resource location ForgeRegistries.BLOCKS.getKey(oldBlock); and set the custom block with that blocks registry location newBlock.setRegistryName(resourceLocation); ForgeRegistries.BLOCKS.register(newBlock); I also replace the Item (again i dont know if this is still needed as doing so still works so i have yet to change it)
    • Thorius
      I don't know how forge works

      By Thorius · Posted 42 minutes ago

      Did you run your server?  
    • Wintersky20
      Modifying / Replacing Vanilla Blocks (1.16.X)

      By Wintersky20 · Posted 44 minutes ago

      Ok guys .. So , I'm trying to replace a vanilla block in 1.16.4 but no luck! First I created a Workspace like I always do .. I created a block class for my replaced block: public class ExempleBlock extends CactusBlock /*just an ex.*/ { public ExempleBlock() { super(AbstractBlock.Properties.from(Blocks.CACTUS)); } } Then I tried to register it : First method( copied from an old 1.12 mod by rwTema ) @Mod.EventHandler/* not in 1.16*/ public void preinit(FMLPreInitializationEvent event) {/* not in 1.16 , I think*/ Block blockDietHopper = new BlockDietHopper(); ForgeRegistries.BLOCKS.register(blockDietHopper); } Then I tried to do this with a new registry event //from the exemple mod private void setup(final FMLCommonSetupEvent event){ Block ex = new ExempleBlock(); ForgeRegistries.BLOCKS.register(ex); } no luck Then I tried this : @Mod(ExempleMain.MOD_ID) public class ExempleMain { public static final String MOD_ID = "id"; private static final Logger LOGGER = LogManager.getLogger(); public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, "minecraft"); public static final RegistryObject<Block> BETTER_EXEMPLE = BLOCKS.register("exemple_block", () -> new ExempleBlock()); public ExempleMain() { IEventBus bus = FMLJavaModLoadingContext.get().getModEventBus(); bus.addListener(this::setup); ExempleMain.BLOCKS.register(bus); } private void setup(final FMLCommonSetupEvent event){} } No luck   The idea is , I want to modify the TileEntity or the TESR for the vanilla blocks (ex: tools hovering on enchanting table , Nethar anchor GUI, Composter GUI, etc)   Note: I use IntelliJ and mdk-1.16.4-35.1.37   And Thanks for every topic
    • Mark74
      I don't know how forge works

      By Mark74 · Posted 48 minutes ago

      I dont have that folder, should i create it?
  • Topics

    • Wintersky20
      2
      Modifying / Replacing Vanilla Blocks (1.16.X)

      By Wintersky20
      Started 44 minutes ago

    • Mark74
      4
      I don't know how forge works

      By Mark74
      Started 1 hour ago

    • Klarks
      39
      [1.16.4] How i can open a container by clicking on my mob

      By Klarks
      Started Saturday at 09:56 PM

    • MKR0902
      0
      1.12.2 Forge Server Not starting with command arguements

      By MKR0902
      Started 1 hour ago

    • Amazinwave
      0
      Amazinwave

      By Amazinwave
      Started 1 hour ago

  • Who's Online (See full list)

    • Cheezy Amuzus
    • FlashHUN
    • Jason_Whittaker
    • lgilly475
    • cyndergocrazy900000
    • Thorius
    • Talp1
    • Trynthlas
    • Rosy162
    • DoctorC
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [SOLVED] [1.15.2] Found validation problem in {}.pools[0].entries[0]: Unreachable entry!
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community