generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
776 additions
and
5 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
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
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,24 @@ | ||
package rs.onako2; | ||
|
||
import it.unimi.dsi.fastutil.objects.Object2ObjectArrayMap; | ||
import net.minecraft.block.BlockSetType; | ||
import net.minecraft.sound.BlockSoundGroup; | ||
import net.minecraft.sound.SoundEvent; | ||
|
||
import java.util.Map; | ||
|
||
public record ModBlockSetType(String name, boolean canOpenByHand, boolean canOpenByWindCharge, boolean canButtonBeActivatedByArrows, BlockSetType.ActivationRule pressurePlateSensitivity, BlockSoundGroup soundType, SoundEvent doorClose, SoundEvent doorOpen, SoundEvent trapdoorClose, SoundEvent trapdoorOpen, SoundEvent pressurePlateClickOff, SoundEvent pressurePlateClickOn, SoundEvent buttonClickOff, SoundEvent buttonClickOn) { | ||
private static final Map<String, ModBlockSetType> VALUES = new Object2ObjectArrayMap(); | ||
public static final BlockSetType PALE; | ||
|
||
static { | ||
PALE = register(new BlockSetType("pale")); | ||
} | ||
|
||
|
||
private static BlockSetType register(BlockSetType blockSetType) { | ||
ModBlockSetType modBlockSetType = new ModBlockSetType(blockSetType.name(), blockSetType.canOpenByHand(), blockSetType.canOpenByWindCharge(), blockSetType.canButtonBeActivatedByArrows(), blockSetType.pressurePlateSensitivity(), blockSetType.soundType(), blockSetType.doorClose(), blockSetType.doorOpen(), blockSetType.trapdoorClose(), blockSetType.trapdoorOpen(), blockSetType.pressurePlateClickOff(), blockSetType.pressurePlateClickOn(), blockSetType.buttonClickOff(), blockSetType.buttonClickOn()); | ||
VALUES.put(blockSetType.name(), modBlockSetType); | ||
return blockSetType; | ||
} | ||
} |
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
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 |
---|---|---|
@@ -1,15 +1,20 @@ | ||
package rs.onako2; | ||
|
||
import net.minecraft.block.SaplingGenerator; | ||
import net.minecraft.world.gen.feature.TreeConfiguredFeatures; | ||
import net.minecraft.registry.RegistryKey; | ||
import net.minecraft.registry.RegistryKeys; | ||
import net.minecraft.util.Identifier; | ||
import net.minecraft.world.gen.feature.ConfiguredFeature; | ||
|
||
import java.util.Optional; | ||
|
||
public class PaleSapling { | ||
public static final SaplingGenerator PALE; | ||
|
||
public static final RegistryKey<ConfiguredFeature<?, ?>> PALE_REGISTRY = RegistryKey.of(RegistryKeys.CONFIGURED_FEATURE, Identifier.of("iwie", "pale_tree")); | ||
|
||
static { | ||
PALE = new SaplingGenerator("pale", Optional.empty(), Optional.of(TreeConfiguredFeatures.OAK), Optional.empty()); | ||
PALE = new SaplingGenerator("pale", Optional.of(PALE_REGISTRY), Optional.empty(), Optional.empty()); | ||
|
||
} | ||
} |
118 changes: 118 additions & 0 deletions
118
src/main/resources/assets/iwie/blockstates/pale_button.json
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,118 @@ | ||
{ | ||
"variants": { | ||
"face=ceiling,facing=east,powered=false": { | ||
"model": "iwie:block/pale_button", | ||
"x": 180, | ||
"y": 270 | ||
}, | ||
"face=ceiling,facing=east,powered=true": { | ||
"model": "iwie:block/pale_button_pressed", | ||
"x": 180, | ||
"y": 270 | ||
}, | ||
"face=ceiling,facing=north,powered=false": { | ||
"model": "iwie:block/pale_button", | ||
"x": 180, | ||
"y": 180 | ||
}, | ||
"face=ceiling,facing=north,powered=true": { | ||
"model": "iwie:block/pale_button_pressed", | ||
"x": 180, | ||
"y": 180 | ||
}, | ||
"face=ceiling,facing=south,powered=false": { | ||
"model": "iwie:block/pale_button", | ||
"x": 180 | ||
}, | ||
"face=ceiling,facing=south,powered=true": { | ||
"model": "iwie:block/pale_button_pressed", | ||
"x": 180 | ||
}, | ||
"face=ceiling,facing=west,powered=false": { | ||
"model": "iwie:block/pale_button", | ||
"x": 180, | ||
"y": 90 | ||
}, | ||
"face=ceiling,facing=west,powered=true": { | ||
"model": "iwie:block/pale_button_pressed", | ||
"x": 180, | ||
"y": 90 | ||
}, | ||
"face=floor,facing=east,powered=false": { | ||
"model": "iwie:block/pale_button", | ||
"y": 90 | ||
}, | ||
"face=floor,facing=east,powered=true": { | ||
"model": "iwie:block/pale_button_pressed", | ||
"y": 90 | ||
}, | ||
"face=floor,facing=north,powered=false": { | ||
"model": "iwie:block/pale_button" | ||
}, | ||
"face=floor,facing=north,powered=true": { | ||
"model": "iwie:block/pale_button_pressed" | ||
}, | ||
"face=floor,facing=south,powered=false": { | ||
"model": "iwie:block/pale_button", | ||
"y": 180 | ||
}, | ||
"face=floor,facing=south,powered=true": { | ||
"model": "iwie:block/pale_button_pressed", | ||
"y": 180 | ||
}, | ||
"face=floor,facing=west,powered=false": { | ||
"model": "iwie:block/pale_button", | ||
"y": 270 | ||
}, | ||
"face=floor,facing=west,powered=true": { | ||
"model": "iwie:block/pale_button_pressed", | ||
"y": 270 | ||
}, | ||
"face=wall,facing=east,powered=false": { | ||
"model": "iwie:block/pale_button", | ||
"uvlock": true, | ||
"x": 90, | ||
"y": 90 | ||
}, | ||
"face=wall,facing=east,powered=true": { | ||
"model": "iwie:block/pale_button_pressed", | ||
"uvlock": true, | ||
"x": 90, | ||
"y": 90 | ||
}, | ||
"face=wall,facing=north,powered=false": { | ||
"model": "iwie:block/pale_button", | ||
"uvlock": true, | ||
"x": 90 | ||
}, | ||
"face=wall,facing=north,powered=true": { | ||
"model": "iwie:block/pale_button_pressed", | ||
"uvlock": true, | ||
"x": 90 | ||
}, | ||
"face=wall,facing=south,powered=false": { | ||
"model": "iwie:block/pale_button", | ||
"uvlock": true, | ||
"x": 90, | ||
"y": 180 | ||
}, | ||
"face=wall,facing=south,powered=true": { | ||
"model": "iwie:block/pale_button_pressed", | ||
"uvlock": true, | ||
"x": 90, | ||
"y": 180 | ||
}, | ||
"face=wall,facing=west,powered=false": { | ||
"model": "iwie:block/pale_button", | ||
"uvlock": true, | ||
"x": 90, | ||
"y": 270 | ||
}, | ||
"face=wall,facing=west,powered=true": { | ||
"model": "iwie:block/pale_button_pressed", | ||
"uvlock": true, | ||
"x": 90, | ||
"y": 270 | ||
} | ||
} | ||
} |
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,7 @@ | ||
{ | ||
"variants": { | ||
"": { | ||
"model": "iwie:block/pale_leaves" | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/resources/assets/iwie/blockstates/pale_pressure_plate.json
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,10 @@ | ||
{ | ||
"variants": { | ||
"powered=false": { | ||
"model": "iwie:block/pale_pressure_plate" | ||
}, | ||
"powered=true": { | ||
"model": "iwie:block/pale_pressure_plate_down" | ||
} | ||
} | ||
} |
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,7 @@ | ||
{ | ||
"variants": { | ||
"": { | ||
"model": "iwie:block/pale_sapling" | ||
} | ||
} | ||
} |
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
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,6 @@ | ||
{ | ||
"parent": "minecraft:block/button", | ||
"textures": { | ||
"texture": "iwie:block/pale_planks" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/iwie/models/block/pale_button_inventory.json
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,6 @@ | ||
{ | ||
"parent": "minecraft:block/button_inventory", | ||
"textures": { | ||
"texture": "iwie:block/pale_planks" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/iwie/models/block/pale_button_pressed.json
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,6 @@ | ||
{ | ||
"parent": "minecraft:block/button_pressed", | ||
"textures": { | ||
"texture": "iwie:block/pale_planks" | ||
} | ||
} |
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,6 @@ | ||
{ | ||
"parent": "minecraft:block/leaves", | ||
"textures": { | ||
"all": "iwie:block/pale_leaves" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/iwie/models/block/pale_pressure_plate.json
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,6 @@ | ||
{ | ||
"parent": "minecraft:block/pressure_plate_up", | ||
"textures": { | ||
"texture": "iwie:block/pale_planks" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/iwie/models/block/pale_pressure_plate_down.json
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,6 @@ | ||
{ | ||
"parent": "minecraft:block/pressure_plate_down", | ||
"textures": { | ||
"texture": "iwie:block/pale_planks" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/iwie/models/block/pale_sapling.json
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,6 @@ | ||
{ | ||
"parent": "minecraft:block/cross", | ||
"textures": { | ||
"cross": "iwie:block/pale_sapling" | ||
} | ||
} |
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,3 @@ | ||
{ | ||
"parent": "iwie:block/pale_button_inventory" | ||
} |
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,3 @@ | ||
{ | ||
"parent": "iwie:block/pale_leaves" | ||
} |
3 changes: 3 additions & 0 deletions
3
src/main/resources/assets/iwie/models/item/pale_pressure_plate.json
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,3 @@ | ||
{ | ||
"parent": "iwie:block/pale_pressure_plate" | ||
} |
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,6 @@ | ||
{ | ||
"parent": "minecraft:item/generated", | ||
"textures": { | ||
"layer0": "iwie:block/pale_sapling" | ||
} | ||
} |
Oops, something went wrong.