Differences From
Artifact [7d79adb54e]:
87 87 pos = user:get_pos();
88 88 yaw = user:get_look_dir();
89 89 pitch = user:get_look_vertical();
90 90 angle = user:get_look_horizontal();
91 91 eyeheight = user:get_properties().eye_height;
92 92 };
93 93
94 - sound = "xdecor_enchanting"; --FIXME make own sounds
94 + sound = sp.sound or "xdecor_enchanting"; --FIXME make own sounds
95 95 sparkle = true;
96 96 }
97 97 local res = sp.cast(ctx)
98 98
99 - if res == nil or res == true then
99 + if res == nil or res == true and ctx.sound then
100 100 minetest.sound_play(ctx.sound, {
101 101 pos = user:get_pos();
102 102 gain = 1;
103 103 })
104 104 end
105 105 if ctx.sparkle then
106 - sorcery.vfx.cast_sparkle(user, ctx.color, stats.power,0.5)
106 + sorcery.vfx.cast_sparkle(user, ctx.color, stats.power,0.2)
107 107 end
108 108 local infinirune = minetest.check_player_privs(user, 'sorcery:infinirune')
109 109 if res == nil then
110 110 if not infinirune then sorcery.amulet.setrune(usedamulet) end
111 111 end
112 112
113 113 if stack:get_count() == 1 then
................................................................................
164 164 recipe = {
165 165 {amuletname};
166 166 {disc};
167 167 -- {'', frag,''};
168 168 -- {frag,amuletname,frag};
169 169 -- {'', frag,''};
170 170 };
171 + }
172 + minetest.register_craft {
173 + output = amuletname;
174 + type = 'shapeless';
175 + recipe = { framedid, 'xdecor:hammer'; };
176 + replacements = {
177 + {'xdecor:hammer', 'xdecor:hammer'};
178 + {framedid, disc};
179 + };
171 180 }
172 181 end)
173 182 end
174 183 minetest.register_craft {
175 184 type = 'shapeless';
176 185 recipe = (minetest.get_modpath('xdecor') and {
177 186 'xdecor:hammer', itemname;