Get Length Of Song In Disk Drive
#1
Posted 09 November 2013 - 10:57 AM
Would really help for jukebox scripts when using mods that add more records
#2
Posted 09 November 2013 - 11:25 AM
Timinigs= { ["C418 - 13"]=178, ["C418 - cat"]=185, ["C418 - blocks"]=345, ["C418 - chirp"]=185, ["C418 - far"]=174, ["C418 - mall"]=197, ["C418 - mellohi"]=96, ["C418 - stal"]=150, ["C418 - strad"]=183, ["C418 - ward"]=251, ["C418 - 11"]=71, ["C418 - wait"]=238, }That table contains time each song plays. So you can use disk.getAudioTitle(string side) to get name of disc and take time from my list. Made it some time ago for Dj turtle on a server. Times are based on Minecraft-Wiki and should be close to correct (I think i rounded them up to seconds from the look of it)
EDIT: O wait this is suggestions sub-forum not Ask a Pro.... Wopse.
Edited by wojbie, 09 November 2013 - 11:29 AM.
#3
Posted 10 November 2013 - 09:02 AM
You did make the suggestion seem some what less useful. I guess if its possible to make it work with moded music disc it would be more useful.
#4
Posted 11 November 2013 - 11:37 PM
Say if your vanilla "cat" was 2:20 (140 sec) and your resource pack one was 1:49 (109 sec). On servers would use the server resource pack
#5
Posted 12 November 2013 - 09:43 AM
#6
Posted 13 November 2013 - 02:09 AM
#7
Posted 13 November 2013 - 09:11 AM
#8
Posted 13 November 2013 - 09:49 PM
Thanks,
awsmazinggenius
#9
Posted 13 November 2013 - 09:55 PM
awsmazinggenius, on 13 November 2013 - 09:49 PM, said:
#10
#11
Posted 16 November 2013 - 09:28 AM
a) It's the same for everyone
Technical reasons
c) They are the ones putting effort into server hosting, anyways.
edit: my browser screwed up this post. Sorry!
Edited by awsmazinggenius, 16 November 2013 - 09:30 AM.
#12
Posted 16 November 2013 - 02:28 PM
I am not necessarily against hardcoded disk lengths, but it is very limited. I don't think the devs would add this just because of that.
Note that I haven't spoken to a developer, this all comes from me so don't quote me on this.
#13
Posted 16 November 2013 - 10:17 PM
#14
Posted 16 November 2013 - 11:29 PM
theoriginalbit, on 16 November 2013 - 10:17 PM, said:
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users