PLASMAchicken 3d3260cd71 fix(blocks): honor mob-spawn config on Waterstone/Lavastone/Sand (#104)
* fix(blocks): honor mob-spawn config on Waterstone/Lavastone

BlockMultiLayer implements ICarvable, so its item tooltip shows "Mobs
cannot Spawn on this Block" whenever canMobsSpawnOnTheChiselBlocks is
disabled, but unlike BlockCarvable it never overrode canCreatureSpawn,
so the setting was never actually enforced on Waterstone (and
Lavastone, which happened to mask the bug via its high light level
blocking hostile spawns).

Fixes GTNewHorizons/GT-New-Horizons-Modpack#26703

* fix(blocks): honor mob-spawn config on carvable Sand

Same root cause as Waterstone/Lavastone: BlockCarvableSand is a full
opaque block (Material.sand) implementing ICarvable, so it shows the
"Mobs cannot Spawn on this Block" tooltip whenever
canMobsSpawnOnTheChiselBlocks is disabled, but never overrode
canCreatureSpawn to actually enforce it.

Verified against the decompiled Forge source in build/rfg: unlike the
carvable Glass/Ice/PackedIce/Beacon blocks (which never reach
canCreatureSpawn at all because they fail the earlier solid-top-surface
check via a translucent material or renderAsNormalBlock=false), Sand
uses an opaque material with no such override, so it passes that check
and defaults canCreatureSpawn to true.
2026-09-09 08:27:21 +02:00
2026-03-05 10:52:13 +01:00
2026-04-03 22:11:57 +02:00
2022-02-27 15:44:43 -06:00
2024-02-04 19:57:32 +00:00
2021-06-27 23:13:27 +02:00
2020-02-28 12:04:09 +01:00
2022-01-17 23:33:27 -08:00
2026-04-03 22:11:57 +02:00
2026-02-21 23:00:46 +01:00
2026-04-03 22:11:57 +02:00
2026-01-02 08:48:27 +01:00
2021-12-02 10:14:36 +01:00
2014-10-27 16:26:14 -04:00
2024-01-11 22:22:29 +01:00
2023-11-07 15:32:25 -06:00
2026-04-03 22:11:57 +02:00

Chisel

Chisel is a mod for Minecraft which adds aesthetic blocks to the game through the use of a chisel.

Originally created by AUTOMATIC_MAIDEN, it was ported to Minecraft 1.7.2 by asie, and maintained by Pokefenn/Cricket during 1.7.10.

This version of the mod contains loads of new blocks, new features like the Auto Chisel and chisel modes, and lots of bugfixes.

It was previously maintained by tterrag, Drullkus (Artist), and minecreatr (1.8 Port). Forked and maintained by the GTNH team for use in the GTNH modpack.

Pull Requests

Pull requests with new features, translations, and bugfixes are very welcome.

If your PR is going to take a lot of work, it may be best to make an issue so we can discuss the feature before you create it.

See the CONTRIBUTING file for more details.

Issue Reporting

If you wish to report an issue with this version of the mod, please submit one to the GTNH issue tracker. When creating an issue, please be sure to include:

  • The version of Chisel or GTNH you are using ("latest" is not an acceptable version)
  • The crash report (preferably via Pastebin) generated by the error, if any
  • Depending on the error, an image of the problem
S
Description
No description provided
Readme GPL-2.0
18 MiB
0 Stars 1 Watchers 0 Forks
Languages
Java 99.9%
Shell 0.1%