Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0
Solra Bizna

New craftable prefabbed EEPROMs / floppies?

Question

1 answer to this question

Recommended Posts

  • 0

Moved that for you :)

 

For a mod, i.e. when not being able to edit OC's recipe file you'll basically want to create a new ItemStack of a floppy and "configure" it (otherwise you could add a loot disk via the save dir and add a recipe to the recipes Lua; not really an option here, just wanted to mention it).

 

The quick and dirty way would be to just fill out the NBT tag accordingly (which I frankly don't know off the top of my head, best thing would be to inspect that of existing items). For EEPROMs that's pretty simple, because their actual data is stored in the tag itself. For floppies that's a bit trickier, because it isn't, and on top of that there's the distinction of loot disks and normal file systems. The more elaborate way would be to get the drivers, create an environment and initialize the items using component calls. Also kinda hacky, though.

 

For EEPROMs I'd just recommend to go with setting the NBT directly for now. For a floppy, you might in fact want to create a new item and add a driver for that (using Slot.Floppy), that'd give you a lot more flexibility.

 

In the long run I guess I could add an API to register loot disks and configured EEPROMs via an IMC call or so? It's just something noone needed so far.

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.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

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

Loading...

×
×
  • Create New...

Important Information

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