making energy mod like industrialcraft or buildcraft

Started by mangamaniacs2064 on Fri, 07/21/2017 - 15:19

Topic category: Help with modding (Java Edition)

Last seen on 14:49, 26. Oct 2019
Joined Jul 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
making energy mod like industrialcraft or buildcraft
Fri, 07/21/2017 - 15:19

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.

Last seen on 00:21, 11. Aug 2019
Joined Aug 2013
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.

Last seen on 14:49, 26. Oct 2019
Joined Jul 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 14:49, 26. Oct 2019
Joined Jul 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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..

Last seen on 00:21, 11. Aug 2019
Joined Aug 2013
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.

Last seen on 14:49, 26. Oct 2019
Joined Jul 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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