Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
Guest semoro

Powerful Modules (Embadded Tesseracts and other later...)

Recommended Posts

Guest semoro

XCodersTeam going back to minecraft modding.......

Now we made small mod that adds some useful robot components

Embadded Tesseracts...[ThermalExpansion]

Yes, we added upgrade for robot. It's Tesseract upgrade and Energy Tesseract Upgrade

c660dbda5a.png

It's a Tesseract upgrade, it can be installed to Slot Tier 3 in robot

When it installed, there is new component available

 

component.tesseract
It has some methods to allow you work with it.

 

--Work with activate and frequncy
component.tesseract.setFrequency(freq:number):boolean,string(failreason) -- Sets the frequency of Tesseract and activating it, returns success(Consumes energy)

component.tesseract.deactivate():boolean -- Resets the frequency of tesseract and deactivating it, returns success

component.tesseract.isActive():boolean -- returns whatever tesseract active or not

--Work with mode
component.tesseract.setSendMode():boolean,string(failreason) -- Sets tesseract to send mode, returns success(Consumes energy)

component.tesseract.setReceiveMode():boolean,string(failreason) -- Sets tesseract to receive mode, returns success(Consumes energy)

component.tesseract.isMode(receive:boolean or nil):boolean --return receive==isReceiveMode

component.tesseract.setMode(receive:boolean):boolean,string(failreason) -- Sets tesseract to receive or send mode, returns success(Consumes energy)


--Sending items and private mode
component.tesseract.sendItems([count:number]):boolean,(number or string failreason) -- (Send mode) Sends item in selected slot to tesseract, returns success and number of NOT sended items(Consumes energy)

component.tesseract.setPrivate(isPrivate:boolean):void -- Sets tesseract's private mode to given value and deactivating tesseract(If in private mode items will be sended and received to tesseracts that owned by robot owner)


When tesseract receiving items it consums energy too.

Tesseract received items will be added to firs matching or free slot

Energy tesseract can charge robot by remote sending energy:

4545135091.png

 

component.etesseract

And it has some methods, but they different from item tesseract

 

--Work with active
component.etesseract.activate():void -- Activating tesseract

component.etesseract.deactivate():void -- Deactivating tesseract

component.etesseract.isActive():boolean -- returns whatever tesseract active or not

--Work with frequency and private mode
component.etesseract.setFrequency(freq:number):boolean,(string fail) -- Sets the frequency of Tesseract and activating it, returns success

component.etesseract.resetFrequency():boolean -- Resets tesseract's frequncy, and deactivating it, returns success

component.etesseract.setPrivate(isPrivate:boolean):void -- Sets tesseract's private mode to given value and deactivating tesseract
NEW! IC2 Item charger(Version 1.1)

It a legal way to charge IC2 items in robot

19eaa656d8.png

component.itemcharger
--Its methods
component.itemcharger.getIsElectricItem():boolean,(string fail) -- Returns whatever item in selected slot is IC2 electric or not

component.itemcharger.getCharge():boolean,(string fail)/number -- Returns success, charge of item in currently select slot

component.itemcharger.getEquippedCharge():boolean,(string fail)/number -- (Needs inventory controller)Returns success, charge of item that currently equipped

component.itemcharger.rechargeItem(fromSlot:number,[count:number]):boolean,(string fail)/number -- Charges item in currently selected slot using energy from item in fromSlot, returns success, count of energy transferred

component.itemcharger.rechargeEquippedItem(fromSlot:number,[count:number]):boolean,(string fail)/number -- (Needs inventory controller)Charges item in currently equipped using energy from item in fromSlot, returns success, count of energy transferred
--Example to charge item in slot 1 using battary in slot 2

robot.select(1)
local ch=component.itemcharger
repeat
  local res=ch.rechargeItem(2)
until not res[1] or res[2]>0
Warn! 1.1.2 is compatible with OC-1.3.5

Version 1.1.5-1.6.4 => LINK

Version 1.1.2-1.7.10 => LINK

Old versions

Version 1.1.2-1.6.4 => LINK

Version 1.1-1.6.4 => LINK

Version 1.1-1.7.10 => LINK

Minecraft forum post

Enjoy!

If some bugs or ideas replay this thread.

Sorry, if my english not perfect =(

UPD: And if you have ideas where i can also post it, replay please.

UPDD: Version 1.1 addtions! Enjoy!

Link to post
Share on other sites
I set tesseract mode security restructed, sending energy, Frequency 777.

On robot lua - 

=component.etesseract.setPrivate(true)

=component.etesseract.setFrequency(777)

true

not take the energy

set tesseract mode public, Frequency 777

robot is charging

robot side by side tesseract for test

 

Install GriefPrevention plugins

Link to post
Share on other sites

Fixed in 1.1.5-1.6.4,

Fix for 1.7.10 will be later

Just a double check, it DOES work for recent Minecraft versions, right?

Other than that, as a personal opinion "XCodersTeam" doesn't feel original. Why not spice it up like "ShadowKatStudios"?

 

Link to post
Share on other sites

Just a double check, it DOES work for recent Minecraft versions, right?

Other than that, as a personal opinion "XCodersTeam" doesn't feel original. Why not spice it up like "ShadowKatStudios"?

It works stable on 1.7.10 but function component.tesseract.setPrivate(bool) may work not properly

Link to post
Share on other sites

I plannig update on weekends =) Any new ideas?

I honestly don't have much of an idea for how you can improve this other than code cleanups and maybe some APIs / Example programs to help users get familiar with the usage of your Add-on.

 

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
Reply to this topic...

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