fixed language file, fixed goban up and down direction, bumped version 0.0.2

This commit is contained in:
DaniTheSkunk 2022-11-07 04:06:00 +00:00
parent e7a76234e4
commit e56c4f7cb7
3 changed files with 9 additions and 4 deletions

View File

@ -3,7 +3,7 @@ org.gradle.jvmargs = -Xmx1G
org.gradle.parallel = true
# Mod Properties
version = 0.0.1
version = 0.0.2
maven_group = com.danitheskunk
archives_base_name = skunkstuff

View File

@ -1,6 +1,7 @@
package com.danitheskunk.skunkstuff.Blocks;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
import net.minecraft.world.item.context.BlockPlaceContext;
import net.minecraft.world.level.BlockGetter;
import net.minecraft.world.level.block.Block;
@ -36,9 +37,13 @@ public class BlockGoban extends Block {
}
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(
DirectionalBlock.FACING,
ctx.getNearestLookingDirection().getOpposite()
facing
);
}
}

View File

@ -4,7 +4,7 @@
"item.skunkstuff.crimson_goban": "Crimson Goban",
"item.skunkstuff.dark_oak_goban": "Dark Oak 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.spruce_goban": "Spruce Goban",
"item.skunkstuff.warped_goban": "Warped Goban",
@ -13,7 +13,7 @@
"block.skunkstuff.crimson_goban": "Crimson Goban",
"block.skunkstuff.dark_oak_goban": "Dark Oak 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.spruce_goban": "Spruce Goban",
"block.skunkstuff.warped_goban": "Warped Goban",