Jump to content

Recommended Posts

Posted

I know this maybe is silly question, but how can I give an ID to my Block or Item in 1.7.2? Anybody knows?

Also I want help with these questions if somone know.

http://www.minecraftforge.net/forum/index.php/topic,15190.0.html

http://www.minecraftforge.net/forum/index.php/topic,15185.0.html

[spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler]LOL,Its nothing interesting here

[spoiler=Spoiler]And here too

[spoiler=Spoiler]But that image is pretty good

 

 

 

 

 

 

 

 

 

 

 

 

Posted

you don't. ID's are gone!

You do not have to deal with them anymore.

 

That's bit uncomfortably for me. But I thought so. If ID's are gone why any item still have id? Even my items, they have id 4096, 4097, etc.

 

[spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler]LOL,Its nothing interesting here

[spoiler=Spoiler]And here too

[spoiler=Spoiler]But that image is pretty good

 

 

 

 

 

 

 

 

 

 

 

 

Posted

That's bit uncomfortably for me. But I thought so. If ID's are gone why any item still have id? Even my items, they have id 4096, 4097, etc.

Id's are not totally gone. They are automatically assigned whenever you load a world. That means in world A your Item could be id 2244 and in World B it could be 15543. Don't fumble with Ids. They are automatically handled in the background.

 

No, actually ID is static and Items get it in order of loading to Minecraft. Mod Ids start from 4096 and next registered item takes ID 4097 etc. But this is not important anymore =)

[spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler]LOL,Its nothing interesting here

[spoiler=Spoiler]And here too

[spoiler=Spoiler]But that image is pretty good

 

 

 

 

 

 

 

 

 

 

 

 

Posted

No, actually ID is static and Items get it in order of loading to Minecraft. Mod Ids start from 4096 and next registered item takes ID 4097 etc. But this is not important anymore =)

Actually... No. FML adds this.

 

I know that FML does it, I say that ID is not random.

[spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler]LOL,Its nothing interesting here

[spoiler=Spoiler]And here too

[spoiler=Spoiler]But that image is pretty good

 

 

 

 

 

 

 

 

 

 

 

 

Posted

I never questioned this till updating to 1.7.2 so question is:

When world is saved blocks are saved by IDs or wat? (I mean, they are not, so what - objects?)

Item A has ID 10000 item B has ID 10001. Seems like when you swap those IDs and make B 10000 and A 10001 minecraft will autocorrect changes, like id's change never happened.

It's totally elementary knowledge, but over more than one year I've never looked into it.

1.7.10 is no longer supported by forge, you are on your own.

Posted

FML has saved the name <-> id mapping to the world file for some time now.

On disc the items/blocks are serialized to ids yes, but FML uses that mapping to translate those ids to the specific item instances in the game.

 

So yes, IDs still exist for world saves/network/serialization.

But no, you as a modder, as a player, as any of that should not give a single shit about ids it is ALL taken care of by Minecraft/FML.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted

My mod serializes sub-volumes as JSON data, in effect 3D copy & paste.

 

I wrote my mod for 1.6.4 and so used blockId values to represent serialized blocks. Now that I've mostly ported to 1.7.2, I'm sticking with blockIds for backward compatibility. I found a way to obtain the blockId for a Block using the block registry. I'll post more details if there's interest.

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I tried do download the essential mod to my mod pack but i didnt work. I paly on 1.21 and it should work. I use neoforge for my modding. The weird things is my friend somehow added the mod to his modpack and many others that I somehow can´t. Is there anything i can do? 
    • Thanks, I've now installed a slightly newer version and the server is at least starting up now.
    • i have the same issue. Found 1 Create mod class dependency(ies) in createdeco-1.3.3-1.19.2.jar, which are missing from the current create-1.19.2-0.5.1.i.jar Found 11 Create mod class dependency(ies) in createaddition-fabric+1.19.2-20230723a.jar, which are missing from the current create-1.19.2-0.5.1.i.jar Detailed walkthrough of mods which rely on missing Create mod classes: Mod: createaddition-fabric+1.19.2-20230723a.jar Missing classes of create: com/simibubi/create/compat/jei/category/sequencedAssembly/JeiSequencedAssemblySubCategory com/simibubi/create/compat/recipeViewerCommon/SequencedAssemblySubCategoryType com/simibubi/create/compat/rei/CreateREI com/simibubi/create/compat/rei/EmptyBackground com/simibubi/create/compat/rei/ItemIcon com/simibubi/create/compat/rei/category/CreateRecipeCategory com/simibubi/create/compat/rei/category/WidgetUtil com/simibubi/create/compat/rei/category/animations/AnimatedBlazeBurner com/simibubi/create/compat/rei/category/animations/AnimatedKinetics com/simibubi/create/compat/rei/category/sequencedAssembly/ReiSequencedAssemblySubCategory com/simibubi/create/compat/rei/display/CreateDisplay Mod: createdeco-1.3.3-1.19.2.jar Missing classes of create: com/simibubi/create/content/kinetics/fan/SplashingRecipe
    • The crash points to moonlight lib - try other builds or make a test without this mod and the mods requiring it
    • Do you have shaders enabled? There is an issue with the mod simpleclouds - remove this mod or disable shaders, if enabled  
  • Topics

  • Who's Online (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

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