How to create feature? NEED CUSTOM CODE *HELP!!!*

Started by J_Dog on Sat, 07/30/2016 - 06:58

Topic category: Advanced modding

Last seen on 17:30, 2. Aug 2016
Joined Mar 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
How to create feature? NEED CUSTOM CODE *HELP!!!*
Sat, 07/30/2016 - 06:58

1st Question: How to randomly spawn my mod items in chest of my structure gen. I create .shematic file, make chest in this, but i understand how to spawn items in chest. Or i've need to create special block, that keep my items randomly?

2nd Question: I create two items - empty bottle and water bottle. How to create, when i rightclicked on Blocks.water, empty bottle be delete, and add to inventory water bottle, like a vanilla fill up bottles of water.

P.S Sorry for my bad English, imma russian novice modder.