diff --git a/README.md b/README.md index ad5b0f7..1c79a60 100644 --- a/README.md +++ b/README.md @@ -28,11 +28,12 @@ We Hope you enjoy playing it and all feedback is welcome! - Some sounds - Basic mobs (Fish and pigs, as of last update) - Basic smelting and crafting recipies. +- Working hardcore mode. +- Crafting of items ## Planned - Add moddable mapgen API -- Crafting of items - More trees and plants - Add More sounds and music - More general gameplay @@ -42,7 +43,6 @@ We Hope you enjoy playing it and all feedback is welcome! #### pre-alpha v0.1.0 to alpha v0.2.0 goals - Add more trees and plants, flowers maybe. -- Add sounds - Add pvp physics and more weapons (Bow and club) - Add lootable structures diff --git a/changelog.md b/changelog.md index d65befa..bc5a264 100644 --- a/changelog.md +++ b/changelog.md @@ -16,4 +16,5 @@ - Add proper multiplayer weather system -Xeno333 - Improve UI add new function to core_1042 -Xeno333 - Add cooking and improve food API -Xeno333 -- Add aux1 uses via _1042_on_use -Xeno333 \ No newline at end of file +- Add aux1 uses via _1042_on_use -Xeno333 +- Add sounds and hardcore setting -Xeno333 \ No newline at end of file diff --git a/mods/1042_core/init.lua b/mods/1042_core/init.lua index 1efd843..6b9af22 100644 --- a/mods/1042_core/init.lua +++ b/mods/1042_core/init.lua @@ -22,6 +22,13 @@ if core.features.hotbar_hud_element ~= true then end end +if core.settings:get("1042_enable_hardcore") == "true" then + core.register_on_dieplayer(function(player, reason) + local name = player:get_player_name() + core.kick_player(name, "You died in 1042 while playing in hardcore mode.", false) + core.ban_player(name) + end) +end -- key = {single_player, value} local required_settings = { diff --git a/settingtypes.txt b/settingtypes.txt index 72f5577..0039b37 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -6,6 +6,10 @@ # Recomended for novice players 1042_auto_adjust_settings (Automaticly adjust settings) bool false +# Hardcore Mode +# +# Not recomended for novice players +1042_enable_hardcore (Enable Hardcore Mode) bool false [Server settings]