forked from mrkite/minutor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mob spawning now according Minecraft sources
- Loading branch information
Malte
authored and
Malte
committed
Jan 25, 2014
1 parent
a67020a
commit 71be2b5
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
To allow testing for mob spawn conditions some flags have to be set according | ||
to the Minecraft source code. The Minecraft Wiki is not correct in all cases. | ||
|
||
In the Minecraft source code some major flags are defined for all blocks: | ||
isOpaque renderAsNormalBlock isLiquid and canProvidePower | ||
|
||
isLiquid: | ||
is obvious and true for still and flowing water and lava | ||
|
||
canProvidePower: | ||
is obvious all blocks that could create a redstone signal: | ||
PressurePlate(s), Button(s), TrappedChest, DaylightDetector, DetectorRail, | ||
Lever, PoweredOre = Redstone Block, RedstoneLogic = Repeater and Comperator, | ||
RedstoneTorch, RestoneWire, TripWireSource = Tripwire Hook | ||
|
||
isOpaque and renderAsNormalBlock | ||
both are more or less the same except some rare special cases: | ||
opaque blocks are always rendered as normal blocks | ||
in case they are not opaque (= transparent) they are mostely | ||
rendered NOT as normal block except: | ||
Ice, EndPortalFrame, Leaves (all kind), MobSpawner, | ||
(also: Redstone Wire in case not powered) | ||
|
||
to detect that special case, this tag has to be placed | ||
"transparent": true, | ||
"rendercube": true | ||
|
||
all other transparent blocks have to be flagged only with | ||
"transparent": true | ||
|
||
List of tranparent blocks: | ||
Anvil, PressurePlate(s), Beacon, Bed, Ice, BrewingStand, Button(s), Cactus, | ||
Cake, Carpet(s), Cauldron, Chest(s), Cocoa, DaylightDetector, Door(s), DragonEgg, | ||
EnchantmentTable, EnderChest, EndPortal, EndPortalFrame, Farmland, Fence, | ||
FenceGate, Fire, Flower(s), FlowerPot, Fluid = Water/Lava, Glass, HalfSlab(s), | ||
Hopper, Ladder, Leave(s), Lever, MobSpawner, Pane(s), PistonBase, PistonExtension, | ||
PistonMoving, Portal, Rail(s), Repeater, Comperator, RedstoneWire, Reed, Sign, | ||
Skull, Snow, Stair(s), Torch, TrapDoor, TripWire, TripWireSource, Vine, Wall, Web | ||
|
||
All this information is gathered from the 1.6.4 source code. | ||
As at the moment no deobfuscated 1.7.x code is available. | ||
|
||
[EtlamGit] |