MisterE aa31e3269a fix all mobs disappearing due to engine bug | vor 1 Jahr | |
---|---|---|
.. | ||
models | vor 3 Jahren | |
sounds | vor 3 Jahren | |
textures | vor 3 Jahren | |
README.md | vor 3 Jahren | |
api.lua | vor 3 Jahren | |
christmas_music.lua | vor 3 Jahren | |
default_music.lua | vor 3 Jahren | |
depends.txt | vor 3 Jahren | |
init.lua | vor 3 Jahren | |
license.txt | vor 3 Jahren | |
mod.conf | vor 1 Jahr | |
nodes.lua | vor 3 Jahren | |
shelf.lua | vor 3 Jahren |
The phonograph or gramophone, is a device for recording and playing sound. It was invented in 1877 by Thomas Edison. The sound vibration waveforms are recorded as corresponding physical deviations of a spiral groove engraved, etched, incised, or impressed into the surface of a rotating cylinder or disc, called a "record". To recreate the sound, the surface is similarly rotated while a playback stylus traces the groove and is therefore vibrated by it, very faintly reproducing the recorded sound. In early acoustic phonographs, the stylus vibrated a diaphragm which produced sound waves which were coupled to the open air through a flaring horn, or directly to the listener's ears through stethoscope-type earphones. [1]
Edison's phonograph used a rotating cylinder to record/play back music. In the 1890s, Emile Berliner introduced the first gramophone or phonograph to use flat discs instead of cylinders.
This Minetest mod is based on Emile Berliner's flat discs (which are, of course, the most popular) and deviates from the usual, classic phonograph style of having an external horn. The design of this gramophone or phonograph is based on devices that don't have an external horn and seems to reproduce from something that resembles a speaker [2]. The decision, of course, is to avoid something that would look entirely out of place in Minetest's cubic design. It also doesn't record music (for now).
This mod is highly inspired by the Jukebox [3] in Minecraft. However, the Minecraft device is too minimalist for my taste, and has lots to explain in terms of crafting recipe and operation. This gramophone mod attempts to be more realistic.
There are three vital components to make a gramophone work, those are:
Place a gramophone wherever you like (it looks good on top of a speaker node), and then place a speaker node next to the gramophone. It can be at any position as long as it is next to it (top, bottom, left, right, etc.) Then punch the gramophone with a disc in hand, and the disc will be placed on top of it. To make it play, just right-click the gramophone, and the disc will start playing. To stop it, just right-click it again. To take a disc out, just punch the gramophone again and you will have the disc in you inventory again.
A disc shelf is also included. Each shelf has 10 slots for holding 10 different types of music discs. Caution: The shelf, while it really looks nice, it could add to the lag on very low-end computers. This is because it uses entities to show how many discs are in the shelf (reduced to a 2:1 scale).
There are no crafting recipes as-of now. I don't want to add a flimsy crafting recipe for this as I find it very unrealistic. To get one, use creative
mode or /giveme
command. I plan to add crafting recipes in the future, where they will actually make sense.
All code is copyright (C) 2016-2017 Hector Franqui (zorman2000), licensed under the LGPLv2.1 license. See license.txt
for details.
Some inspiration (and due credit):
mcl_jukebox
mod by Wuzzy2 (metadata inventory for disc storage)itemframe
mod by TenPlus1 (disc entity texture persistance)All textures are CC-BY-SA 3.0 by Zorman2000
All music files below include the link to the original file. The following modifications has been made to these files (not all apply to all files):
Licenses apply as below.