Jump to content

Make block suck experience?


Busti

Recommended Posts

Hello everyone,

is there an easy way to make a block suck experience into it and then store the amount of experience orbs into a variable?

Like the "Brain in a jar" in Thaumcraft 3

I hope anybody can help me.

Sorry for my (maybe) bad english

 

Busti

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

Link to comment
Share on other sites

What have you tried?

 

I am not 100% sure on what the code would be so I cannot give code but this is what I think is needed but someone is welcome to correct me.

 

a) get entities in X radius of your block

b) iterate over the list of entities

c) check that its an XP entity

d) if it is a XP entity start moving it closer to the block

e) when it is within x distance of your block get the nbttag your saving the xp to add xp to this and then write it back to nbt

Link to comment
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
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



×
×
  • Create New...

Important Information

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