Thus far there is not an easy way in 1.7.10 forge to override vanilla blocks like there was in 1.6.4 forge. That being said, I've still managed to get the original functionality of the mod (explode when you try to use a bed) working via the event handler.
What this mod does: It causes an explosion when a player tries to sleep. It does nothing else at the moment.
Compatibility: This version will directly interfere with anything that triggers a PlayerSleepInBedEvent and cause a damaging explosion. Works on client and server, built on Forge 10.13.0.1180
1.6.4 version (original post):
I fully acknowledge that this is my first mod and probably only mod. It only exists because:
1. I thought Hardcore was far too easy if people just sleep every night to avoid dangerous mobs entirely.
2. I'll use it on my own server as a means to permanently end "plz sleep" requests every 10 minutes.
3. I couldn't find a mod that already did this.
What this mod does: It overrides block 26 (beds) with a bed that explodes when you right click it. It also has it's own texture for lols. That's all it does at the moment. This makes sleeping in a non-modded bed impossible and also means one will always respawn at the main spawn point if not in hardcore mode (possibly useful for adventure/pre-made maps).
Why no config? There's nothing to config at the moment. If people want an option for the original bed texture, I'll see what I can do for a future version.
Why not just not sleep? This takes away the temptation. Plus, EXPLOSIONS.
Why not just remove the recipe for beds? Some mods put beds into the world.
Why not just remove beds from the game? How boring.
Do you have a suggestion for a hardcore tweak? If you do, please let me know. I'd love a good excuse to learn how to make config files for turning various features on/off.
Testing/compatibility: Should be compatible with just about everything. Works in a server/multiplayer environment. Not tested with other mods that modify beds, but should also work depending upon how they're implemented. If you find a problem let me know here so I can fix it (if it's fixable on my end). My only tester thus far is trying to exploit cheap explosions for mining.
The Meaning of Life, the Universe, and Everything.
Join Date:
4/16/2011
Posts:
45
Member Details
Ideas for config options:
* Right click transports you to the Nether/End,
- option with or without your gear
* Your spawn point is set to a random position close (configurable) near your bed.
- option to require a specific # of air blocks to be under the spawn point.
- option for the spawn point to be randomized every time you respawn
* Bed works normally, but when you wake up it deletes itself.
* Bed changes to an box, obsidian on 5 sides, and the top being lava source blocks
* Bed works normally, but you respawn (or wake up) with 1 health & 1 hunger. (configurable)
*If Myst is available, right click send you to a random age.
- option with or without your gear
A related idea to make a semi-hardcore mode: as an add on for Myst, when you die you spawn into a random age.
Ideas for config options:
* Right click transports you to the Nether/End,
- option with or without your gear
I'm not sure I see the sense of this one? Once a player knows about it, it would seem to make it easier to rush the nether/end.
* Your spawn point is set to a random position close (configurable) near your bed.
- option to require a specific # of air blocks to be under the spawn point.
- option for the spawn point to be randomized every time you respawn
This is sort of something I already wanted to do as its own thing. Kind of a structure at the main spawn point that automatically teleports players to random distant points to simulate hardcore mode without requiring world deletes and compatible with smp.
* Bed works normally, but when you wake up it deletes itself.
Sounds like an easier option than what I implemented, yet still harder then normal. Options are good, so I'll see what I can do.
* Bed changes to an box, obsidian on 5 sides, and the top being lava source blocks
I'm not really sold on this one. It's a lot more griefy vs trolly and actually a way to farm obsidian/lava, if one is prepared for it.
* Bed works normally, but you respawn (or wake up) with 1 health & 1 hunger. (configurable)
Sounds good, maybe some configs for negative potion effects after sleeping as well?
*If Myst is available, right click send you to a random age.
- option with or without your gear
A related idea to make a semi-hardcore mode: as an add on for Myst, when you die you spawn into a random age.
I'm not sure Mystcraft actually allows this to be a thing through its API. It might still be possible to just dump an age book into their inventory and force the player to use it to generate a random age (with or without a disarm modifier). Unfortunately this could result in a lot of extra dimensions, which is already a performance concern on servers. So I'm not sure about this one.
Also on my todo list is
* switch over to the newer modname:blockname format for IDs for compatibility with 1.7.x once MCP gets around to releasing.
+ add a "vanilla" bed option so beds look like normal vanilla beds yet still explode or whatever when used.
+ add a "slept in/rumpled" looking bed option so beds don't look vanilla yet still have an effect per config.
Non-bed ideas would be good too. I've thought about making tool/armor recipes harder, but there are lots of mods that do that in one way or another and I'm trying to stay compatible with as many mods as I can think of. I also don't want to end up making things more tedious rather than more hard.
Y'know what?
I'm deleting my world an restarting in Hardcore mode, with your mod and the Sync mod.
Thanks for making hardcore actually hardcore!
However, some mods have their own kind of bed.
OpenBlocks has the sleeping bags.
Couldn't your mod work by:
The trigger, is someone sleeping, or minecraft is setting the time to day.
The effects, are being blown up, and it will still br night
Oh yeah, one more thing....
Do the explosions do damage?
I don't want my hardcore world getting deleted because
*I was blown up by a bed*
The Meaning of Life, the Universe, and Everything.
Join Date:
4/16/2011
Posts:
45
Member Details
If you end up in the Nether/End without gear, then that's almost the same as being killed in an explosion. If just give the player more time to realize how screwed they really are.
Maybe if you multiple ways of being preventing a bed from being used they could be randomized. This would also help prevent griefing, like trying to sleep in another players base.
Is it possible to give the bed an ability if it's clicked while its in your hotbar but not placed? Like setting you spawn point and deleting itself?
Have it that when you are lying down getting ready to sleep, all blocks within 16 (configurable) blocks ignore light levels for monster spawning. Sort of how like beds first worked.
Every time you wake up the time is set to midnight.
Y'know what?
I'm deleting my world an restarting in Hardcore mode, with your mod and the Sync mod.
Thanks for making hardcore actually hardcore!
However, some mods have their own kind of bed.
OpenBlocks has the sleeping bags.
Glad you like it. In my own modpack, Sleepless Horrors, I also include OpenBlocks. Any of the OpenBlocks items are disabled by setting their ID to 0, which I did for sleeping bags. Not all mods have this config option, but that one does. I'm fine with people using sleeping bags though. That's similar functionality to what someone else asked as a config option, allowing you to sleep (even though that's a bit too easy as far as I'm concerned) but not set spawn.
Couldn't your mod work by:
The trigger, is someone sleeping, or minecraft is setting the time to day.
The effects, are being blown up, and it will still br night
Oh yeah, one more thing....
Do the explosions do damage?
I don't want my hardcore world getting deleted because
*I was blown up by a bed*
The mod does the same thing as beds do in the Nether in Vanilla. It's a big flashy bang, but it won't hurt you unless you get set on fire or take fall damage. It doesn't do anything to the time of day or actually trigger any sleep code at all (just right clicking on the bed does it). Since I leave the original bed code alone by just overriding the bed itself, other mods can still call it fro sleeping purposes. If you have something like Creeper Collateral or similar that disables block damage or otherwise prevents blocks from being lost due to explosions, you'll be able to blow up the same bed multiple times as long as it isn't burned up in a fire.
I'm toying with the idea of making the explosions do direct damage as an option, and/or have the primed tnt sound effect or stuff like that. Getting free time to work on this is tough though x-x
If you end up in the Nether/End without gear, then that's almost the same as being killed in an explosion. If just give the player more time to realize how screwed they really are.
Normally I try to avoid just handing a hardcore player a "bad end" on a whim like that. It's basically putting them in a situation where it's completely impossible to get out of rather than just really, really hard.
Maybe if you multiple ways of being preventing a bed from being used they could be randomized. This would also help prevent griefing, like trying to sleep in another players base.
I like the idea of using multiple behaviors together. Maybe give each option a configurable use weight.
Is it possible to give the bed an ability if it's clicked while its in your hotbar but not placed? Like setting you spawn point and deleting itself?
I think it should be possible... Alternatively something like shift right clicking. I'm not sure how hardcore such an option might be, but if it ends up being relatively easy I can always toss it in as an option.
Have it that when you are lying down getting ready to sleep, all blocks within 16 (configurable) blocks ignore light levels for monster spawning. Sort of how like beds first worked.
It's not so much that they ignored light levels, it's that if you had a spawnable spot within spawn range and a conceivable path for a mob to take to get to you, it would spawn a mob near your bed (regardless of the light level on that block) to attack you to simulate that. I kinda liked that, so if I can figure out how to implement it, I will.
Every time you wake up the time is set to midnight.
Glad you like it. In my own modpack, Sleepless Horrors, I also include OpenBlocks. Any of the OpenBlocks items are disabled by setting their ID to 0, which I did for sleeping bags. Not all mods have this config option, but that one does. I'm fine with people using sleeping bags though. That's similar functionality to what someone else asked as a config option, allowing you to sleep (even though that's a bit too easy as far as I'm concerned) but not set spawn.
The mod does the same thing as beds do in the Nether in Vanilla. It's a big flashy bang, but it won't hurt you unless you get set on fire or take fall damage. It doesn't do anything to the time of day or actually trigger any sleep code at all (just right clicking on the bed does it). Since I leave the original bed code alone by just overriding the bed itself, other mods can still call it fro sleeping purposes. If you have something like Creeper Collateral or similar that disables block damage or otherwise prevents blocks from being lost due to explosions, you'll be able to blow up the same bed multiple times as long as it isn't burned up in a fire.
I'm toying with the idea of making the explosions do direct damage as an option, and/or have the primed tnt sound effect or stuff like that. Getting free time to work on this is tough though x-x
Thanks for the OpenBlocks info, I'll change the config and see what happens.
Okay, I understand, I'll try to use my will power to resist sleeping with other mods installed.
What this mod does: It causes an explosion when a player tries to sleep. It does nothing else at the moment.
1.7.10: Download
Compatibility: This version will directly interfere with anything that triggers a PlayerSleepInBedEvent and cause a damaging explosion. Works on client and server, built on Forge 10.13.0.1180
1.6.4 version (original post):
1. I thought Hardcore was far too easy if people just sleep every night to avoid dangerous mobs entirely.
2. I'll use it on my own server as a means to permanently end "plz sleep" requests every 10 minutes.
3. I couldn't find a mod that already did this.
What this mod does: It overrides block 26 (beds) with a bed that explodes when you right click it. It also has it's own texture for lols. That's all it does at the moment. This makes sleeping in a non-modded bed impossible and also means one will always respawn at the main spawn point if not in hardcore mode (possibly useful for adventure/pre-made maps).
Image:
Download:
requires forge, built it on 9.11.1.935
works with later versions through 9.11.1.965, might also work with earlier
Install: just drop it into your mods folder
Why no config? There's nothing to config at the moment. If people want an option for the original bed texture, I'll see what I can do for a future version.
Why not just not sleep? This takes away the temptation. Plus, EXPLOSIONS.
Why not just remove the recipe for beds? Some mods put beds into the world.
Why not just remove beds from the game? How boring.
Do you have a suggestion for a hardcore tweak? If you do, please let me know. I'd love a good excuse to learn how to make config files for turning various features on/off.
Testing/compatibility: Should be compatible with just about everything. Works in a server/multiplayer environment. Not tested with other mods that modify beds, but should also work depending upon how they're implemented. If you find a problem let me know here so I can fix it (if it's fixable on my end). My only tester thus far is trying to exploit cheap explosions for mining.
Are you playing Sleepless Horrors? Let me know what you think!
http://forum.feed-the-beast.com/threads/1-6-4-sleepless-horrors.39181/
Mod author. Too lazy to list mods, go here instead.
Help out the Official FTB Wiki reach a billion pages! (I keep having to update this, so let's just make it a billion)
* Right click transports you to the Nether/End,
- option with or without your gear
* Your spawn point is set to a random position close (configurable) near your bed.
- option to require a specific # of air blocks to be under the spawn point.
- option for the spawn point to be randomized every time you respawn
* Bed works normally, but when you wake up it deletes itself.
* Bed changes to an box, obsidian on 5 sides, and the top being lava source blocks
* Bed works normally, but you respawn (or wake up) with 1 health & 1 hunger. (configurable)
*If Myst is available, right click send you to a random age.
- option with or without your gear
A related idea to make a semi-hardcore mode: as an add on for Myst, when you die you spawn into a random age.
I'm not sure I see the sense of this one? Once a player knows about it, it would seem to make it easier to rush the nether/end.
This is sort of something I already wanted to do as its own thing. Kind of a structure at the main spawn point that automatically teleports players to random distant points to simulate hardcore mode without requiring world deletes and compatible with smp.
Sounds like an easier option than what I implemented, yet still harder then normal. Options are good, so I'll see what I can do.
I'm not really sold on this one. It's a lot more griefy vs trolly and actually a way to farm obsidian/lava, if one is prepared for it.
Sounds good, maybe some configs for negative potion effects after sleeping as well?
I'm not sure Mystcraft actually allows this to be a thing through its API. It might still be possible to just dump an age book into their inventory and force the player to use it to generate a random age (with or without a disarm modifier). Unfortunately this could result in a lot of extra dimensions, which is already a performance concern on servers. So I'm not sure about this one.
Also on my todo list is
* switch over to the newer modname:blockname format for IDs for compatibility with 1.7.x once MCP gets around to releasing.
+ add a "vanilla" bed option so beds look like normal vanilla beds yet still explode or whatever when used.
+ add a "slept in/rumpled" looking bed option so beds don't look vanilla yet still have an effect per config.
Non-bed ideas would be good too. I've thought about making tool/armor recipes harder, but there are lots of mods that do that in one way or another and I'm trying to stay compatible with as many mods as I can think of. I also don't want to end up making things more tedious rather than more hard.
Are you playing Sleepless Horrors? Let me know what you think!
http://forum.feed-the-beast.com/threads/1-6-4-sleepless-horrors.39181/
I'm deleting my world an restarting in Hardcore mode, with your mod and the Sync mod.
Thanks for making hardcore actually hardcore!
However, some mods have their own kind of bed.
OpenBlocks has the sleeping bags.
Couldn't your mod work by:
The trigger, is someone sleeping, or minecraft is setting the time to day.
The effects, are being blown up, and it will still br night
Oh yeah, one more thing....
Do the explosions do damage?
I don't want my hardcore world getting deleted because
*I was blown up by a bed*
Maybe if you multiple ways of being preventing a bed from being used they could be randomized. This would also help prevent griefing, like trying to sleep in another players base.
Is it possible to give the bed an ability if it's clicked while its in your hotbar but not placed? Like setting you spawn point and deleting itself?
Have it that when you are lying down getting ready to sleep, all blocks within 16 (configurable) blocks ignore light levels for monster spawning. Sort of how like beds first worked.
Every time you wake up the time is set to midnight.
Glad you like it. In my own modpack, Sleepless Horrors, I also include OpenBlocks. Any of the OpenBlocks items are disabled by setting their ID to 0, which I did for sleeping bags. Not all mods have this config option, but that one does. I'm fine with people using sleeping bags though. That's similar functionality to what someone else asked as a config option, allowing you to sleep (even though that's a bit too easy as far as I'm concerned) but not set spawn.
The mod does the same thing as beds do in the Nether in Vanilla. It's a big flashy bang, but it won't hurt you unless you get set on fire or take fall damage. It doesn't do anything to the time of day or actually trigger any sleep code at all (just right clicking on the bed does it). Since I leave the original bed code alone by just overriding the bed itself, other mods can still call it fro sleeping purposes. If you have something like Creeper Collateral or similar that disables block damage or otherwise prevents blocks from being lost due to explosions, you'll be able to blow up the same bed multiple times as long as it isn't burned up in a fire.
I'm toying with the idea of making the explosions do direct damage as an option, and/or have the primed tnt sound effect or stuff like that. Getting free time to work on this is tough though x-x
Are you playing Sleepless Horrors? Let me know what you think!
http://forum.feed-the-beast.com/threads/1-6-4-sleepless-horrors.39181/
Normally I try to avoid just handing a hardcore player a "bad end" on a whim like that. It's basically putting them in a situation where it's completely impossible to get out of rather than just really, really hard.
I like the idea of using multiple behaviors together. Maybe give each option a configurable use weight.
I think it should be possible... Alternatively something like shift right clicking. I'm not sure how hardcore such an option might be, but if it ends up being relatively easy I can always toss it in as an option.
It's not so much that they ignored light levels, it's that if you had a spawnable spot within spawn range and a conceivable path for a mob to take to get to you, it would spawn a mob near your bed (regardless of the light level on that block) to attack you to simulate that. I kinda liked that, so if I can figure out how to implement it, I will.
This sounds fairly easy to do, I'll check it out.
Are you playing Sleepless Horrors? Let me know what you think!
http://forum.feed-the-beast.com/threads/1-6-4-sleepless-horrors.39181/
Thanks for the OpenBlocks info, I'll change the config and see what happens.
Okay, I understand, I'll try to use my will power to resist sleeping with other mods installed.