fixed language file, fixed goban up and down direction, bumped version 0.0.2
This commit is contained in:
parent
e7a76234e4
commit
e56c4f7cb7
|
@ -3,7 +3,7 @@ org.gradle.jvmargs = -Xmx1G
|
||||||
org.gradle.parallel = true
|
org.gradle.parallel = true
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
version = 0.0.1
|
version = 0.0.2
|
||||||
maven_group = com.danitheskunk
|
maven_group = com.danitheskunk
|
||||||
archives_base_name = skunkstuff
|
archives_base_name = skunkstuff
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package com.danitheskunk.skunkstuff.Blocks;
|
package com.danitheskunk.skunkstuff.Blocks;
|
||||||
|
|
||||||
import net.minecraft.core.BlockPos;
|
import net.minecraft.core.BlockPos;
|
||||||
|
import net.minecraft.core.Direction;
|
||||||
import net.minecraft.world.item.context.BlockPlaceContext;
|
import net.minecraft.world.item.context.BlockPlaceContext;
|
||||||
import net.minecraft.world.level.BlockGetter;
|
import net.minecraft.world.level.BlockGetter;
|
||||||
import net.minecraft.world.level.block.Block;
|
import net.minecraft.world.level.block.Block;
|
||||||
|
@ -36,9 +37,13 @@ public class BlockGoban extends Block {
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockState getStateForPlacement(BlockPlaceContext ctx) {
|
public BlockState getStateForPlacement(BlockPlaceContext ctx) {
|
||||||
|
var facing = ctx.getNearestLookingDirection().getOpposite();
|
||||||
|
if(facing == Direction.UP || facing == Direction.DOWN) {
|
||||||
|
facing = Direction.NORTH;
|
||||||
|
}
|
||||||
return (BlockState) this.defaultBlockState().setValue(
|
return (BlockState) this.defaultBlockState().setValue(
|
||||||
DirectionalBlock.FACING,
|
DirectionalBlock.FACING,
|
||||||
ctx.getNearestLookingDirection().getOpposite()
|
facing
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"item.skunkstuff.crimson_goban": "Crimson Goban",
|
"item.skunkstuff.crimson_goban": "Crimson Goban",
|
||||||
"item.skunkstuff.dark_oak_goban": "Dark Oak Goban",
|
"item.skunkstuff.dark_oak_goban": "Dark Oak Goban",
|
||||||
"item.skunkstuff.jungle_goban": "Jungle Goban",
|
"item.skunkstuff.jungle_goban": "Jungle Goban",
|
||||||
"item.skunkstuff.mangrove.goban": "Mangrove Goban",
|
"item.skunkstuff.mangrove_goban": "Mangrove Goban",
|
||||||
"item.skunkstuff.oak_goban": "Oak Goban",
|
"item.skunkstuff.oak_goban": "Oak Goban",
|
||||||
"item.skunkstuff.spruce_goban": "Spruce Goban",
|
"item.skunkstuff.spruce_goban": "Spruce Goban",
|
||||||
"item.skunkstuff.warped_goban": "Warped Goban",
|
"item.skunkstuff.warped_goban": "Warped Goban",
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
"block.skunkstuff.crimson_goban": "Crimson Goban",
|
"block.skunkstuff.crimson_goban": "Crimson Goban",
|
||||||
"block.skunkstuff.dark_oak_goban": "Dark Oak Goban",
|
"block.skunkstuff.dark_oak_goban": "Dark Oak Goban",
|
||||||
"block.skunkstuff.jungle_goban": "Jungle Goban",
|
"block.skunkstuff.jungle_goban": "Jungle Goban",
|
||||||
"block.skunkstuff.mangrove.goban": "Mangrove Goban",
|
"block.skunkstuff.mangrove_goban": "Mangrove Goban",
|
||||||
"block.skunkstuff.oak_goban": "Oak Goban",
|
"block.skunkstuff.oak_goban": "Oak Goban",
|
||||||
"block.skunkstuff.spruce_goban": "Spruce Goban",
|
"block.skunkstuff.spruce_goban": "Spruce Goban",
|
||||||
"block.skunkstuff.warped_goban": "Warped Goban",
|
"block.skunkstuff.warped_goban": "Warped Goban",
|
||||||
|
|
Loading…
Reference in New Issue