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

Hi,

 

I've got a few question about the Ore Dictionary.

 

  • I want to compare if the given IBlockState equals wood, so if it is wood (logs). How can I do this the best way? (should work with all other mods, so Ore Dictionary)
  • Should I register my custom dirt, grass, logs, stone and leaves with the Ore Dictionary or not? (they do not work like normal vanilla blocks of these kinds, which is the reason why I made them custom | they should only spawn in my own dimension | they have stuff like gravity)

 

Thx in advance.

Bektor

Developer of Primeval Forest.

  • Author

To 1: So basically I've got a tree and the leaves are checking if they are connected to other leaves and/or the tree itself.

So when the scanState matches wood the method should return true.

 

To 2: Well, I've got no idea if I want that my wood and stuff can be used in normal recipes. That's the problem. What would you suggest when my dimension should be harder then the one from vanilla. So harder crafting recipes and all of that stuff in my custom dimension (and it should be able to get the items into the normal dimension back for fun ^^)

Developer of Primeval Forest.

  • Author

To 1: So basically I've got a tree and the leaves are checking if they are connected to other leaves and/or the tree itself.

So when the scanState matches wood the method should return true.

Why would you use the OreDict here? Leaves should only check for their type of wood, not any.

Well, I want them to check for any time of wood. Allows me some nice stuff. ;)

 

So I think I have to save them here in a list (this is in ServerProxy) and then call itemMatches in my own method in the Block class?

    @Override
    public void postInit() { 
        OreDictionary.getOres("logWood");
    }

 

And what have I to put in here: OreDictionary.itemMatches(target, input, strict)

?

Developer of Primeval Forest.

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.