Jump to content
  • Home
  • Files
  • Docs
  • Merch
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
  • Minecraft Forge
  • Suggestions
  • Wrench Ore Dictionary?!
Sign in to follow this  
Followers 1
calclavia

Wrench Ore Dictionary?!

By calclavia, July 7, 2012 in Suggestions

  • Reply to this topic
  • Start new topic

Recommended Posts

calclavia    81

calclavia

calclavia    81

  • World Shaper
  • calclavia
  • Forge Modder
  • 81
  • 2281 posts
Posted July 7, 2012

I wish there was something like that... Hate all the wrenches I have that fills up my chest! Maybe have Forge offer a way to allow a dictionary for mod common items. Something like ore dictionary but not for ores, instead for items that can be used interchangeably. That might be useful. I am planning on adding a system like that to my Universal Electricity API so the add-ons will have no problem using each other's items. But if Forge has something like that, then it might give some use for modders.

 

Or is there already a way you could do that?

 

Thanks,

Calclavia

  • Quote

Share this post


Link to post
Share on other sites

OvermindDL1    329

OvermindDL1

OvermindDL1    329

  • World Shaper
  • OvermindDL1
  • Members
  • 329
  • 1439 posts
Posted July 7, 2012

For common items is fine, but for items that run code it is exceedingly difficult.

  • Quote

Share this post


Link to post
Share on other sites

LexManos    1521

LexManos

LexManos    1521

  • Reality Controller
  • LexManos
  • Forge Code God
  • 1521
  • 8574 posts
Posted July 7, 2012

You're right, its modifying code, however, this has been sugested many times.

And honestly, it would be up to the modders to design such a interface that wrenches should invoke.

As well as the fact that it would prolly be quite easy to have modders add compatibility themselves.

  • Quote

Share this post


Link to post
Share on other sites

calclavia    81

calclavia

calclavia    81

  • World Shaper
  • calclavia
  • Forge Modder
  • 81
  • 2281 posts
Posted July 7, 2012

You're right, its modifying code, however, this has been sugested many times.

And honestly, it would be up to the modders to design such a interface that wrenches should invoke.

As well as the fact that it would prolly be quite easy to have modders add compatibility themselves.

 

You're right. Too bad Buildcraft, IC2 and Forestry each have their own wrench (and same for my mod) and they are all not compatible with each other!

  • Quote

Share this post


Link to post
Share on other sites

OvermindDL1    329

OvermindDL1

OvermindDL1    329

  • World Shaper
  • OvermindDL1
  • Members
  • 329
  • 1439 posts
Posted July 7, 2012

You're right, its modifying code, however, this has been sugested many times.

And honestly, it would be up to the modders to design such a interface that wrenches should invoke.

As well as the fact that it would prolly be quite easy to have modders add compatibility themselves.

 

You're right. Too bad Buildcraft, IC2 and Forestry each have their own wrench (and same for my mod) and they are all not compatible with each other!

Often the wrenches do different things though, especially based on various states.

 

What they *should* do it make a mod that includes a few tools like wrenches or screwdrivers or whatever and have their mod require it, but you know how well that works.

Or at least an API they can include that does that but only loads one copy from all mods...

  • Quote

Share this post


Link to post
Share on other sites

jampot5000    3

jampot5000

jampot5000    3

  • Tree Puncher
  • jampot5000
  • Members
  • 3
  • 11 posts
Posted July 7, 2012

I know as far as forestry is concerned the API allows you to add a wrench of your own to be usable on the forestry engines, but honestly not a clue on buildcraft and such.

  • Quote

Share this post


Link to post
Share on other sites

calclavia    81

calclavia

calclavia    81

  • World Shaper
  • calclavia
  • Forge Modder
  • 81
  • 2281 posts
Posted July 7, 2012

I know as far as forestry is concerned the API allows you to add a wrench of your own to be usable on the forestry engines, but honestly not a clue on buildcraft and such.

 

Buildcraft has this hook allowing you to add the wrench, but then it's only available in BC 3 which won't be release till MC 1.3 I guess.

  • Quote

Share this post


Link to post
Share on other sites

jampot5000    3

jampot5000

jampot5000    3

  • Tree Puncher
  • jampot5000
  • Members
  • 3
  • 11 posts
Posted July 7, 2012

That's a step forward at least then I guess, least if you need to add a wrench you can try and make it as compatible as possible. For reference if anyone looks the forestry wrench bit is in.

 

forestry.api.core.ForestryApi and you use it by doing

 

registerWrench(ItemStack); and it returns true if it has managed to register it and false if it doesn't.

  • Quote

Share this post


Link to post
Share on other sites

DarkGuardsman    61

DarkGuardsman

DarkGuardsman    61

  • World Shaper
  • DarkGuardsman
  • Forge Modder
  • 61
  • 1479 posts
Posted July 8, 2012

I thought the tools themselves didn't do anything but the machine just reacted to the right click with the item. Similar to how my machine are set up in steam power. They just look for a right click of the wrench then rotate the machine. What could be done in my code is change it to look for an instance of IWrench which would be implemented by every wrench. Then no matter which mod it would rotate if the item use IWrench .

  • Quote

Share this post


Link to post
Share on other sites

Jarofdoom    9

Jarofdoom

Jarofdoom    9

  • Creeper Killer
  • Jarofdoom
  • Forge Modder
  • 9
  • 101 posts
Posted July 8, 2012

I know as far as forestry is concerned the API allows you to add a wrench of your own to be usable on the forestry engines, but honestly not a clue on buildcraft and such.

 

Buildcraft has this hook allowing you to add the wrench, but then it's only available in BC 3 which won't be release till MC 1.3 I guess.

 

I'm playing BC3 :-/

  • Quote

Share this post


Link to post
Share on other sites

Sengir    0

Sengir

Sengir    0

  • Tree Puncher
  • Sengir
  • Members
  • 0
  • 1 post
Posted July 12, 2012

https://github.com/SirSengir/BuildCraft/blob/master/common/net/minecraft/src/buildcraft/api/tools/IToolWrench.java

 

Forestry will also switch to that solution at some point.

  • Quote

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 1
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • darkgreenminer
      [1.12.2] Multiple Structure Generation

      By darkgreenminer · Posted just now

      Someone else had that same problem of their mod only spawning the last structure added to WorldGenCustomStructures, and I remembered that the solution I found was what a commentor named Redstone Tim mentioned, that in WorldGenStructure you have to remove 'static'.  I'm happy to email my version of these two classes to you if you want to have a look.  It took me hours and hours to get them working.  I have no idea what might cause the cascading gen lag, but fixing the multiple structure problem might help.    
    • troyvs
      problems starting with modding

      By troyvs · Posted 44 minutes ago

      what command did you run to set up?  
    • MightyAhmed
      Immediate Crash On Any Version Of Forge

      By MightyAhmed · Posted 1 hour ago

      ok so its been a while but it was workling fine before somehow but now minecraft still works it just freezes and lagspikes every 5 seconds please help me on this issue i cant find anything on the internet also ihave 4GB ram total in my computer and i have dedicated 2gb ram to minecraft in the JVM arguments section also i have 125 mods installed.
    • deanvangreunen
      Custom Armor Item - Help - MC/Forge 1.14.4/1.14.3

      By deanvangreunen · Posted 2 hours ago

      Hello, I'm in progress of making a Minecraft 1.14.4 Mod using Forge. Needing some help, Could you please look at the following Class File and Explain what I'm doing wrong or what I should be doing?.   The "OnArmorTick" and other ".....Tick" functions don't work.   My intent: - if water is below and near player by 1 block while the boots are on then turn the water into ice. I'm trying to implement "Frost Walking Boots"   Code: - FrostBootsItem.java <- File I need help with - My Project Repo  <- Repo, So if you want to see how my mod is setup. (includes my world saves, etc)   Dev Details: - Minecraft Version: 1.14.4 - Minecraft Snapshot: 20191020-1.14.3 - Forge Version: 1.14.4-28.1.61   Notes: - I've followed a tutorial for 1.14.4 modding by MCJty on youtube (The author of RFTools) - I'm new to minecraft modding. I have expeirenced as a software developer/engineer.   ❤️❤️❤️❤️❤️❤️❤️❤️❤️  ❤️  .Thanks in advance. ❤️  ❤️❤️❤️❤️❤️❤️❤️❤️❤️ 
    • DragonITA
      [1.14.4] How to get Minecraft Horse model/texture to make a custom unicorn?

      By DragonITA · Posted 2 hours ago

      please see the screenshoot above.
  • Topics

    • Merthew
      8
      [1.12.2] Multiple Structure Generation

      By Merthew
      Started November 7, 2018

    • coolian
      1
      problems starting with modding

      By coolian
      Started October 9

    • MightyAhmed
      83
      Immediate Crash On Any Version Of Forge

      By MightyAhmed
      Started November 10

    • deanvangreunen
      0
      Custom Armor Item - Help - MC/Forge 1.14.4/1.14.3

      By deanvangreunen
      Started 2 hours ago

    • DragonITA
      48
      [1.14.4] How to get Minecraft Horse model/texture to make a custom unicorn?

      By DragonITA
      Started December 9

  • Who's Online (See full list)

    • ricoc90
    • GttiqwT
    • darkgreenminer
    • Choonster
    • bitman
    • Ommina
    • ericgolde555
    • AkosM
    • jinenze
  • All Activity
  • Home
  • Minecraft Forge
  • Suggestions
  • Wrench Ore Dictionary?!
  • Theme
  • Contact Us
  • Discord

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