making energy mod like industrialcraft or buildcraft

Started by mangamaniacs2064 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
making energy mod like industrialcraft or buildcraft

i need help to make a block that have an energy variable..

 

i use global variable but it increase the var everywehre so any block i look into have the same number..

for example i increase by 1 the variable when i right click on it.

 

but all the blocks have the same numbers : 1...

 

i want each block to have each own variable number.

Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You have to save the variable
Fri, 07/21/2017 - 15:41

You have to save the variable in TileEntity for each block.

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok i am trying the mcreator
Sat, 07/22/2017 - 01:35

ok i am trying the mcreator but i am new in this...

how can i try it on tileentity? juste give me a little explanation of what i have to do... i want to test it then

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
what i mean is where can i
Sun, 07/23/2017 - 00:40

what i mean is where can i use the tile entity option.. i am trying to find it..

Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You have to do it manually.
Sun, 07/23/2017 - 06:57

You have to do it manually. Make a class that extends TileEntity, give it its function and register it on init.

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
so i have to code it? i will
Sun, 07/23/2017 - 14:44

so i have to code it? i will try to find tutorial for that