EXP Turtles - Can they drop EXP?

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Succubism

New Member
Jul 29, 2019
2,181
0
1
Hey guys.

I've used:
x = peripheral.wrap("right")
x = setAutoCollect(false)

All this seems to work, when autocollect's on or not, however using: x.dropLevels(30) Always returns "lua:52: attempt to call nil"

Any thoughts?
 

Hoff

Tech Support
Oct 30, 2012
2,901
1,502
218
No they cannot drop levels. The reason it returns nil is because it is not a valid command. The only way to get experience out of them is enchanting books or tools.
 

Enigmius1

New Member
Jul 29, 2019
499
0
0
You're over-writing the peripheral.wrap assignment when you re-define x as "setAutoCollect(false)".

That snippet of code should read

x = peripheral.wrap("right")
x.setAutoCollect(false)

Done that way, x.dropLevels(30) should work because x will be assigned properly.
 

Succubism

New Member
Jul 29, 2019
2,181
0
1
I didn't think so. Reason I ask is because of this.

51YZK.png
[DOUBLEPOST=1382977921][/DOUBLEPOST]
This is just an error in my post, I'm not used to programming so I didn't notice it right away.
It was done correctly as you noted in the actual game.
 

Enigmius1

New Member
Jul 29, 2019
499
0
0
It could be a version issue (ie. the version with the drop XP feature is not the version you're using) or it could be a bug in the API.
 

Hoff

Tech Support
Oct 30, 2012
2,901
1,502
218
Ahh I had no idea he added in such a function. My apologies.[DOUBLEPOST=1382978980][/DOUBLEPOST]Actually just where did you get that info? His CC thread has no mention of the dropXP or dropLevels commands.
 
  • Like
Reactions: Succubism

Succubism

New Member
Jul 29, 2019
2,181
0
1
Ahh I had no idea he added in such a function. My apologies.[DOUBLEPOST=1382978980][/DOUBLEPOST]Actually just where did you get that info? His CC thread has no mention of the dropXP or dropLevels commands.

http://www.computercraft.info/forums2/index.php?/topic/5710-cc-147mc-145-xp-turtle/[DOUBLEPOST=1382980147][/DOUBLEPOST]
It could be a version issue (ie. the version with the drop XP feature is not the version you're using) or it could be a bug in the API.

Probably. As the link above specifies the information is outdated in contrast to the modpack I'm using (Unleashed v1.1.3)